Hello,
I’m currently pulling in entries from 2 channels on my homepage as follows;
{exp:channel:entries channel="news|calendar_events" limit="4"}
<h2 class="title"><a href="http://{title_permalink=">{title}</a></h2>
{if summary}{summary}{if:elseif event_summary}{event_summary}
{/exp:channel:entries}Because I am getting entries from 2 different channels, I want to ensure that the title_permalink will go to the appropriate page for that channel. I was wondering how I can achieve this?
I thought about putting in some sort of if statement, based on the channel but it didn’t seem to work.
I was wondering if anyone else had a solution?
By the way, the editor here seems to be stripping out some of my code. The title_permalink is entered correctly as per the user guide;
{title_permalink="news/view"}.
Thanks,
Neil