Page 1 of 1
Info on developing custom tags?
Posted: Fri Nov 12, 2010 4:53 am
by n5zap
Howdy! I'll probably be red-faced after someone answers this, but is there some information on writing custom tags? I can find information on custom modules, plugins, mini-modules and references to user-defined tags, but nowhere to start looking on just plain custom tags. I was hoping not to have to reverse-engineer a bunch of these to figure out what works. Thanks in advance!

Re: Info on developing custom tags?
Posted: Fri Nov 12, 2010 6:10 am
by Jeff
What are you referring to as "custom tags"? What are you wanting to do?
Typically when talking about a tag it is either a UDT or a plugin.
Re: Info on developing custom tags?
Posted: Sat Nov 13, 2010 12:17 am
by n5zap
Hello there! I mean making a tag. I found it, by going to the Smarty site, which is about the most counter-intuitive thing I can imagine.
When I log into CMSMS and select the Extension menu there are items for "tags" and "user-defined tags." There is not, however, an easy to determine that the "tags" are mostly Smarty functions without a fair amount of investigation. The problem is terminology: searches tell me how to build user-defined tags (in the menu) or modules (also in the menu), but nothing about building tags (also in the menu).
In my experience the biggest part of the learning curve for any new technology is that of terminology. Everyone uses different terms for the same concepts, and unfortunately people think newbies understand what project X means when they use a term like tags.
Hopefully at some point somebody will write a dummy's guide to development for CMSMS. One that explicitly says things like "CMSMS Tags are actually Smarty tags! Go there to learn how to develop them. Don't bother us just because logic would tend to indciate that Tags are part of CMSMS itself, and not some completely different technology."
Cheers!
ajprog wrote:
What are you referring to as "custom tags"? What are you wanting to do?
Typically when talking about a tag it is either a UDT or a plugin.
Re: Info on developing custom tags?
Posted: Sat Nov 13, 2010 12:46 am
by Jeff
The most direct correlation is to a plugin (all the items in Extension > Tags) are plugins. For usability we have added the ability to create a simple tag via the admin (User-Defined Tag).
Then if you need something really complicated you can make a module.
Re: Info on developing custom tags?
Posted: Sat Nov 13, 2010 12:47 am
by Peciura
CMSMS Tags are actually Smarty tags! Go there to learn how to develop them. Don't bother us just because logic would tend to indciate that Tags are part of CMSMS itself, and not some completely different technology.
http://wiki.cmsmadesimple.org/index.php ... gs/adsense
It is mentioned that tags are on dir "/plugins". Open one of the smallest file and you will learn very quickly.
SOLVED: Re: Info on developing custom tags?
Posted: Sun Dec 12, 2010 11:11 pm
by n5zap
Peciura wrote:
CMSMS Tags are actually Smarty tags! Go there to learn how to develop them. Don't bother us just because logic would tend to indciate that Tags are part of CMSMS itself, and not some completely different technology.
http://wiki.cmsmadesimple.org/index.php ... gs/adsense
It is mentioned that tags are on dir "/plugins". Open one of the smallest file and you will learn very quickly.
Thanks!