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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

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

Post 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
chandra

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

Post by chandra »

You shouldn't change these lines. They are really good stuff for search engines :).
Post Reply

Return to “CMSMS Core”