cike
6 years agoChampion
Change SEO title for label filters
Hi Khoros Developers,
the last days I tried to change the <title> tag of a BlogPage. The BlogPage contains some customizations which to add a path parameter to the page url:
/t5/Blog/bg-p/community-blog/label-name/Industrial%20Hydraulics
As you can see, the Url looks like the default for FilterByLabelPage quilt. Now I tried to add code to the Init-Script to change page title as described here for custom pages.
But by now, nothing happens when calling the context object:
${page.content.head.setTitle("Page title change")}
As recommend I scoped my code to run only for specific page/node types, but even when removing the if-statements the context object didn't work.
Does anyone of you faced a similar issue or have any hints on this? Currently, I assume that rewriting the <title> tag will only work for custom pages. 😐
Thanks and best regards
Christian