Using the template ad_sidebar_bottom

AndreaMarucci

Well-known member
I would like to move some addons block at the end of the sidebar so my idea is just to use the template ad_sidebar_bottom and to put the include inside it.

I've tried this
Code:
<xen:hook name="ad_sidebar_bottom" />

<xen:include template="xen_tr_com_today_birthday" />
<xen:include template="GP_donations" />
<xen:include template="xen_tr_com_latest_users" />

<!-- ::MOD:: blocco nella sidebar -->
<div class="section">
    <div class="secondaryContent partenaire" id="partenaires">
        <h3>Pubblicità</h3>
          <div class="pairsJustified">
            <a href="http://www.shift.it" target="_blank"><img src="/styles/default/xenforo/bannershift.png" height="228" width="228" border="0"></a>
          </div>
    </div>
</div>
<!-- ::MOD:: fine blocco nella sidebar -->
but doesn't work. The three lines
Code:
<xen:include template="xen_tr_com_today_birthday" />
<xen:include template="GP_donations" />
<xen:include template="xen_tr_com_latest_users" />
are now in the forum_list template and they do work...

Any suggestion on how the blocks does not display if I put these lines in that template?
 
Hi Brogan, these lines are yet above the tag you mention

Code:
    </xen:hook>
<xen:include template="xen_tr_com_today_birthday" />
<xen:include template="GP_donations" />
<xen:include template="xen_tr_com_latest_users" />
</xen:sidebar>

I would like to move them in the ad_sidebar_bottom so they appear at the bottom of the sidebar. Now under these three blocks there is the [bd] Widget block and under that one there is a custom block you see in the first code. I've had the idea to put these lines in the ad_ template but I don't understand why these do not display anything...

if you want to see http://forum.kog.it
 
All you have to do is the include.

For example, I just moved the share page template from forum_list to ad_sidebar_bottom and it works fine.
Code:
<xen:include template="sidebar_share_page">
    <xen:set var="$url">{xen:link canonical:index}</xen:set>
</xen:include>

Are you sure you're working in the correct style?
 
Well I don't know why but these two

<xen:include template="xen_tr_com_today_birthday" />
<xen:include template="xen_tr_com_latest_users" />

does not work if I put them in the ad_sidebar_bottom and this one

<xen:include template="GP_donations" />

work. Any idea why? I'll ask to the developer...
 
You can't move template includes from the "main" page to the "chrome" of the page if they require data exposed to the main page. The data they use is not available in the actual sidebar template, just during setup of the main page (forum_list, in this case).
 
Thanks Mike. I don't have fully understood what do you mean but I imagine that for the blocks that display some sort of dynamic data that operation is not possible... Thanks!
 
Top Bottom