You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Peter warde <pe...@gmail.com> on 2013/02/08 15:16:42 UTC

index of the current page

I am writing a custom macro. 

There are next and previous links for a pager, but does anyone know how to
get the the index of the current page for the $pager?
-- 
View this message in context: http://old.nabble.com/index-of-the-current-page-tp34999616s12275p34999616.html
Sent from the Roller - Dev mailing list archive at Nabble.com.


Re: index of the current page

Posted by Greg Huber <gr...@gmail.com>.
Hello,

The pagers are located in
roller-project/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/rendering/pagers
package. It would depend on which pager you are refering to.

For AbstractPager based classes it would be $pager.page or $pager.getPage().

For WeblogEntriesPager (or AbstractWeblogEntriesPager) based classes it
looks like you may need to add a getter method your self.


Possibly could try $model.getRequestParameter("page") may work?

where  $model == org.apache.roller.weblogger.ui.rendering.model.PageModel.
Not recommended!

Cheers Greg

On 8 February 2013 14:16, Peter warde <pe...@gmail.com> wrote:

>
> I am writing a custom macro.
>
> There are next and previous links for a pager, but does anyone know how to
> get the the index of the current page for the $pager?
> --
> View this message in context:
> http://old.nabble.com/index-of-the-current-page-tp34999616s12275p34999616.html
> Sent from the Roller - Dev mailing list archive at Nabble.com.
>
>