Sidebar in specific threads only

Andrej

Well-known member
I wondering what could be wrong with the code below.

Code:
<xen:sidebar>
<xen:if is="{$threadId} == 1">
    <div class="section">
        <div class="secondaryContent">
            TEST123
        </div>
    </div>
 
    <div class="section">
        <div class="secondaryContent">
            ALFA BETA GAMMA
        </div>
    </div>
 
</xen:if>
</xen:sidebar>

I added it to the top of the thread_view template, but the output is:

Снимок экрана 2013-03-12 в 20.04.46.webp
The custom blocks don't seem to appear for some reason. I'm lost, would be grateful for any insight.
 
I figured it out so I share it for anyone who might stumble upon the same problem.

In the FAQ it says the following:

How can I show content in a specific thread?
<xen:if is="{$threadId} == x">
This content will show in thread x
</xen:if>

I've changed the first line to
How can I show content in a specific thread?
<xen:if is="{$thread.thread_id}== x">
This content will show in thread x
</xen:if>

and that seems to do the trick.
 
Back
Top Bottom