Friday 23 April 2010 3:18:15 pm
At present I made this: In extension/ezoe/settings/content.ini.append.php :
[embed]
CustomAttributes[]=test In extension/ezoe/settings/ezoe_attributes.ini
[CustomAttribute_embed_taille]
Name=Taille
Title=Titre
Type=select
Selection[]
Selection[100]=100x100
Selection[200]=200x200 As I want to display the object (an image) in the edit interface (in the admin2 interface) I did an override in the admin siteaccess:
[embed_slideshow]
Source=content/view/embed.tpl
MatchFile=content/view/embed_slideshow.tpl
Subdir=templates
Match[class_identifier]=slideshow
and I placed the slideshow.tpl template in design/admin2/override/templates/content/view/embed_slideshow.tpl
Now I have a beautiful selectbox named «Taille» ;-) Question: how do I fetch the value selected in the selectbox ? What's the name of the variable ? $object_parameters does not contains this value, neither $test nor $taille, etc.... Thinks for your help. Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|