Forum
Mystery Link
Hi there,
I am new to using Perch, so apologies if this is basic error.
I have made a simple thumbnail gallery at: https://artwebsite.co.uk
There is a link appearing on image and copyright info at bottom of page to last image on each thumbnail page.
I removed the thumbnail template (below), and this removed link, so assuming it is something to do with that template.
Any ideas and thanks in advance?
Index page:
<?php include ('perch/runtime.php');?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="side">
<h1><?php perch_content(“Header”);?></h1>
<ul id="nav">
<li class="current"><a href="index.php">Gallery one</a></li>
<li><a href="gallery-two-one.php">Gallery two</a></li><br />
<li><a href="about.php">About</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
<div id="thumbnails"><?php perch_content(“thumbsOne”);?></div>
<div id="image"><?php perch_content(“MainImage”);?></div>
<p class="copy"><?php perch_content(“Copyright”);?></div>
</div>
</body>
</html>
Thumbnails Template:
<ul><li><a href="../index.php"><img src="<perch:content id="thumb-one" type="image"label="Thumb One" width="100" height="100" />"</a></li>
<li><a href="gallery-one-two.php"><img src="<perch:content id="thumb-two" type="image"label="Thumb Two" width="100" height="100" />"</a></li>
<li><a href="gallery-one-three.php"><img src="<perch:content id="thumb-three" type="image"label="Thumb Three" width="100" height="100" />"</a></li>
<li><a href="gallery-one-four.php"><img src="<perch:content id="thumb-four" type="image"label="Thumb Four" width="100" height="100" />"</a></li>
<li><a href="gallery-one-five.php"><img src="<perch:content id="thumb-five" type="image"label="Thumb Five" width="100" height="100" />"</a></li>
<li><a href="gallery-one-six.php"><img src="<perch:content id="thumb-six" type="image"label="Thumb Six" width="100" height="100" />"</a></li>
<li><a href="gallery-one-seven.php"><img src="<perch:content id="thumb-seven" type="image"label="Thumb Seven" width="100" height="100" />"</a></li>
<li><a href="gallery-one-eight.php"><img src="<perch:content id="thumb-eight" type="image"label="Thumb Eight" width="100" height="100" />"</a></li>
<li><a href="gallery-one-nine.php"><img src="<perch:content id="thumb-nine" type="image"label="Thumb Nine" width="100" height="100" />"</a></li>
</ul>
Diagnostic Summary
Perch: 2.8.32, PHP: 5.6.23, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/artweb/public_html/perch
PERCH_CORE: /home/artweb/public_html/perch/core
PERCH_RESFILEPATH: /home/artweb/public_html/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 12M, Max POST 12M, Memory: 64M, Total max file upload: 12M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/artweb/public_html
HTTP_HOST: artwebsite.co.uk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
You haven't closed the <img> tag.
Right now, it's reading:
The code below is the same template, but with the img tags closed.
Thanks Ben, much appreciated.. you have saved an afternoon of head scratching!
Anytime. If the problem is solved, please mark it as resolved :)