PDA

View Full Version : Positioning of Module / problemo


str8ballin
12-09-2004, 08:04 PM
Ok great hack, ease of use /interface is fantastic but ive encountered a problem which I cant figure out.

On the main page cmps_index.php/ adv_portal I added some of my own code so that it looked like I had my own module which was stretched accross the whole of the modules if that makes any sense. Because when adding modules via the admincp it only allows for your to position the module either left right or center and I require it to be on top like the attatched pic shows I have encountered a problem when I entered the html code straight into the adv_portal template below $navbar.

So whats the problem? well when I create custom pages (index.php?page=example) the custom pages also show the added module I added in straight html into the template, im wondering if you can help me implement it so I can add this template where it is shown in the attatched pic with the condition that it will only appear on the main page and not within the custom pages or any other pages for that matter.

Basically I want to display whats in the pic on the main page without it apearing on any custom pages, this cannot be done via the admincp options as the position of the content is not within the right, left or center areas.

I hope that makes sense.

Thanks in advance.

Brian
12-09-2004, 08:08 PM
<if condition="$pages['name'] == 'home'">
Code Here
</if>

Our Sponsors
 

str8ballin
12-09-2004, 09:20 PM
Thanks for such a quick reply and solving my problem!