[solved] using tags in smarty templates

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
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

[solved] using tags in smarty templates

Post by aln_cms »

Hi, I've created a module based on the news module,
in the search/display template I want to add the following {cms_module module="Album" album={$entry->albumid}}

the parser doesn't deal with the nested parentheses very well and the album id does not get passed to the Album module.... is there any way I can get around this

Al
Last edited by Anonymous on Sat May 12, 2007 6:06 pm, edited 1 time in total.
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

Re: using tags in smarty templates

Post by aln_cms »

I solved this, I am an idiot...

{cms_module module="Album" albumid=$entry->prop_album_id number="1"}


no need for the inner parentheses
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
Post Reply

Return to “Developers Discussion”