Forum Discussion
You can use page.content.head.setTitle and page.content.head.setDescription context object only for Custom Pages. It will not work for other pages or mapped custom pages.
Parshant Oh shoot. Is there any other way to set the ForumTopicPage head title and meta description without using Javascript and use freemarker context objects as a variable in it?
- AdamN5 years agoKhoros Oracle
Lindsey Although the page you referenced is indeed geared toward how to use this context object with Custom Pages, I'm seeing nothing in the API documentation that suggests it should only work for Custom Pages: https://developer.khoros.com/khoroscommunitydevdocs/reference/page-1#contentheadsettitletitle
It may be worth opening a case with Support to determine whether this is a bug, or if the documentation needs to be clarified.
- Lindsey5 years agoLeader
I instead could set it in the page.head.title@page:ForumTopicPage text property, however I'm not sure how to get the board related to the current page here. Is there a text property that contains the current board I could add as a variable to this text property?