Forum Discussion

JillianB's avatar
JillianB
Genius
11 years ago

Header with Category IF Statement?

After quite a bit of research, community breaking, and hair pulling I've determined that created a separate header for a sub-community in my larger community domain just isn't going to work. I won't ...
  • MoniqueL's avatar
    MoniqueL
    11 years ago

    Hey Jillian,

     

    Sorry, rather than use category.id, you should try using coreNode.id, e.g. something like

    <#if coreNode.id == "Instructor">
    <div class='VIC_community_logo'>
        <a href="/t5/custom/page/page-id/VIC" class="VICcommunityLogo" title="Virtual Instructor Community">Virtual Instructor Community</a>
      <span class="tagline">Looking at life through tax.</span>
    </div>
    
    <#else>
    <div class='hrb_community_logo'>
          <a href="/" class="communityLogo" title="The Community">The Community</a>
      <span class="tagline">Looking at life through tax.</span>
    </div>
    
    </#if>