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?
On Thu, Jul 2, 2009 at 1:03 PM, Diogo Baeder <diogobae...@gmail.com> wrote:
> 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?
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
> On Thu, Jul 2, 2009 at 1:03 PM, Diogo Baeder <diogobae...@gmail.com> wrote:
> > 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?
> 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