How do I use a variable from a module in a page template.
To be particular I am working with Company Directory module... and I've created custom fields "meta description" and "meta keywords" ... and they apear on page when inserted in module template ... but dont work in a page template.
I am assuming that not all variables can work outside the module, but if there is some general rule for those that do, it would mean a world to me.
Thanks in advance.
Cisco
Using module variable outside - in a page template
Re: Using module variable outside - in a page template
check smarty manual and the forum about capture content, you should find what you´re lookin for
Re: Using module variable outside - in a page template
page template is processed before which contains the module call... so the variables you want to use do not yet exist when you want to use them.
your solution would be similar to how people get news article titles or company directory company names inserted into the of a page (search the forums for those tricks)
... or ...
wait for the upcoming cmsms 1.4 which will allow of a page template to be processed before its
your solution would be similar to how people get news article titles or company directory company names inserted into the of a page (search the forums for those tricks)
... or ...
wait for the upcoming cmsms 1.4 which will allow of a page template to be processed before its
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info