XF 2.1 Make individual headers for each of my forums?

Radio Gunk

Member
How can this be done, in the former version of XF, I was able to do this by trial and error code manipulation.
I'm just hoping there is an easier way with XF 2.1
TIA!

<div id="logoBlock">
<div class="pageWidth">
<div class="pageContent">
<xen:include template="ad_header" />
<xen:hook name="header_logo">
<div id="logo"><a href="{$logoLink}">
<span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>




<xen:if is="{$forum.node_id} == 1">
<img src="HOWARD STERN FORUM HERE" alt="{$xenOptions.boardTitle}" />


<xen:elseif is="{$forum.node_id} == 2" />


<img src="IGNORE FOR NOW" alt="{$xenOptions.boardTitle}" />


<xen:elseif is="{$forum.node_id} == 3" />
<img src="RADIO GEEK HEADER HERE " alt="{$xenOptions.boardTitle}" />



<xen:elseif is="{$forum.node_id} == 4" />
<img src="JOYSTICK HEADER HERE" alt="{$xenOptions.boardTitle}" />



<xen:elseif is="{$forum.node_id} == 7" />
<img src="MUSIC AND PHOTO HEADER HERE" alt="{$xenOptions.boardTitle}" />


<xen:elseif is="{$forum.node_id} == 14" />
<img src="ENDZONE HEADER HERE" alt="{$xenOptions.boardTitle}" />



<xen:elseif is="{$forum.node_id} == 16" />
<img src="HOWARD STERN ARCHIVE HERE" alt="{$xenOptions.boardTitle}" />


<xen:else />


<img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
</xen:if>


</a></div>
</xen:hook>
<span class="helper"></span>
</div>
</div>
</div>
 
You would have to use a similar method in XF2 - updating the syntax as required.

Or you could use something like this in the extra.less template:
Less:
.node.node--id2
{
    background-color: orange;
}
 
Back
Top Bottom