antknight Posted November 16, 2012 Share Posted November 16, 2012 I am trying to implement what I found here: http://clintonskakun...th-processwire/ but I get an error with the following code: <meta type="robots" content="<?=($page->no_follow ? "nofollow" : "follow")?>,<?=$page->no_index ? "noindex" : "index")?>" /> Parse Error syntax error, unexpected ')', expecting ',' or ';' (line 22 of /home/anthonyj/public_html/site/templates/head.inc) This error message was shown because you are logged in as a Superuser. Error has been logged. Any help much appreciated Link to comment Share on other sites More sharing options...
teppo Posted November 16, 2012 Share Posted November 16, 2012 You've got one extra ")" near the end of that row, right before last PHP end tag. Try this instead: <meta type="robots" content="<?=($page->no_follow ? "nofollow" : "follow")?>,<?=$page->no_index ? "noindex" : "index"?>" /> Link to comment Share on other sites More sharing options...
antknight Posted November 16, 2012 Author Share Posted November 16, 2012 Thanks Teppo, that worked but does it need those brackets at all? I tried the following and it seemed to work fine: <meta name="robots" content="<?=$page->no_follow ? "nofollow" : "follow"?>,<?=$page->no_index ? "noindex" : "index"?>" /> Link to comment Share on other sites More sharing options...
teppo Posted November 17, 2012 Share Posted November 17, 2012 You're right, it doesn't Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now