Hi to all,
I've followed this instructions but http://forum.cmsmadesimple.org/index.ph ... #msg113865 there is a problem with the page title.
I've assigned {assign var='tagname' value=$searchtag} in Content -> SimpleTagging "Template for tag search"
the problem is that the value of tagname is available after the content and not before.
How can I catch the value of the searchtag in the title before the content?
thank you
Fabiano
[SOLVED] Simpletagging : tag and title name
[SOLVED] Simpletagging : tag and title name
Last edited by fabiano on Sat Apr 25, 2009 6:12 am, edited 1 time in total.
http://www.deltaenergie.it - renewable energy and solar panels
Re: Simpletagging : tag and title name
Do you have {process_pagedata} before your doctype at the top of template?...
Re: Simpletagging : tag and title name
yes I did but no luck...
I'm missing something...
I'm missing something...
http://www.deltaenergie.it - renewable energy and solar panels
Re: [SOLVED] Simpletagging : tag and title name
this is the solution I used:
1) create a new tag called
get_tag
$tagname=$_GET['ctag'];
echo $_GET['ctag'];
2) capture the tag name into the template
{capture assign='tagname'}{get}{/capture}
{if !empty($tagname)}
Tag {$tagname} - {sitename}
{else}
{sitename} - {title}
{metadata}
{capture assign='tagname'}{title}{/capture}
{/if}
and that's it.... next step will be change the title and the meta tag of the news...
1) create a new tag called
get_tag
$tagname=$_GET['ctag'];
echo $_GET['ctag'];
2) capture the tag name into the template
{capture assign='tagname'}{get}{/capture}
{if !empty($tagname)}
Tag {$tagname} - {sitename}
{else}
{sitename} - {title}
{metadata}
{capture assign='tagname'}{title}{/capture}
{/if}
and that's it.... next step will be change the title and the meta tag of the news...
http://www.deltaenergie.it - renewable energy and solar panels
Re: Simpletagging : tag and title name
Try to put true to process_whole_template in config.phpfabiano wrote: yes I did but no luck...
I'm missing something...
Alby