Page 1 of 1

[Solved] Preview error with CMSMS 1.6.6.

Posted: Wed Nov 11, 2009 2:30 pm
by franco_porto
I have successfully installed upgrade to CMSMS 1.6.6.  Within a Edit Content page when I click the Preview button the following message comes up where the webpage should preview:


6. _tpl_vars['canonical'] )): ?>_tpl_vars['canonical']; ?>
7. _tpl_vars['content_obj']->GetURL(); ?>
8. " />
--omissis------

It looks like there is an error caused,  in the old version of CMSMS, by the line in the default templates:

GetURL()} {/if}" />

but I don't find this line in any files.

Does someone know how to resolve the problem?

Thanks!

Re: Preview error with CMSMS 1.6.6.

Posted: Wed Nov 11, 2009 7:59 pm
by Sonya
franco_porto wrote: It looks like there is an error caused,  in the old version of CMSMS, by the line in the default templates:

GetURL()} {/if}" />
This line has been replaced in the new version of the default template with

Code: Select all

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

Re: Preview error with CMSMS 1.6.6.

Posted: Thu Nov 12, 2009 3:58 pm
by franco_porto
This line has been replaced in the new version of the default template with Code:
{if isset($canonical)}{elseif isset($content_obj)}GetURL()}" />{/if}
Had I read it, but in which file I can find it?

Tanks.

Re: Preview error with CMSMS 1.6.6.

Posted: Thu Nov 12, 2009 4:11 pm
by Sonya
franco_porto wrote: Had I read it, but in which file I can find it?
In your template: Layout -> Templates

Re: [Solved] Preview error with CMSMS 1.6.6.

Posted: Sat Nov 14, 2009 6:10 pm
by franco_porto
Solved !!!!  ;D

Tanks !