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

Make content/edit more stylable / scriptable by adding usable classes on attribute divs

    XMLWordPrintable

Details

    Description

      Add something like the following to content/edit_attribute.tpl to make it easier to style and script attributes by datatype name / class attribute identifier.

      Index: design/admin/templates/content/edit_attribute.tpl
      ===================================================================
      --- design/admin/templates/content/edit_attribute.tpl	(revision 23177)
      +++ design/admin/templates/content/edit_attribute.tpl	(working copy)
      @@ -1,6 +1,6 @@
       {default $view_parameters=array()}
       {section var=attributes loop=$content_attributes}
      -<div class="block">
      +<div class="block ezcca-edit-datatype-{$attributes.item.data_type_string} ezcca-edit-{$attributes.item.contentclass_attribute_identifier}">
       {* Show view GUI if we can't edit, oterwise: show edit GUI. *}
       {section show=and( eq( $attributes.item.can_translate, 0 ), ne( $object.initial_language_code, $attributes.item.language_code ) )}
           <label>{$attributes.item.contentclass_attribute_name|wash}{section show=$attributes.item.can_translate|not} <span class="nontranslatable">({'not translatable'|i18n( 'design/admin/content/edit_attribute' )})</span>{/section}:</label>
      
      

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: