Hi! If someone can direct me a general addon in ee3 where I can hold latest entries from my channels and be put on the News channel.
Lets say I have 3 channels like CG Stuff, Music & Life Blog and when a new entry is posted from any of the 3 then it will show a brief summary on the News Channel.
For example: each channel has this Summary field and when posted will automatically add to the “News” channel.
So if my Homepage has Latest News block then it would show summaries of the 3 channel.
Suggestions anyone?
I can think of two native options.
One is to simply have 3 Channel entry tags each retrieving the most recent entry from their Channel. This is the most simple and straightforward, but it will not allow you sort the 3 entries by date: they will display based on tag order, not date order.
The other option would be to use a Query tag to get the 3 channel entry ids, and then feed those to a single Channel entry tag. This method, while more complex, will allow you to order the three entries based on date, so the top (or bottom) entry will be the most recent regardless of which Channel it is in.
If I understood right, you could do that something like this to your news-template:
{exp:channel:entries channel="channel_1|channel_2|channel_3" orderby="entry_date" limit="15" dynamic="no" disable="pagination"}
channel_1_summary}
channel_2_summary}
channel_3_summary}
{/exp:channel:entries}
Haven’t tried but something like that.
Ok so alternatively/practically is it better to create a News template to hold all channels than a creating a news channel?
This greatly depends on how you are structuring your data and your site. If you want to have three separate areas of News that are independent of each other, then having multiple channels makes sense. Otherwise you could use one channel and differentiate the news feeds based on a category. One is not necessarily better than the other.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.