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

Ezwebin - Class horizontallylistedsubitems does not display Subfolders

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.4.0alpha5
    • Legacy > Packages
    • None

    Description

      Trying to display with class horizontallylistedsubitems a given folder with its subitems being subfolders does not display anything.

      It works with verticallylistedsubitems class.

      Fix it's easy, a folder.tpl should be here
      extension/ezwebin/design/ezwebin/override/templates/horizontallylistedsubitems/
      content of this working example was a copy of product.tpl

      {* Product - Horizontally Listed Subitems view *}
      
      <div class="content-view-horizontallylistedsubitems">
          <div class="class-folder">
      
      <h2><a href={$node.url_alias|ezurl}>{$node.name|wash()}</a></h2>
      
      <div class="attribute-price">
      <p>
      {attribute_view_gui attribute=$node.object.data_map.price}
      </p>
      </div>
      
      {if $node.data_map.short_description.has_content}
      <div class="attribute-short">
      {attribute_view_gui attribute=$node.data_map.short_description}
      </div>
      {/if}
          
             
      
         </div>
      </div>
      
      

      and an override in the appropiate siteaccess

      [embed_horizontallylistedsubitems_folder]
      Source=node/view/horizontallylistedsubitems.tpl
      MatchFile=horizontallylistedsubitems/folder.tpl
      Subdir=templates
      Match[class_identifier]=folder
      
      
      
      Steps to reproduce

      Setup a folder with subfolders like this

      Folder

      • Subfolder 1
      • Subfolder 2

      Embed this folder using horizontally display subitems Class. Publish.

      Attachments

        Activity

          People

            unknown unknown
            lagartobostero lagartobostero
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: