I used an inclusion template tag to do the same basic functionality. It's a
bit simpler and it keeps the html in the templates for easier customizing.
You can see the template tag here:
http://code.google.com/p/django-simplepages/source/browse/trunk/simplepages/templatetags/page_tags.py
The
This works fine for me. I just had to strip down the blog part.
Thank you for sharing.
Would you mind having a look at this my little problem?
http://groups.google.com/group/django-users/browse_thread/thread/62fdb184c5592988
Dpaste here: http://dpaste.com/hold/62198/
On 10. Júl, 22:05 h.,
Hello everyone!
I wrote a simple flatpage menu the other day (as a template tag), but I'm
not sure if this is a optimal solution - it feels a bit hackish.
Here's the code:
http://dpaste.com/hold/62194/
This is how the tag is used in a template:
{% load flatpage_menu %}{% get_flatpage_menu
3 matches
Mail list logo