> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---