sdodds
8 years agoExpert
obtain the relative href of a custom page
I'm trying to do set a class for styling the header navigation for a set of custom pages. How I do it for other categories is by the following code: <#if category.id == coreNode.id || isAncestor(...
- 8 years ago
sdodds - coreNode context object will not work unless you bind custom page to any category or board. However, you can use page.name context object for the custom pages. It will return you the custom page name.
E.g http://mycomunity.lithium.com/t5/custom/page/page-id/my-custom-page
${page.name} will return the my-custom-page for above URL.