Not sure if my previous mail went to the right mailing list.

---------- Forwarded message ----------
From: Sanjiv Jivan <[EMAIL PROTECTED]>
Date: Apr 30, 2007 8:07 PM
Subject: $url model not being interepreted
To: [EMAIL PROTECTED]

I am trying to build my custom nav list as below however the $url model is
not being interpreted. The other model references like $pageModel and $text
are working fine. I'm on JRoller and I'm not sure what version they're
using.

Any pointers?

Thanks,
Sanjiv


#if( $pageModel.weblogCategory )
   <li id="all"><a href="$url.home"><span>$text.get( "
macro.weblog.allcategories" )</span></a></li>
#else
   <li id="all" class="current"><a href="$url.home"><span>$text.get( "
macro.weblog.allcategories" )</span></a></li>
#end

#set( $cats = $pageModel.getWeblogCategories($parentCategory) )

#foreach( $cat in $cats )
   #if( $pageModel.weblogCategory.path == $cat.path )
       <li class="current" id="$cat.id"><a
href="$url.category($cat.path)"><span>$cat.name</span></a></li>
   #else
       <li id="$cat.id"><a
href="$url.category($cat.path)"><span>$cat.name</span></a></li>
   #end
#end

Reply via email to