I use TiltViewer-Pro as an index to products listed below the control. I have the product image on the front and its description and price on the back, plus a link to the the actual product page. What I would find really useful and user-friendly is if I didn't have to flip the image to click on the link. Is it possible to either have a link button on the front or be able to double-click on the image to follow the link?


Yes, I specified that in the first line of my code:

  $xmlcode = '<?xml version="1.0" encoding="UTF-8"?>'

Thanks for the response, monkeyboy, I've tried that and it works fine. The trouble I have, however, is when I add title and description data it stops working. I used CDATA to accommodate special characters but that made no difference. Here's the strange thing, though, if I save the xml to the file gallery.xml and use that as the xmlURL, it works fine...

This is my code:

$xmlcode = '<?xml version="1.0" encoding="UTF-8"?>'; 
  $xmlcode .= "<tiltviewergallery>";
  $xmlcode .= "<photos>";

  while ($image_row = tep_db_fetch_array($products_query)) {

       $xmlcode .= '<photo imageurl="images/' . $image_row&['products_image'] . '" linkurl="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $image_row['products_id']) . '">';
       $xmlcode .= "<title><![[CDATA[" . $image_row['products_name'] . "]]></title>";
       $xmlcode .= "<description><![CDATA[" . $image_row['products_description'] . "<br><br>" . $currencies->format($image_row['products_price']0  . "]]></description>";
       $xmlcode .= "</photo>";

  } // end while
  $xmlcode .= "</photos>";
  $xmlcode .= "</tiltviewergallery>";
  echo $xmlcode;

If I dump the contents of $xmlcode and put it into gallery.xml manually, it works. I'm just wondering if there are any special characters in the data that get lost when written to a file but break the direct data stream...


A chap over at the 4homepages de forum detailed a mod to the xmlURL changing it to call some PHP code that generated the XML code that was streamed back directly. It wasn't written to a file.  Has anybody got this to work? I haven't even though the xml is being generated ok. The topic title on the 4homepages forum is '[MOD] TiltViewer for 4images'.