Join us for EEConf 2023, October 4-5 in Orlando. Speakers. Networking. Community powered. Awesome.
Join us for EEConf 2023, October 4-5 in Orlando.
Register Now!Hi All,
I have a few channels for my website, the main channel (channel1) and another channel (channel2).
I’m using a sidebar in my channel1 templates which shows the titles of channel2. I set up the sidebar in a Template Partial.
The Partial displays the titles fine on the index-page of channel1 (where a number of entries are shown) but does not display on a single-entry-page (where just one entry of the channel1 is shown).
I tried using an embedded template with the titles of channel2 as sidebar. It displays fine by itself and displays fine on the index-page, but also does not display the titles on the single-entry-page.
Why does my Partial or the embedded template not display on the single-entry-page?
The Partial looks like this:
{exp:channel:entries channel="channel2" category="4" sort="desc" limit="5" disable="member_data|trackbacks"}
<div>{title}</div>
{/exp:channel:entries}
I use it on the index-page like this:
<div id="sidebar">
{template}
</div>
{exp:channel:entries channel="channel1" sort="desc" limit="5" disable="member_data|trackbacks"}
<div><a href="{title_permalink=channel1/single}">{title}</div>
{/exp:channel:entries}
I use it on the single-entry-page like this:
<div id="sidebar">
{template}
</div>
{exp:channel:entries channel="channel1" limit="1" disable="member_data|trackbacks"}
<div>{title}</div>
{/exp:channel:entries}
Any hints why this is not working as exprected are very appreciated!
Cheers, Andrea
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.