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"...

<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); ?>


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

1 Attachment

Actarus
 
Steevb replied on at Permalink Reply
Steevb
Place page in edit mode, mouse over block you want to add code to. Choose 'HTML' to add to block.
Paste your code.

Done...
Actarus replied on at Permalink Reply
Actarus
The problem is, with that way, my PHP is not taken. :-(
12345j replied on at Permalink Reply
12345j
Actarus replied on at Permalink Reply
Actarus
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 ?
12345j replied on at Permalink Reply
12345j
yeah, I think so. Someone should come out with a vcard addon though.
Actarus replied on at Permalink Reply
Actarus
;-) Thank you for your help.