Page 1 of 1

[SOLVED] Simpletagging : tag and title name

Posted: Wed Apr 22, 2009 11:07 am
by fabiano
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

Re: Simpletagging : tag and title name

Posted: Wed Apr 22, 2009 5:46 pm
by Dr.CSS
Do you have {process_pagedata} before your doctype at the top of template?...

Re: Simpletagging : tag and title name

Posted: Wed Apr 22, 2009 6:52 pm
by fabiano
yes I did but no luck...

I'm missing something...

Re: [SOLVED] Simpletagging : tag and title name

Posted: Sat Apr 25, 2009 6:15 am
by fabiano
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...

Re: Simpletagging : tag and title name

Posted: Thu Apr 30, 2009 1:10 pm
by alby
fabiano wrote: yes I did but no luck...

I'm missing something...
Try to put true to process_whole_template in config.php

Alby