Adding piece of HTML/PHP on one of my pages
Permalink
Hi everybody,
I'm having a problem with adding piece of HTML/PHP on one of my pages.
I know tha it's not possible to do that via the WYSISWYG.
But I would like to know if there is a way to add HTML/PHP code in an editable area ?
Here is the code I try to paste in my page "our team"...
The purpose is just to copy/paste that piece of code in an editable area to add/delete partners.
Without creating a new block.
I attached a layout of what I'm trying to do...
Best regards.
Alex
I'm having a problem with adding piece of HTML/PHP on one of my pages.
I know tha it's not possible to do that via the WYSISWYG.
But I would like to know if there is a way to add HTML/PHP code in an editable area ?
Here is the code I try to paste in my page "our team"...
<div id="profile_global">
<div id="profile_top" class="deroule" style="cursor: pointer;" onClick="$('#profile_bottom').slideToggle('slow','backin'); $('#profile_top').toggleClass('enroule'); return false;">
<div id="profile_left">
<h4><?php $ae = new Area('Profile'); $ae->display($c); ?></h4>
<strong><?php $aq = new Area('Functions'); $aq->display($c); ?></strong>
</div>
<div id="profile_right">
<img style="vertical-align: middle;" src="<?=$this->getThemePath()?>/img/vcards.gif" alt="Download VCard" width="22" height="16" /><?php $ag = new Area('VCards'); $ag->display($c); ?><br />
<img style="vertical-align: middle;" src="<?=$this->getThemePath()?>/img/mail.gif" alt="email" width="22" height="16" /><?php $af = new Area('Mail'); $af->display($c); ?>
</div>
<hr class="clear" />
</div>
<div id="profile_bottom" style="display: none;">
<div id="profile_bottom_left">
<?php $a = new Area('Profile Left'); $a->display($c); ?>Viewing 15 lines of 22 lines. View entire code block.
The purpose is just to copy/paste that piece of code in an editable area to add/delete partners.
Without creating a new block.
I attached a layout of what I'm trying to do...
Best regards.
Alex
The problem is, with that way, my PHP is not taken. :-(
use the php block in the marketplace a similar way.
freehttp://www.concrete5.org/marketplace/addons/simple-php-block/...
paid
http://www.concrete5.org/marketplace/addons/code-blocks/...
freehttp://www.concrete5.org/marketplace/addons/simple-php-block/...
paid
http://www.concrete5.org/marketplace/addons/code-blocks/...
ok thanks a lot for the info ;-)
Do you think that's the best way to accomplish what I want to do with concrete 5 without creating a new blocks ?
Do you think that's the best way to accomplish what I want to do with concrete 5 without creating a new blocks ?
yeah, I think so. Someone should come out with a vcard addon though.
;-) Thank you for your help.
Paste your code.
Done...