Forum Discussion
YuriK
Khoros Expert
Hey Alan,
I believe everything after the period is ignored for the page name, so the page name will be "CategoryPage" here.
One good way to check what the name of a page is is as follows:
- Create a component that just outputs ${page.name}
- Put the component on the page that you want to see the name of
- Go to the page that you want to see the name of
Hope this helps,
Yuri
iftomkins
12 years agoMaven
Hi Yurik,
Yes, you're right, it only outputs CategoryPage for the page name (${page.name} is good to know).
This is a challenge for us because we have 2 pages which are both CategoryPage. How do we tell them apart with freemarker conditionals?
Can you do page.template-name? Because they use different templates.
Another thought is node.id, but I only saw an option for coreNode.id.
- Alan
Yes, you're right, it only outputs CategoryPage for the page name (${page.name} is good to know).
This is a challenge for us because we have 2 pages which are both CategoryPage. How do we tell them apart with freemarker conditionals?
Can you do page.template-name? Because they use different templates.
Another thought is node.id, but I only saw an option for coreNode.id.
- Alan
Related Content
- 4 years ago
- 11 years ago
- 7 years ago