Managed to figure it out by using a variation of a solution from this post.
Figured I'd post my solution in case anybody else has the same problem.

http://www.nabble.com/Category-Mastheads--to16399070s12275.html

This is what ended up working:


#if ($model.weblogCategory)
    #set( $chosenCat = $model.weblogCategory.name )
#elseif ($model.permalink)
    #set( $chosenCat = $model.weblogEntry.category.name )
#end

#if ($chosenCat == "Java") 
<h3>JAVA ON!</h3>
#else
<h3>JAVA OFF!</h3>
#end



slowhome wrote:
> 
> I'm trying to create a custom navigation menu that will display an "on"
> and "off" state for selected buttons.
> 
> Because the navigation menu includes links to other sections in other
> webapps and also because the items in the menu are in a particular order,
> it can't be generated using the   #foreach ($cat in
> $model.weblog.categories)    statement. It has to be hard coded.
> 
> I tried a few things in the template guides and looked at other Roller
> themes but wasn't able to get very far.
> 
> In a nutshell, I would like it to do something like this:
> 
> 
> #if ($cat.name == "Java") 
>           Java Button On State 
> #elseif
>           Java Button Off State
> #end 
> 
> 
> 
> Thanks for any help.
> 
> Eric
> 

-- 
View this message in context: 
http://www.nabble.com/Custom-Navigation-tp16590546s12275p16618045.html
Sent from the Roller - User mailing list archive at Nabble.com.

Reply via email to