Page 1 of 1

Create my own wrapper tag?

Posted: Thu Sep 07, 2006 1:45 am
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

Re: Create my own wrapper tag?

Posted: Thu Sep 07, 2006 2:20 am
by calguy1000
see plugins/function.news.php

It'll give you an example to go by.

Re: Create my own wrapper tag?

Posted: Thu Sep 07, 2006 12:24 pm
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