Developer forum

Forum » Development » Newsv2 title
Nicolai Høeg Pedersen
Reply
How do I get the meta-title of a (NewsV2) article in the PageTitle?

Replies

 
Nicolai Høeg Pedersen
Reply
I Just changed the module so it will do so by it self - will be out with an upcoming service release.

Untill then - use a notification subscriber:
http://engage.dynamicweb-cms.com/api/extensibility/Dynamicweb~Dynamicweb.Notifications.NewsV2+Frontend~AfterSelectData.html

Simply add

Dynamicweb.Frontend.PageView.Current.Meta.Title = item.NewsHeading();

 
Reply
In case anyone needs this, I just wrote a short article about implementing this:

http://devierkoeden.com/Articles/[articleId/26]/NotificationSubscribers---Part-2---Assigning-the-Title-of-a-News-Item-to-the-Page-Title.aspx

Imar

 

You must be logged in to post in the forum