Microsoft Content Management Server - Page title

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > November 2005 > Page title





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Page title
chris b

2005-11-30, 5:52 pm

Does anyone know the tag placed between the <Title></Title> tags that allows
the page title to use the Display name of a given CMS page.

thanks

Chris Borkowski
Guggenheim Mueuem
Alan Taylor

2005-11-30, 5:52 pm

Hi there,

Ensuring you have the following at the top of the Page/User control:

<%@ Register TagPrefix="cms"
Namespace="Microsoft.ContentManagement.WebControls"
Assembly="Microsoft.ContentManagement.WebControls, Version=5.0.1200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>

and have something similar to the following:

<title><%= CmsHttpContext.Current.Posting.Display %></title>

I think this will give you want you want.

drazic19

2005-11-30, 5:52 pm

Hi,

The previous posting is correct apart from its:

<title><%= CmsHttpContext.Current.Posting.DisplayName %></title>

You're probably best to set a variable to the the above PAPI call and then
call the variable; you'll most likely have the CmsHttpContext already
reference somewhere else in code, not point repeating yourself.

thanks,

Michael

"Alan Taylor" wrote:

> Hi there,
>
> Ensuring you have the following at the top of the Page/User control:
>
> <%@ Register TagPrefix="cms"
> Namespace="Microsoft.ContentManagement.WebControls"
> Assembly="Microsoft.ContentManagement.WebControls, Version=5.0.1200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
>
> and have something similar to the following:
>
> <title><%= CmsHttpContext.Current.Posting.Display %></title>
>
> I think this will give you want you want.
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com