Hi,
Is there a way to break a channel entries tag into two (2) parts so that there is content in between that is not duplicated if multiple entries are displayed? I.e. so they are linked to create one instance of an entry, however still have multiple entries displayed?
I have searched through the documentation and can not find a definitive answer to this. I tried using the categories tag however that does not seem to work for this particular method of displaying content.
Thanks
Thanks for getting in touch about this one.
There are a few ways to handle this one as a whole. But I would recommend taking a peek at the {count} variable. You can likely do something like the following.
{if {count} == 1} Static content here {/if}
https://docs.expressionengine.com/latest/channels/entries.html#count
Thank you! I’ll try that hopefully that works. I was messing around with other variables and was causing looping errors.
Does the below make sense? I need to show the static content within the channels tag only once but have multiple entries shown at the same time otherwise i am looping the static content and it breaks the design.
{exp:channel:entries channel="portfolio" orderby="date" sort="asc"}
// Dynamic Content
{if {count} >= 1}
// STATIC CONTENT HERE ONLY ONE INSTANCE OF CONTENT WITH MULTIPLE ENTRIES SHOWN
{/if}
// Dynamic Content
{/exp:channel:entries}
Thank you
Thank you, that does work for the first slide due to the count ==1 conditional parameter however for the subsequent slides there are issues as it is placing the div for an overlay box right above the slider item and breaking how it is displayed.
Is there another conditional parameter that is designated to only show the content once without relying on how many entries are shown?
Thank you
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.