you might want to do this 'work' when the user actually requests the page in question, not when you generate the one he is looking at. for example have 2 views defined in urls.py getnext/(object-id)/ getprev/(object-id)/ and have these 2 views do the calculation on what is 'next' and issue the 301 redirect's to the real url in question. if you wanted to be really smart you could cache the result so the 2nd person to view the page would get the real url instead of the redirect. (thats how I would do it) but then.. I usually aim for the most complex way possible ;-) regards ian On 31/07/2006, at 9:24 AM, SmileyChris wrote:
|
- non date-based detail pages: previous/next? jcb
- Re: non date-based detail pages: previous/next? SmileyChris
- Re: non date-based detail pages: previous/next? Ian Holsman
- Re: non date-based detail pages: previous/next? SmileyChris