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 > Application Name and <Title> Tag View modes: 
User avatar
Member
Member
sciamannikoo - 4/24/2005 12:58:12 PM
   
Application Name and <Title> Tag
Most of web pages use this "standard" in <title> tag:

{Web site name} - Page Title

For example:
Kentico CMS - Home
Kentico CMS - Downloads
....

I've think a new key in web.config, like that:
<add key="CMSPageTitlePrefix" value="Web Site Name - " />

And this change in Functions.vb:
    Public Shared Function GetPageTitleTag(ByVal defaultAliasPath As String) As String
Dim title As String
Dim dr As DataRow

If HttpContext.Current.Request.QueryString("aliaspath") & "" = "" Then
'use provided alias path only if no alias path is passed in the querystring
dr = GetPageInfoDR(defaultAliasPath)
Else
'use alias path from the querystring
dr = GetPageInfoDR(Functions.GetAliasPath)
End If

title &= ConfigurationSettings.AppSettings("CMSPageTitlePrefix")

If Not dr Is Nothing AndAlso Not dr("MenuItemPageTitle") Is DBNull.Value Then
title = CType(dr("MenuItemPageTitle"), String)
End If
Return String.Format("<title>{0}</title>", HttpContext.Current.Server.HtmlEncode(title))

End Function

I think this is an easy feature for future Kentico versions.

Bye,
Andrea

User avatar
Guest
admin - 4/26/2005 6:33:36 AM
   
Re: Application Name and <Title> Tag
Hi Andrea,

Thank you very much for this suggestion. We will add it in v1.6a.

Best Regards,

User avatar
Member
Member
nvaughn - 12/28/2006 11:57:31 PM
   
Re: Application Name and <Title> Tag
In place of editing the web.config, I'd prefer the title at the very least be pre-populated with the page's name when you create it.

Additionally, something that needs to be edited on every page (like the title) shouldn't be so deeply buried in my opinion. It wouldn't be out of place on the general tab instead of the metadata tab and you could skip 1 click.

User avatar
Guest
admin - 12/29/2006 7:42:04 AM
   
Re: Application Name and <Title> Tag
Hello,

Thank you for your valuable feedback. We will sure consider it for the next versions.

Best Regards,

User avatar
Member
Member
nvaughn - 12/29/2006 11:47:49 PM
   
Re: Application Name and <Title> Tag
The original suggestion sounds like a good idea as well though. Was this ever actually implemented? We're running 2.0b. I've tried adding the key but I haven't seen it change the page titles.

Unfortunately I'm quite novice at asp.net and I'm unable to troubleshoot it myself either.

User avatar
Guest
admin - 12/31/2006 5:36:26 PM
   
Re: Application Name and <Title> Tag
Yes, it's available in v2.0b - you can set up the prefix used for title, keywords and description of all pages in Site Manager -> Settings -> Web Site -> ... select your web site from the drop-down-list and set the values "Page Description Prefix", "Page Key Words Prefix" and "Page Title Prefix".

Best Regards,

User avatar
Member
Member
nvaughn - 1/2/2007 10:06:43 PM
   
Re: Application Name and <Title> Tag
Thanks a ton!