and fill them with 'all' if empty i.e.
/type/ redirects to /type/all/all/
/type/subtype/ redirects to type/subtupe/all
Otherwise if you are absolute sure that it is inpossible for type,subtype and category to mach
you may run multiple queries in the view to check which one of them responds to the correct keyword.
But I found this one a little bit "confusing" about the users.
--
eng. Ilian Iliev
Web Software Developer
Mobile: +359 88 66 08 400
Website: http://ilian.i-n-i.org
On Thu, Sep 29, 2011 at 1:36 PM, Dejan Noveski <dr.mote@gmail.com> wrote:
Hi,I want to add dynamic urls to my site for faceting purposes. E.g: /(type)/(subtype)/(category)/But I also want something like this to work: /(type)/(subtype)/ or /(type)/(category)/ or /(subtype)/(category)/ or just /(category)/ | /(type)/ | /(subtype)/Is there any clean way of doing this without declaring each possible combination of url params?Thanks--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment