I’ve searched around the admin, the documentation, and google but I couldn’t find any information on reordering images (entries) for the Photo Gallery Module.
The ability to rearrange categories is there but our project requires that the individual images to be rearranged.
This doesn’t seem too complicated. Actually I’m surprised how expansive the module is and yet it doesn’t have this feature. Any help would be useful, thank you.
To reorder use the “orderby” paramater: http://expressionengine.com/docs/modules/gallery/parameters.html#par_orderby
You could orderby “title” or “caption”, and put numbers in the first part of the title or caption to force a specific order. If you need to display both the title and caption, you could parse out the number using a delimiter like so: (this example uses “:”)
<?php echo (FALSE!=($pos=stripos(($title="{title}"), ":")))?(substr($title, $pos)):($title); ?>
The above code is untested.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.