I’m wondering if it is possible to check if a url segment is a url_title outside the channel:entries tag.
For example if I want to display the same channel with different parameters depending on if I’m viewing an entry list or single entry page.
So:
{if segment_1 == any_url_title}
{exp:channel:entries channel="channel_1" dynamic="no" url_title="{segment_1}"}
{title}
{/exp:channel:entries}
{if:else}
{exp:channel:entries channel="channel_1" dynamic="no" limit="10"}
{title}
{/exp:channel:entries}
{/if}This would result in a situation where if segment 1 equals a url title (any url title) then it returns the first entries loop, and if segment 1 does not equal a url title the it returns the second entries loop.
This is mainly the result of having to use dynamic=“no” in my entries loop.
Possible?
Moved to Community Help forum by Moderator