[SOLVED] Simpletagging : tag and title name

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
fabiano
Forum Members
Forum Members
Posts: 16
Joined: Tue May 29, 2007 12:03 pm

[SOLVED] Simpletagging : tag and title name

Post 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
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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Simpletagging : tag and title name

Post by Dr.CSS »

Do you have {process_pagedata} before your doctype at the top of template?...
fabiano
Forum Members
Forum Members
Posts: 16
Joined: Tue May 29, 2007 12:03 pm

Re: Simpletagging : tag and title name

Post by fabiano »

yes I did but no luck...

I'm missing something...
http://www.deltaenergie.it - renewable energy and solar panels
fabiano
Forum Members
Forum Members
Posts: 16
Joined: Tue May 29, 2007 12:03 pm

Re: [SOLVED] Simpletagging : tag and title name

Post 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...
http://www.deltaenergie.it - renewable energy and solar panels
alby

Re: Simpletagging : tag and title name

Post 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
Post Reply

Return to “Modules/Add-Ons”