james_scee
12 years agoAce
From inside custom component - working out where I am
Would anyone know how to work out what page type you are on from inside a custom component. There is the coreNode, but if I ask
coreNode.nodeType, both board and thread report board
I did attempt:
<#if coreNode.webUi.url?index_of("/td-p/") != -1>
but unfortunately on a thread the url returned is that of the board.
any ideas?
Sign in to react to this post