Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2007, 05:07 AM
New Pligger
 
Join Date: Jul 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
conditional meta tags?

Hi,

I like to have different meta tags based on a condition.

which global / variable I can use inside the file meta.tpl to identify that the page is a story and not a list (category/tag)?

is there somewhere a list with the most important globals / vars which I can use inside the template files?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-03-2007, 06:33 AM
New Pligger
 
Join Date: Jul 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
for now I used this solution:

Code:
{if $pagename eq "story"}
    {if $story_status eq "published"}
        <meta name="Robots" content="index,follow" />
    {else}
        <meta name="Robots" content="noindex, follow" />
    {/if}
{else}
	{if $pagename eq "faq-en"}
    	<meta name="Robots" content="index,follow" />
    {else}
    	<meta name="Robots" content="noindex, follow" />
    {/if}
{/if}
Reply With Quote
  #3 (permalink)  
Old 11-03-2007, 07:12 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,823
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Quote:
is there somewhere a list with the most important globals / vars which I can use inside the template files?
That's something I've wanted for a long time. When creating templates I have to do a lot of searching to figure out what conditional tags I can use, it would be nice to have a quick reference.
Looks like you mostly figured out the answer to your own question, looks good.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #4 (permalink)  
Old 11-03-2007, 07:26 AM
New Pligger
 
Join Date: Jul 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Yankidank View Post
That's something I've wanted for a long time. When creating templates I have to do a lot of searching to figure out what conditional tags I can use, it would be nice to have a quick reference.
Looks like you mostly figured out the answer to your own question, looks good.
yeah I'm happy that found the solution.

While I'm using an ol pligg version I needed to change some source too because the status var was empty.

My site is 8 month old and there are 1200 pages indexed, a lot of them have the status discard
Only adding the "nofollow" to outgoing links is not enough because Google will index those story pages too (if you keep spammy submissions for a few days)
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Tags not cloud in Pligg v9.9 bhatiacane Bug Report 4 05-03-2008 02:16 AM
Meta Tags are still saying Pligg? bbrian017 General Help 27 01-09-2008 03:11 PM
Set Character Limit for Meta Description Tags? blaze General Help 0 12-23-2007 05:29 PM
Custom Meta Tags and Custom Titles spufz General Help 1 06-17-2007 04:40 AM
Meta Tags canadapc Modification Tutorials 6 12-01-2006 08:55 AM


Search Engine Friendly URLs by vBSEO 3.2.0