Would anybody have any suggestions for me regarding the following setup.
I have a news and events page, listing all news articles and all events from both the news channel and the events channel. Its a single list. Each channel requires its own html.
I was thinking the following might work, but the if/else is not working in this context.
What would be the best approach for this?
{exp:channel:entries channel="news | events" orderby="date" sort="desc"}
{if channel=="news"}
SHOW NEWS HTML HERE
{/if}
{if channel=="events"}
SHOW EVENTS HTML HERE
{/if}
{/exp:channel:entries}appreciate any ideas.