Forum
Album Listings
Hi I have a website with 2 different albums of images on (https://aurelie-art.co.uk/work.php), unfortunatley when I click onto the albums I am linked to a blank page. I would like to link to a new page containing the gallery images, where I navigate through them.
I am using the Gallery App, with the perch_gallery_albums page function:
<?php perch_gallery_albums(array( 'template'=>'a_album-image.html', 'image'=>true )); ?>
and I am using a_album-image.html as my template:
<li class="album"> <perch:if exists="small"> <a href="album.php?s=<perch:gallery id="albumSlug" />"><img src="<perch:gallery id="small" />" alt="<perch:gallery id="imageAlt" />" height="<perch:gallery id="small-h" />" width="<perch:gallery id="small-w" /> "/></a> </perch:if> <div><a href="album.php?s=<perch:gallery id="albumSlug" />"><perch:gallery id="albumTitle" /></a></div> </li>
Running through my diagnostics everything is fine. Am I missing something?
Please post your Diagnostic Report here.
Here is the summary of the report:
HEALTH CHECK
Perch is up to date PHP 5.5.23 is up to date MySQL 5.1.73-log is up to date Image processing available
SUMMARY INFORMATION
Perch: 2.8.4, PHP: 5.5.23, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_forms (1.8.3), perch_gallery (2.8.6), perch_mailchimp (2.0.1) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_gallery', 'perch_mailchimp', ); PERCH_LOGINPATH: /perch PERCH_PATH: /homepages/46/d402851804/htdocs/aurelieart.co.uk/perch PERCH_CORE: /homepages/46/d402851804/htdocs/aurelieart.co.uk/perch/core PERCH_RESFILEPATH: /homepages/46/d402851804/htdocs/aurelieart.co.uk/perch/resources Image manipulation: GD PHP limits: Max upload 40M, Max POST 8M, Memory: 120M, Total max file upload: 8M Resource folder writeable: Yes HTTP_HOST: aurelie-art.co.uk DOCUMENT_ROOT: /kunden/homepages/46/d402851804/htdocs/aurelieart.co.uk REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Do you have a page in the root of your site that is named album.php?
I don't, shall I add one?
You're linking to one from the images, so you either need to put it in place or change the link.
Ahh right, sorry my php coding skills are non existent. So if I add in a page "album" then the links should work?
Yes - take a look at the example files, there should be one in there.
Thanks Drew & Rachel for your help!