Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      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

        Activity

        Hide
        Mavko Žmak - Žmale added a comment -

        It seems like the problem is in parsing custom attributes upon publishing of objects...

        On my site the same problem occurs.

        Tamara, after you publish your object with nolightbox turned on and the re-edit it, is the nolightbox still checked?

        Show
        Mavko Žmak - Žmale added a comment - It seems like the problem is in parsing custom attributes upon publishing of objects... On my site the same problem occurs. Tamara, after you publish your object with nolightbox turned on and the re-edit it, is the nolightbox still checked?
        Hide
        Mavko Žmak - Žmale added a comment -

        I believe this is the source of the problem:

        https://jira.ez.no/browse/EZP-20079

        Show
        Mavko Žmak - Žmale added a comment - I believe this is the source of the problem: https://jira.ez.no/browse/EZP-20079

          People

          • Assignee:
            unknown
            Reporter:
            Tamara Oellinger
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: