|
I have created a forum module (a Python package under Is there any way to define template tags within OSQA forum modules? I would prefer not to drop files in OSQA’s |
|
Pretty easy, do it the exact same way as "normal" template tags libs, but instead of instantiating registry, import it from one of the existing template tag libs. Thanks for the answer. Can you provide a little more detail? Where does that
(02 Nov '10, 18:57)
Kevin Yank
1
Yes, just like you described. The trick here, and I forgot to mention it, sorry, is that you need to run that file before the template parser kicks in for the first time. So lets say in your module you create a file named
(02 Nov '10, 19:49)
Hernani Cerq... ♦♦
Worked beautifully, thankyou!
(04 Nov '10, 01:48)
Kevin Yank
@Kevin Yank. Since you seem to have gotten this to work I was wondering if you could clarify your setup. I did this: http://meta.osqa.net/questions/5683/custom-template-filtertags, based on the discussion here, but can't get this to work.
(19 Dec '10, 16:46)
rsp
|