derrickhand300:
I have images in a gallery- I want to change the order in which they are displayed
I would like them to be displayed like it is using this code
{jrCore_list module="jrGallery" search1="_profile_id = 1" order_by="_created desc" pagebreak="50" pager="true" page=$_post.p group_by="_item_id" template="widget_list_grid_4.tpl" tpl_dir="jrGallery"}
I am working in the jrGallery_item_gallery.tpl but I do not understand how this template is ordering the images?
I really thought somewhere in the template would be code similar to the above and i would only have to change the
Seems this template uses something different..
Any tips on how to do this?
I have attached the template code
What you have inside item_gallery.tpl is the order that is defined by the module in:
/modules/jrGallery/profile.php
in the
profile_view_jrGallery_default() function. That function has decided that it will go and get all the images in an order that is set by the image order.
There are a couple of ways to stop that by making a module, but an easier way is to just use the code you have.
You know you want that code, so use that code.
Yes, all the items you want already exist in your over-ridden template jrGallery_item_gallery.tpl but they are not in the order that you want and you don't want to make a module, so make the entire contents of jrGallery_item_gallery.tpl be:
{jrCore_list module="jrGallery" search1="_profile_id = 1" order_by="_created desc" pagebreak="50" pager="true" page=$_post.p group_by="_item_id" template="widget_list_grid_4.tpl" tpl_dir="jrGallery"}
and you have what you want.