Hi S5VI,
I try to understand your idea and I think I'm close to that, I hope.
I studied today the Picasa Web Templating and searched the internet for new idea's I can implement with my (limited) knowledge of TPL, XML and PHP coding.
Let me explain more in detail :
1) I have multiple "rubrieken" and each "rubriek" contains multiple galeries with a number (up to 50) of fotos in each galery.
2) The foto's are stored in directories on a webserver as follows :
- root
----- RUBRIEK
--------- GALERY A Name
-------------- all SV Picase files including "/images/foto-names.jpg"
--------- GALERY Another Name
-------------- all SV Picase files including "/images/foto-names.jpg
--------- etcetera
----- RUBRIEK Another
--------- GALERY blabla
-------------- all SV Picase files including "/images/foto-blabla.jpg
--------- etcetera
----- etcetera
3) In my calling PHP-file I create dynamic hyperlinks containing the parameters "rubriek" and "galery" to call the "default.php" (or index.html), which contains the SV that is build by the "galery.xml" file (generated by Picassa with the SV Picassa template).
So the relative link is like : /rubriek/galery/default.php?rubriek =$rubriek&galery=$galery
4) In default.php I put :
//PHP5 with ' register_globals = off '
if(!isset($_GET["galery"])) $galery="Unknown galery";
else $evenement = $_GET["evenement"];
if(!isset($_GET["rubriek"])) $rubriek="Unknown rubriek";
else $rubriek = $_GET["rubriek"];
5) In the Picasa SV template <%itemName%> is the value for parameter <filename> and equals with the name of the picture (foto-blabla.jpg) AND <%exportDescription%> equals in my case with my parameter "galery"
6) The imageNode.xml looks like :
<image>
<filename><%itemName%></filename>
<caption><![CDATA[<font size="14"><A href=../buyfotos.php?foto=<%itemName%&galery=<%exportDescription%>&rubriek=<% ?? %>>" target="main"><font size="14"><U>Place picture in basket.</U></font></A></font>]]></caption>
</image>
SO FAR, SO GOOD!
However I would like to include "rubriek" also in the <caption> !! I need it in the further processing of the buy-order!
For your (very much appreciated) comments I understand I have to struggle with the SV Picassa files to get &rubriek=<% ?? %> in the final "galery.xml". Am I right?
I will start with "index.tpl" and STEP BY STEP hope to include something like you suggest as :
"ps: galleryprototype.xml can be created with picasa and acts as template file.
gallery xml will be created from galleryprototype.xml+rubriek parameter.
gallery.xml created BEFORE calling sv "
I will keep you informed and am still hoping that you or Felix or anay other expert can write me the required code for the files in SV Picasa template. I did my best to explain my obejective as much as possible in detail.
met vriendelijke groet,
Berend