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 "$" to get the title of the article that is currently displayed. Set the title to document.title


No comments:

Post a Comment