including the div inside the aditable area...

Permalink
Hi All,
I have a fairly straightforward issue (I think).
I am creating a portfolio page that will contain an image slider and a description box(div) that sits next to the image slider
I have created and editable areas that is inside and DIV tag:
<div class="rightBox">
         <?php 
         $a = new Area('portfolio_Desc');
         $a->display($c);
         ?>
           </div>
            <div class="rightImg">
         <?php 
         $a = new Area('portfolio_Image');
         $a->display($c);
         ?>
           </div>


but when I create/add to this editable area it tries to create the new content inside that div instead of creating a new area.

I want the whole div to be inside the editable area so it duplicates the div which I have given a specific css class to make it the height and width I want so that I can create multiple image sliders on the same page and just have the page scroll down to each one.

I am gathering that somehow the div sits inside <php area somehow or that I will somehow have to include the image slider block inside the portfolio template.

Can anyone point me in he direction of the best solution for this?

cheers
Paul

craftyCS
 
RadiantWeb replied on at Permalink Reply
RadiantWeb
if the view.php for the mod in question does not have an opening and closing div...add it (else, use what is there), and name it generically for that mod. (I say name it generically because you may need it elsewhere besides this page)

then use compound css to tweek for that specific page.

#content.rightbox.modinquestion {

}