Is it possible to list gallery entries by category all on the one page?
Category 1 —entry 1 —entry 2 —entry 3 —entry 4
Category 2 —entry 1 —entry 2 —entry 3 —entry 4
Category 2 —entry 1 —entry 2 —entry 3 —entry 4
I have been experimenting with nesting the {exp:gallery entries} tag inside the {exp:gallery:category_list} tag which works…ish. It lists all entries from all categories under each category. So using above as an example it lists 12 entries under each category.
{exp:gallery:category_list gallery="gallery" }
<h1>{category_name}</h1>
{exp:gallery:entries gallery="gallery" category="{category_id}"}
{entries}
http://www.site.ie/images/{filename}
{/entries}
{/exp:gallery:entries}
{/exp:gallery:category_list}
Any ideas how I would achieve this? I suppose what I’m really looking for is a {exp:gallery:category_archive} tag feature request isn’t it?
Greetings,
I’ve found success with the following example. Tested under 1.6.4. Let me know if you have any questions.
{exp:gallery:category_list gallery='gal1'}
<h1>{category_name}</h1>
{exp:gallery:entries gallery='gal1' category='{category_id}' orderby='entry_date' sort='asc' dynamic='off'}
{entries}
<div>
{row}
<a href="http://{id_path=gallery/comments}">{thumb_url}</a>
{title}
{/row}
</div>
{/entries}
{/exp:gallery:entries}
{/exp:gallery:category_list}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.