I've found this:
http://forum.cmsmadesimple.org/index.ph ... 475.0.html
So now I have a user defined tag called {canonical} that's in my template. That works.
I changed my ArticleDetail template according to the article above, changed my template, got rid of {process_pagedata} in my normal template, added the {content assign="capturedcontent"} on the first line and changed {content} to {capturedcontent}. I also replaced the with the line from the article above.
Now my article title sits nicely in my Title. But still, when I check the source of my article the gives the detail page info of my landing page, but no info about the article I'm viewing.
By the way, my canonical tag look like this:
Code: Select all
global $gCms;
if ($gCms->variables['page_name'] !='') {
$manager =& $gCms->GetHierarchyManager();
$node =& $manager->sureGetNodeByAlias($gCms->variables['page_id']);
$content =& $node->GetContent();
if (isset($content) && is_object($content))
{
if ($content->GetURL() != '')
{
echo '<link rel="canonical" href="'.$content->GetURL().'" />';
}
}
}