I am using a photo gallery on a website and it's using relation as well so it shows images related to a photo gallery folder but just been asked if the photos can be rearranged manually.
I did this on another website so copied the coding but it has not worked on this site for some reason. The code I have is below
Gallery.php
Portfolio.php
Thank you in advance
I did this on another website so copied the coding but it has not worked on this site for some reason. The code I have is below
Gallery.php
- Code: Select all
<cms:editable
name="gg_image"
label="Image"
desc="Upload your main image here"
quality='100'
show_preview='1'
preview_height='200'
type='image'
orderby='page_name'
/>
<cms:editable
name="gg_thumb"
assoc_field="gg_image"
label="Image Thumbnail"
desc="Thumbnail of image above"
width='115'
height='115'
quality='100'
enforce_max='1'
type='thumbnail'
orderby='page_name'
/>
<cms:editable
type='relation'
name='photo_portfolio_images'
masterpage='portfolio.php'
has='one'
no_gui='1'
label='-'
/>
Portfolio.php
- Code: Select all
<cms:reverse_related_pages 'photo_portfolio_images' masterpage='gallery.php' orderby='page_name' order='asc' >
Thank you in advance