Forum Discussion

jmurray's avatar
jmurray
Champion
12 years ago

PrivateNotesPage.B and coreNode.id's

I can usually make a custom page to replace pages that differ between our consumer and business sides of the community. I notice I can't do that with PrivateNotesPage because there is just one of them, which is configurable at the Community Node level and no further in.

Here is the trouble: My headers display based off of the coreNode.id - one set for consumer - one for business. This is one page for both, and right now we are stuck with the consumer header, which is confusing for business customers. I could live without a header at all for this page, so I have considered saying #if coreNode.id == webroot then no header. However, at least a couple of other pages have the same coreNode.id, and that would mess those up. So what is the thing I would replace coreNode.id with in my code that relates to the PrivateNotesPage that identifies it, and only it, as that page?

So instead of <#if coreNode.id == webroot...
What do I use in this statement to replace that coreNode.id? :robotfrustrated:

  • Have you tried

     

    <#if page.name == "PrivateNotesPage">

     

    Do post back and let us know if that does/doesn't work!

  • VenkS's avatar
    VenkS
    Lithium Alumni (Retired)

    Have you tried

     

    <#if page.name == "PrivateNotesPage">

     

    Do post back and let us know if that does/doesn't work!