New features If you wish to suggest a new feature, please use the New features forum for version 3.x.
Version 2.x > New features > set head information View modes: 
User avatar
Member
Member
dnelson - 3/8/2007 11:17:08 PM
   
set head information
It would be helpful to be able to set information in the <head> element on a page by page basis. Specifically a script that may need to get run on a given page, etc.

A specific scenario for this would be the implementation of a google map to a page. I can create a page template that has the necessary information. The problem is that I have to embed my google map api key in a script file in the head section. This means at the current moment that I have to have a new page template for each site as the google key changes based on the domain name. The better alternative would be to expose a text box in the cmsdesk page properties where I could reference or add a script block for that page where I could just insert the new key and that way my page template could be used across multiple sites.

User avatar
Member
Member
kentico_petrp - 5/8/2007 5:32:59 PM
   
RE:set head information
Thank you for your suggestion. We will sure consider it for future versions.

Petr Palas, Kentico

User avatar
Member
Member
romeo_osma-yahoo - 12/20/2010 4:46:49 AM
   
RE:set head information
Hi Petr,

Is this functionality included on version 5?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 12/20/2010 6:33:58 AM
   
RE:set head information
Hello,

Currently you are able to set the following page specific meta content:
Page title
Page description
Page keywords
Page tags

For adding another content I would suggest you to use a custom webpart which would dynamicaly generate the content (e.g. create a custom field for the menu item and display the content with a custom webpart) or you can parse the whole header text in the CMSPages/PortalTemplate.aspx.cs file in the OnPreRender method and add your custom tags.

Best regards,
Boris Pocatko