Developer forum

Forum » Development » Page Title
Nuno Aguiar
Reply
Hi,

Is it possible in a custom module, to update the Page's title?
I don't want to change the default.aspx file, simply override what's there.

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer
Yes

See this article: http://devierkoeden.com/articles/notificationsubscribers-part-2-assigning-the-title-of-a-news-item-to-the-page-title.aspx

Just use the Dynamicweb.Notifications.Standard.Page.Loaded

Or a page template extender:
public class MyPageTemplateExtender : PageTemplateExtender
{

	public override void RenderTemplate(Rendering.Template Template)
	{
		Dynamicweb.Frontend.PageView.Current().Meta.Title = "";
	}

}


Votes for this answer: 0
 
Nuno Aguiar
Reply
Hi,

Perfect, Thanks Nicolai.

Nuno

 

You must be logged in to post in the forum