Page 1 of 1

Can i remove or modify this line from template if i dont use

Posted: Sun Nov 24, 2013 9:31 pm
by userwords
If i dont use the news module, and all my content are pages

Can i remove this line and still have canonical urls, or at least split the if statement.

Im not sure but i suppose half of it is for news and the other half is meant to form the canonical url for pages, so my guess is that i could remove the if statement and keep only one half, but dont know which, the $canonical, or $contentobj is related to either news of pages :S

{if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}

Or has nothing to do, and is meant to check if url field in page content was filled.

Respectfully

Re: Can i remove or modify this line from template if i dont

Posted: Mon Nov 25, 2013 4:33 am
by chandra
You shouldn't change these lines. They are really good stuff for search engines :).