Forums / Setup & design / Displaying Subfolders Horizontally

Displaying Subfolders Horizontally

Author Message

Matias Barletta

Tuesday 17 August 2010 12:19:58 am

1st . Great product ! thanks a lot :)

2nd. In ezwebin Tryiing to use the horizontalldisplaysubitems Class on folders does not work as of 4.4 alpha 5 . Verticallydisplaysubitems works like charm. So I did a rookie approach with:

Create file extension/ezwebin/design/ezwebin/override/templates/horizontallylistedsubitems/folder.tpk

put this inside:

{* 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>

then do

Update override.ini settings/siteaccess/esl/override.ini.append.php or the one you need with

[embed_horizontallylistedsubitems_article]
Source=node/view/horizontallylistedsubitems.tpl
MatchFile=horizontallylistedsubitems/folder.tpl
Subdir=templates
Match[class_identifier]=folder

Nicolas Pastorino

Tuesday 17 August 2010 2:25:12 am

Hi Matias and welcome aboard the eZ Community !

I am not sure to fully understand the issue you stumbled upon. Is a CSS class missing in the template ? Is it something you can report in the issue tracker there http://issues.ez.no, if you think it is a defect ?

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Matias Barletta

Tuesday 17 August 2010 7:21:16 am

Hi Nicolas,

Is not a CSS problem, is a template problem. Given this structure

Folder

-> Subfolder1

-> Subfolder2

This folder with display subitems selected will not show subfolder items if you choose to show them horizontally, it will work if you choose to do it vertically.

In xml this would be:

<embed class="horizontally_listed_sub_items" custom:offset="0" custom:limit="3" href="ezobject://176" />

If you choose this class and this object 176 has subfolders they will no show up.

smells like a defect, does this happens in vanilla 4.3?

Thanks Nicolas

Matias Barletta

Tuesday 17 August 2010 3:18:26 pm

Done! reported as an issue

http://issues.ez.no/IssueView.php?Id=17105&activeItem=1

Nicolas Pastorino

Wednesday 18 August 2010 1:18:00 am

"

Done! reported as an issue

http://issues.ez.no/IssueView.php?Id=17105&activeItem=1

"

Excellent Matias, thanks for this. Reporting an issue (or looking for existing ones) is the good way to go!

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye