Sunday 21 October 2012

Setting browser title as article title - Liferay

Problem:  I want to set web content title (article title) as browser title in liferay.

Solution: Create a template for your web content and you can use predefined velocity variables like "$reserved-article-title.data" to get the title of the article that is currently displayed. Set the title to document.title

Example:
 



No comments:

Post a Comment