ExpressionEngine-User-Guide icon indicating copy to clipboard operation
ExpressionEngine-User-Guide copied to clipboard

Outputting Channel Entries within a Channel Categories tag

Open ic360-com opened this issue 6 years ago • 0 comments

Suggested Change It would be nice to have an example of how to output Channel Entries data, within a Channel Categories loop, on this page https://docs.expressionengine.com/latest/channels/categories.html

Reasoning I've done this before for a couple of sites (and have just done it again) but I'm not sure it's a well known (or documented) method.

Additional context I use this method to display all the Entries within the Categories contained in a specific Channel. eg. All the cars, vans and minibuses contained in a rental vehicles channel. This method allows me to group all the vehicles on the page, by their category. ie. All the vans first, then all the cars and then all the minibuses.

{exp:channel:categories channel="vehicle" style="linear"} {exp:channel:entries channel="vehicle" category="{category_id}" dynamic="no"} vehicle data {/exp:channel:entries} {/exp:channel:categories}

ic360-com avatar Aug 29 '19 09:08 ic360-com