You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Sanjiv Jivan <sa...@gmail.com> on 2007/05/01 04:19:59 UTC

$url model not being interepreted

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

---------- Forwarded message ----------
From: Sanjiv Jivan <sa...@gmail.com>
Date: Apr 30, 2007 8:07 PM
Subject: $url model not being interepreted
To: roller-user@incubator.apache.org

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

Re: $url model not being interepreted

Posted by Dave <sn...@gmail.com>.
Unfortunately, JRoller is still running Roller 2.x, so the Roller 3.0
Template Author Guide will be of no use to you. They were working on
an upgrade a couple of months ago, but I think the effort stalled when
they ran into problems running Roller 3.x on Resin.

- Dave



On 5/1/07, Sanjiv Jivan <sa...@gmail.com> wrote:
> Not sure if my previous mail went to the right mailing list.
>
> ---------- Forwarded message ----------
> From: Sanjiv Jivan <sa...@gmail.com>
> Date: Apr 30, 2007 8:07 PM
> Subject: $url model not being interepreted
> To: roller-user@incubator.apache.org
>
> 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
>