That is the part that I am struggling with creating, the XML template.
My current XML file, which is now a .php file managed by couch is as follows...
Here is the html front end code for this gallery.
Thanks for helping me with this so far KK. That speaks volumes to me from a consumer stand point. You are legendary.
I really want to get a good grasp on couch's applications because I have a lot of older HTML sites that need to be either updated, or converted, and this would help me deliver a bit more control to my clients, which they would all like.
My current XML file, which is now a .php file managed by couch is as follows...
- Code: Select all
<?php require_once( '../backend/cms.php' ); ?>
<cms:content_type 'text/xml' /><cms:concat '<' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />
<photos>
<cms:editable name='trailcam_xml' type='richtext'>
<!-- Plase your photos here -->
<photo desc="Double Click to open and close a larger image." url="_pics/pic01.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic02.JPG" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic03.JPG" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic04.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic05.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic06.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic07.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic08.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic09.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic10.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic11.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic12.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic13.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic14.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic15.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic16.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic17.jpg" />
<photo desc="Double Click to open and close a larger image." url="_pics/pic18.jpg" />
</cms:editable>
</photos>
<?php COUCH::invoke(); ?>
Here is the html front end code for this gallery.
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Trail Cam Photos</title>
<script type="text/javascript" src="_inc/swfobject.js"></script>
<link href="_inc/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="fullscreendemo">
<strong>This site requires Flash Player 8.0 or greater</strong><br />
Please <a href="http://get.adobe.com/flashplayer/">click here</a> to download.<br />
If you are sure you have the required version, press this link: <a href="../polaroid_20070716/readme.html?detectflash=false">bypass the detection</a>.
</div>
<script type="text/javascript">
//<![CDATA[
var so = new SWFObject("polaroid.swf", "polaroid", "100%", "100%", "8", "#FFFFFF");
// specify the url to the xml-file, default is photos.xml
so.addVariable("xmlURL","trailcam.php");
so.write("fullscreendemo");
//]]>
</script>
</body>
</html>
Thanks for helping me with this so far KK. That speaks volumes to me from a consumer stand point. You are legendary.
I really want to get a good grasp on couch's applications because I have a lot of older HTML sites that need to be either updated, or converted, and this would help me deliver a bit more control to my clients, which they would all like.