META TAGS for single entries PLUGIN

Creating and modifying plugins.
Post Reply
classicrallies
Regular
Posts: 8
Joined: Mon Oct 09, 2006 11:22 pm

META TAGS for single entries PLUGIN

Post by classicrallies »

I'm using the HTML META-Tags Plugin (Sets meta keywords/description HTML tags for single entry pages)

I would like to add description and keywords Meta Tags in my home page (http://www.classicrallies.com/blog/index.php)

The problem is that if I modify the index.tpl, in single entries I will have two meta descriptions and two meta-keywords.

Is there a way to do it? something like "if not single entries display meta-description and meta-keywords"

Many Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: META TAGS for single entries PLUGIN

Post by garvinhicking »

Hi!

Yes, using smarty:

Code: Select all

{if NOT $is_single_entry}
...meta-tags here...
{/if}
in index.tpl.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
classicrallies
Regular
Posts: 8
Joined: Mon Oct 09, 2006 11:22 pm

Thanks

Post by classicrallies »

Thanks. Perfect!
Post Reply