On Sonntag, 25. Februar 2007, Grupo Django wrote:
> Hello, I have created an app named "menu". I want to build an easy way
> of adding items to the menu in the admin zone. I want to render this
> menu in every view of others applications (blog, static pages...).
> I'd like some suggestions about how to implement it in the template
> system.
> I thought about using the {% include %} tag, and then import the menu
> app in every application. Is this a good way?
> I accept suggestions.
> Thank you very much!

Hi,

you can write a custom template tag as part of your menu app and include it in 
the template like this:

{% load menu %}
{% menu %}

http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-tags

Best Regards.

-- 
Dirk Eschler <mailto:[EMAIL PROTECTED]>
http://www.krusader.org

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to