I'm new to Django, so apologies in advance if this is a rookie issue.
Basically, I am passing a list of objects ('tags') to a template and would like to create the following display:
tag1> tag2> tag3
where
- tag1 is a link to /mysite.com/tag1
- tag2 is a link to /mysite.com/tag1/tag2
- tag3 is a link to http://mysite.com/tag1/tag2/tag3
I cannot for the life of me figure out how to create the three links, for any given list of 'tags' objects passed to the template, since the obvious solution of a path_string variable that gets updated with every for loop pass cannot work, because variables cannot be declared/ modified in Django templates.
I looked up some advanced templates topics, and tried messing with filters etc. but didn't make any headway. Any suggestions?