Forum Discussion
VarunGrazitti
Boss
There is no call like board.name, for board specific, you can use coreNode.id which will return the id of current board.
i hope this helps.
i hope this helps.
Quelyn
10 years agoGenius
Hmm, I have seen some stuff referencing the coreNode.id. But how would I use it in this context, do you know?
<#if user.anonymous && page.name == "CommunityPage"> ${http.response.setRedirectUrl(webuisupport.urls.page.name.get("custom-anonymous-user-landing-page").build())}
<#elseif !user.anonymous && page.name == "custom-anonymous-user-landing-page">
${http.response.setRedirectUrl(community.urls.frontPage)}
</#if>
Would I change it to this:
<#if user.anonymous && page.name == "CommunityPage"> ${http.response.setRedirectUrl(webuisupport.urls.page.name.get("custom-anonymous-user-landing-page").build())}
<#elseif !user.anonymous && coreNode.id == "<what goes here>">
${http.response.setRedirectUrl(community.urls.frontPage)}
</#if>
I'm pretty noobish here, so sorry if I'm missing something.
Related Content
- 10 months ago
- 2 years ago
- 4 years ago
- 13 years agoInactive User