Upgrades Questions on upgrading to version 5.x.
Version 5.x > Upgrades > Page Template Properties header View modes: 
User avatar
Member
Member
ctaleck IPAGlobal - 2/25/2010 12:46:59 PM
   
Page Template Properties header
I have the following in a Properties > Tempalte > Header and it is not rendering when using v5.0.
<link href="~/CMSPages/GetCSS.aspx?stylesheetname=EPCStyles" type="text/css" rel="stylesheet" />
I also tried it without the ~
<link href="/CMSPages/GetCSS.aspx?stylesheetname=EPCStyles" type="text/css" rel="stylesheet" />
It worked fine in v4.0.

Any ideas?

User avatar
Member
Member
ctaleck IPAGlobal - 2/25/2010 12:55:19 PM
   
RE:Page Template Properties header
On a whim, I decided to edit the field with some new tags and saved it (not just changing the existing link tag). This time it rendered. I'm not sure what happened but it seems to be back. Caching problem perhaps?

User avatar
Member
Member
ctaleck IPAGlobal - 2/25/2010 1:03:56 PM
   
RE:Page Template Properties header
Spoke too soon--still having problems... The issue is it does not render on a "Folder" document type but it is fine on a "Page (menu item)" document type.

Version 4.0 rendered on a "Folder" document, but v5.0 seems not to.

Is this a new behavior?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/1/2010 6:57:28 AM
   
RE:Page Template Properties header
Hello,


could you please configure:

Site manager -> Development -> Document types -> edit Folder -> General -> Behaves as Page (menu item) type: checked

It will work then.


Best regards,
Helena Grulichova

User avatar
Member
Member
ctaleck IPAGlobal - 3/1/2010 7:40:55 AM
   
RE:Page Template Properties header
Changing this setting in v5.0 fixed the problem.

Evidently this setting was ignored in v4.0, because it is un-checked and the header is rendered.

I guess this is a "fixed" behavior.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/1/2010 9:00:28 AM
   
RE:Page Template Properties header
Hello,


the 4.0 version checks this property only when the template was inherited. Now, it checks always. We are sorry for your inconveniences.


Best regards,
Helena Grulichova