Wednesday 16 November 2005 7:06:33 am
Hi Lukasz, See the code below :
this.createTextField("plan", 10, 100, 10, 100, 20);
if (_level0.localisation == undefined) {
plan.text = "";
} else {
plan.text = _level0.localisation;
liste = _level0.localisation.split("/");
nombre = liste.length;
for (i=0; i<nombre; i++) {
clip = liste[i];
eval(clip).nextFrame();
}
}
this.createTextField("etablissement", 20, 100, 30, 100, 20);
if (_level0.nom == undefined) {
etablissement.text = "";
} else {
etablissement.text = _level0.nom;
}
textFormat = new TextFormat();
textFormat.font = "Arial";
textFormat.size = 12;
textFormat.color = 0x000000;
plan.setTextFormat(textFormat);
etablissement.setTextFormat(textFormat);
We did it, not to render xml content (eZ already do it) but to add a flash map in article.tpl We customized the classic article class by adding a textline where you can write the geolocalisation of the content.
Tha site is actually under construction but you can have a quick look here : http://salon-azimut.safetyhost.net/fr/exposants/services_aux_etudiants/lycee_xxx It's much better than a long explanation. Actualy we are working to extend the process in the other way :
- fetch children attributes of a folder
- render them on a map (icon, additional text, ...) - link to the whole content (back to eZ classic render) I hope this can open a new long thread full of ideas...and solutions ;) Laurent
|