Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11898

attribute_view_gui override condition does not work

    XMLWordPrintable

Details

    Description

      The override condition 'class_identifier' for the attribute_view_gui and attribute_edit_gui does not work.
      It is not defined in eztemplateautoload.php file.
      Ref:
      http://ez.no/doc/ez_publish/technical_manual/3_10/reference/template_override_conditions

      Here is the fix for attribute_view_gui:

      Index: kernel/common/eztemplateautoload.php
      ===================================================================
      --- kernel/common/eztemplateautoload.php        (Revision 20681)
      +++ kernel/common/eztemplateautoload.php        (Arbeitskopie)
      @@ -176,7 +176,9 @@
                                                      'input_name' => 'attribute',
                                                      'output_name' => 'attribute',
                                                      'namespace' => 'ContentAttribute',
      -                                               'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ) ),
      +                                               'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ),
      +                                                                       'attribute_id' => array('contentclassattribute_id'),
      +                                                                       'class_identifier' => array( 'object', 'class_identifier' )),
                                                      'attribute_access' => array( array( 'view_template' ) ),
                                                      'optional_views' => true,
                                                      'use_views' => 'view' ),
      
      

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            dis dis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: