Right, that's exactly what I am looking for. Just don't know how the conditional would look or where to place lol.Perhaps in the logo template use a conditional like so
If forum.id = 2
then show heard2.png
etc..
Give me a few minutes and I'll see what I can do.Right, that's exactly what I am looking for. Just don't know how the conditional would look or where to place lol.
<xen:if is="{$quickNavSelected} == node-1">
<img src="link/to/logo" alt="{$xenOptions.boardTitle}" />
<xen:elseif is="{$quickNavSelected} == node-2">
<img src="link/to/logo" alt="{$xenOptions.boardTitle}" />
</xen:if>
// etc etc etc
<xen:foreach loop="{$quickNavSelected}" value="{$logo}">
<img src="link-to-logos-directory/{$logo}" alt="{$xenOptions.boardTitle}" />
</xen:foreach>
<img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
<xen:if is="in_array({$quickNavSelected}, array(5,6,19,22,198,4567))">
<img src="@headerLogoPath/logo{$quickNavSelected}.png" alt="{$xenOptions.boardTitle}" />
<xen:else />
<img src="@headerLogoPath/logo.png" alt="{$xenOptions.boardTitle}" />
</xen:if>
Do you want a different header for each forum, or for most forums? I'm asking because of sub-forms, and the header that should be displayed when a visitor is not in any forum.
Here is the approach I would take:
1. Style Properties: Header and Navigation -> Settings -> Header Logo Image Path:
set to: Styles/your_nifty_style_dir_your_logos_are_located_in
do not add the "/" at the end.
2. Open Template -> logo_block
Change this:
Code:<img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
to this:
Code:<xen:if is="in_array({$quickNavSelected}, array(5,6,19,22,198,4567))"> <img src="@headerLogoPath/logo{$quickNavSelected}.png" alt="{$xenOptions.boardTitle}" /> <xen:else /> <img src="@headerLogoPath/logo.png" alt="{$xenOptions.boardTitle}" /> </xen:if>
Change the numbers in the array(5,6,19,.....) to the forum_ids you want to have a different logo for.
Make a logo for each node_id. And name each one like so: logo5.png, logo6.png, etc.
The else statement will ensure a logo is displayed in all areas that do not have a node_id, or in forums you did not want a specific header to show.
yes, the id would be 9Quick question: How do I find the forum id for each forum?
EDIT: I think I have found it. In the admin node tree area I right clicked on the forum I want to ID for.
It said:
http://mysite.com/admin.php?nodes/moderators-forum.9/edit
Can I assume the forum ID is 9?
Do you want a different header for each forum, or for most forums? I'm asking because of sub-forms, and the header that should be displayed when a visitor is not in any forum.
We use essential cookies to make this site work, and optional cookies to enhance your experience.