Global custom tags

2 views
Skip to first unread message

Diogo Baeder

unread,
Jul 2, 2009, 2:03:30 PM7/2/09
to django-d...@googlegroups.com
Hi there,

Is there a way to create a custom tag that can be used in different applications at the same time, so that I could make the call on the "base.html" template? The custom tag, here, is a blog subjects menu, which I want to use in all the pages (all the apps) of the website, in the frontend.

I know that I must create a "templatetags"  subdirectory, to act as a module, inside the apps, if I want to create a template tag for that app, but what if I want to make it visible to all apps and callable from a base template?

Thanks!

__________________________
Diogo Baeder
http://www.diogobaeder.com.br

Alex Gaynor

unread,
Jul 2, 2009, 2:04:46 PM7/2/09
to django-d...@googlegroups.com
django-developers is for the development of Django itself, not development with Django.  Your question should be asked on the django-users mailing list.

Alex

--
"I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire
"The people's good is the highest law."--Cicero

diogobaeder

unread,
Jul 2, 2009, 5:54:57 PM7/2/09
to Django developers
Ops, sorry, Alex, it was a lack of attention of mine... I tabbed the
auto-complete for the developers list, sorry...

I'll repost it in the correct list, please ignore this one.

Thanks,

Diogo



On Jul 2, 3:04 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages