PDA

View Full Version : Hide breadcrumb on CMPS index only?


Webnower
11-15-2007, 06:45 PM
Hi there,

Is it possible to hide the breadcrumb on the CMPS index? I'd like it to display on every other CMPS page (for example, index.php?pageid=about), just not the main index.

Thanks for your help

Brian
11-16-2007, 12:25 PM
The easiest way would probably be to edit your 'navbar' template and wrap an <if condition> around the code you don't want displayed on your homepage.

<if condition="$pages['name'] != 'home'">

Code to be hidden on the homepage here

</if>

Our Sponsors
 

JoshFink
12-15-2007, 12:18 AM
Can you explain this a little more? I entered the following in my navbar_link template


<if condition="$pages['name'] != 'home'">

<if condition="$show['breadcrumb']">
<span class="navbar">&gt; <a href="$nav_url">$nav_title</a></span>
<else />
$nav_title
</if>


</if>


I was assuming that this would work as if I delete the contents of this template the results are as I want.

Thanks

Josh

Electronic Punk
01-02-2008, 09:15 AM
I gave this a go and it seems to have removed the breadcrumb completely.

Our Sponsors
 

Electronic Punk
01-02-2008, 09:34 AM
<if condition="THIS_SCRIPT != 'adv_index'"> Seems to work :)