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 go into all the various aspects that aren't cooperating - but trust me, they are extensive. Eek!
What I am curious to know is if there is a way of creating a header with an image component (community logo) that can display a different image depending on category. I'll break it down:
Category: Livelihood-Talk (Main Community - Visible by all visitors, registered and non-registered) - Display "The Community" logo
Category: Instructor (Sub-Community - Visible to only those with VIC role) - Display "Virtual Instructor Community" logo
Is there any way at all to make this work? I know I can make components themselves visible by role, but this time I have two images that need to look at the category in which the page falls and display the correct logo instead.
Thank you for any help at all. It is unbelievably appreciated.
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>