Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
-
Operating System: windows 7
PHP Version: not relevant
Database and version: not relevant
Browser (and version): Firefox 15.0.1
ezPublish: 4.6
ezoe: default of ezp 4.6
Description
Aim was to add a custom attribute when a user embeds an object of a certain type e.g. an image. The custom attribute should not be visible when embedding other objects e.g. a file.
We have added the settings to content.ini and ezoe_attributes.ini listed below in the Steps to Reproduce section.
The custom attribute was visible as expected (shown for images, none for files).
Unfortunately we were not able to access the custom attribute in
templates/content/datatype/view/ezxmltags/embed.tpl
-> $object_parameters did not contain our custom attribute.
We experienced that the custom attribute was available in $object_parameters when adding
[embed] CustomAttributes[]=nolightbox
to the content.ini file (but that's not the behaviour we try to achieve).
Steps to reproduce
content.ini.append.php - add the following setting
[embed_image] CustomAttributes[]=nolightbox
ezoe_attributes.ini.append.php - add the following setting
[CustomAttribute_embed_nolightbox]
Name=Our Text
Type=checkbox
</code>
Embed an image, try to access the value via $object_parameters in templates/content/datatype/view/ezxmltags/embed.tpl