First Problem:
I need to retrieve $pageIndex value. The $pageIndex variable is in
the scope of #blockcomponent. However I can not implement #set
($pagedUrl = $Url.For("... ...) within #blockcomponent - it just
doesnt work
Second Problem:
I am not sure how to properly assign the full url path in the onclick
event. See code:
<button type="button" onclick="location.href='$pagedUrl';">
$text</button>
Thanks
Eyal
On Feb 13, 10:24 am, Victor Kornov <[email protected]> wrote:
> What's wrong specifically?
>
> On Fri, Feb 13, 2009 at 4:05 AM, eyal <[email protected]> wrote:
>
> > Hi All,
>
> > Does anyone know how to combine url routing with pagination?
>
> > Regular Pagination:
> > #blockcomponent(DiggStylePagination with "page=$products"
> > "renderifonlyonepage=false")
> > #link
> > <button type="button"
> > onclick="location.href='searchbypage.ashx?page=$pageIndex';">$text</
> > button>
> > #end
> > #end
>
> > Trying to combine with Routing but doesnt work:
> > #blockcomponent(DiggStylePagination with "page=$products"
> > "renderifonlyonepage=false")
> > #link
>
> > #set($pagedUrl = $Url.For("%{controller='products',
> > action='searchbypage', params={page=$pageIndex, categoryName=
> > $CategoryName}"))
>
> > <button type="button" onclick="location.href='$pagedUrl';">
> > $text</button>
> > #end
> > #end
>
> > Thanks
>
> > eyal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---