View Single Post
  #47  
Old 06-11-2008, 02:09 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: CDSEO Pro - Complete SEO Solution - Custom Urls, Page Titles, Meta Data, Link Anc

Quote:
Originally Posted by markwhoo
not a problem, I was just hoping to be able to do it via meta tag to keep the robots.txt as clean as possible, lol.

I have a large robots file as it is, so was hoping to be able to do it other way, but it is fine.

whats a few more line in there right? lol

The nice thing about having it all in one place is that you won't have any conflicts between the two, or in the future forget that you input code into a .tpl and can't figure out why the page isn't being indexed. If you want to do it in your meta though, this code in skin1/meta.tpl should do the trick:

Quote:
{if $page_data.pageid eq "X"}
<meta name="robots" content="noindex, nofollow">
{/if}

Multiple pages:

Quote:
{if $page_data.pageid eq "X" OR $page_data.pageid eq "XX"}
<meta name="robots" content="noindex, nofollow">
{/if}
Reply With Quote