Forum

Thread tagged as: Configuration

Template for gallery page

Hello

I am trying to create a template to for a section on a page to produce gallery with a title for the batch of images, a date, upload two images and a description of the image. I have produced the template below but only the description of the image appears.

Is it possible to only show the event name and date once and add up to 15 rows of two images? It is planned to show several events and activities over a year or so on the same page.

I was also wondering about image size. Is it possible to have a maximum size of images. When the person who comes to upload the images would be uploading some landscape and some may be portrait. The ideal image sizes would be Portrait 258px high 334pix wide landscape 334pix wide 258pix high.

 <perch:repeater id="Gallery Images" label="Gallery Images" max="15"> 
<table width="955" border="0" cellpadding="0" align="right" style="padding-top:20px";>
    <perch:before><tr></perch:before>    
    <td colspan="2" width="710px"><strong><perch:content type="text" id="Event Name" label="Event Name" /></strong></td>
    </tr>
    <tr>
      <td colspan="2" width="710px"><strong><perch:content type="text" id="Date of event" label="Date of event" /></strong></td>
    </tr>
    <tr>
      <td style="text-align: center;" width="245px" valign="top"><img src="<perch:content type="image" id="picture 1" label="Picture 1" crop="true" width="245" height="330"/>"/></td>
      <td style="text-align: center;" width="245px" valign="top"><img src="<perch:content type="image" id="picture 2" label="Picture 2" crop="true" width="245" height="330"/>"/></td>
    </tr>
    <tr>
      <td><strong><perch:content type="text" id="picture_discription_1" label="Picture 1 discription" /></strong></td>
      <td><strong><perch:content type="text" id="picture_discription_2" label="Picture 2 discription" /></strong></td> 
    <perch:after></tr></perch:after>  
</table>
</perch:repeater>

hope someone can help.

Regards,

Paul

Paul Quillin-Creamer

Paul Quillin-Creamer 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try changing

 <perch:repeater id="Gallery Images" label="Gallery Images" max="15"> 

to

 <perch:repeater id="gallery_images" label="Gallery Images" max="15"> 

For the sizing, set

width="334" height="334"

this will create a bounding box, the limit of which is 334 in either dimension.

Hello Drew

I made the changes to the template filled in the sections but when I clicked to save and add new it said "This webpage is not available" on the webpage: https://176.32.230.9/activelifestyles.org.uk/gallery.php it is just showing the picture descriptions.

Is there away to have just the images and the descriptions repeated and the Event name and event date once?

Many thanks,

Paul

Rachel Andrew

Rachel Andrew 394 points
Perch Support

That sounds as if you are getting some sort of PHP or server error so I would suggest you take a look in your error log to see what it is.