davidtwamley
15 years agoExpert
Page Title from FreeMarker
I've seen how to retrieve page.name in FreeMarker. It returns a value like "BlogPage" which is really more of a template name. Is there a way to get at the actual title of the page (the value that gets echoed in the <h1> tag)? This would provide a useful avenue for branching logic.
Hi, David.
There is, but it depends on the page. For example, if you're on a board/blog/idea page, a category page or the community homepage, you can use coreNode.title to get the name. If you're on a message, however, you'll need to use page.context.thread.topicMessage.subject.
Hope that helps!