#3169: [patch] A template tag for listing/linking to nearby pages in pagination
should be provided.
----------------------------+-----------------------------------------------
   Reporter:  Grimboy       |                Owner:  nobody                
     Status:  new           |            Component:  Template system       
    Version:                |           Resolution:                        
   Keywords:  sprintsept14  |                Stage:  Design decision needed
  Has_patch:  1             |           Needs_docs:  0                     
Needs_tests:  0             |   Needs_better_patch:  0                     
----------------------------+-----------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Yeah, I though about that. The only problem is that as soon as you add
 that you have the requirement for the template context processor
 django.core.context_processors.request because the only way for a template
 tag to get access to the request.querystring. (Well unless you add a
 middleware component and use thread local storage, but that's hardly an
 appetising proposal either.) The case of wanting to use a get key-value
 pair for the page (page=foo) and already having a bit of querystring going
 is not too hard to handle though. Each page in page_index has {{
 page.number }} which can be used in combination with querystring parsing
 in the view to create a link in a pagelist template.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3169#comment:10>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to