How can I create my own wrapper tag for my spiffy new module? For example, instead of {cms_module module='News'} I can enter just {news} in my template. For my own tag, I'd like to make my own {mytag} tag.
(Sorry if this is documented somewhere. I couldn't find it.)
Thanks,
Tim
Create my own wrapper tag?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Create my own wrapper tag?
see plugins/function.news.php
It'll give you an example to go by.
It'll give you an example to go by.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Create my own wrapper tag?
Thanks calguy, I can create such a file for my module. But, how would I distribute it with my module? Like, where do I put this code and how do I call the resulting smarty_cms_function_mymodule function during install?
Tim
Tim