module tags not working in new module

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
Locked
User avatar
Reanimator
Forum Members
Forum Members
Posts: 14
Joined: Tue Jul 09, 2013 9:12 am

Re: module tags not working in new module

Post by Reanimator »

I have the same question!
Please answer!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: module tags not working in new module

Post by Dr.CSS »

Please upgrade to the latest version of CMSMS...
User avatar
Reanimator
Forum Members
Forum Members
Posts: 14
Joined: Tue Jul 09, 2013 9:12 am

Re: module tags not working in new module

Post by Reanimator »

I have another question.
I'm writing a module similar to inside module "global content blocks", but with advanced functionality. Is it possible to parse all of the tags? At this moment I parse the internal tags like cms_selflink, print and another, but not the modules tags, such as "search", "menu" and etc.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: module tags not working in new module

Post by psy »

Yes, upgrade and sometimes within templates you cannot use the shorthand form, eg {menu}. You have to use the longhand format, eg {cms_module module='Menu' ....}
User avatar
guro
Power Poster
Power Poster
Posts: 985
Joined: Thu Apr 26, 2012 8:38 pm

Re: module tags not working in new module

Post by guro »

This problem was solved in Russian discussion (http://forum.cmsmadesimple.org/viewtopi ... 27&t=67176).

It was required to change the call "ProcessTemplate"

Code: Select all

echo $this->ProcessTemplateFromDatabase($tpl_name);
Locked

Return to “Developers Discussion”