Create my own wrapper tag?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
skypanther

Create my own wrapper tag?

Post by skypanther »

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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Create my own wrapper tag?

Post by calguy1000 »

see plugins/function.news.php

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.
skypanther

Re: Create my own wrapper tag?

Post by skypanther »

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
Post Reply

Return to “Developers Discussion”