You can keep these information in session.

On Thu, Dec 18, 2008 at 7:10 PM, mono <freeespe...@gmail.com> wrote:

>
> I don't know whether it is a good answer because only two page links
> is here and the aim of is_extend flag is to show entire or part of
> columns.
>
> so I could not tell a page linkto is_extend=shrink&page=next_page and
> is_extend=shrink&page=previous_page
>
> maybe I need more page links, like the first, the last ,or some
> exactly page number,
> maybe I need more params like asp or jsp, I hope to how to django
> dispatch the url with more than one param.
>
> On 12月18日, 下午1時45分, "Wayper, Paul" <paul.way...@transact.com.au>
> wrote:
> > > -----Original Message-----
> > > From: django-users@googlegroups.com
> > > [mailto:django-us...@googlegroups.com] On Behalf Of mono
> > > Sent: Thursday, 18 December 2008 15:14
> > > To: Django users
> > > Subject: how to add more params in url
> >
> > > eg.
> >
> > > in my list.html
> >
> > > {%if is_extend %}
> > > <a href="?is_extend=False>shrink</a>
> > > {% else %}
> > > <a href="?is_extend=True>extend</a>
> >
> > > {# pagination code #}
> >
> > > <a href="?page={{ next_page }} ">next</a> <a href="?page={{
> > > previous_page }} ">previous</a>
> >
> > > as result, there is only one param add in url, either
> > > is_extend or page
> >
> > > so, how to bind all them in url?
> >
> > > thanks
> >
> > <a href="?is_extend={{ is_extend|yesno:"extend,shrink" }}&page={{
> > next_page }}">
> >
> > <a href="?is_extend={{ is_extend|yesno:"extend,shrink" }}&page={{
> > previous_page }}">
> >
> > Should be fairly obvious.
> >
> > Have fun,
> >
> > --
> > Paul Wayper
> > SYSTEMS ENGINEER
> > TransACT
> >
> > Telephone: 02 6229 8026
> > Mobile: 0422 392 081
> >
> > PO Box 1006, Civic Square  ACT  2608
> >
> > www.transact.com.au
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to