Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Creating text-only version of site View modes: 
User avatar
Member
Member
lukeduke - 10/6/2009 6:08:57 AM
   
Creating text-only version of site
Hi there,

I have a stylesheet for a text-only version of the site. Is there a way of updating the cookie using Kentico so I can switch the stylesheet as opposed to doing it through JavaScript?

Let me know if you need more info

Thanks

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/8/2009 8:01:41 AM
   
RE:Creating text-only version of site
Hi,

You can use CMS.GlobalHelper.CookieHelper class to work with cookies in Kentico CMS. However, you can also take advantage of Head HTML web part which is capable of inserting code into HEAD section of you page, so you can simply change (programmatically ) your stylesheet according to user cookie in this web part.

Best Regards,
Miroslav Remias.