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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 03:06:11
Script start
Timing: Jan 18 2025 03:06:11
Module start 'layout'
Timing: Jan 18 2025 03:06:11
Module start 'content'
Timing: Jan 18 2025 03:06:12
Module end 'content'
Timing: Jan 18 2025 03:06:12
Script end

Main resources:

Total runtime0.7365 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1328152.6250
Module start 'layout' 0.00530.0038 741.757839.4453
Module start 'content' 0.00910.7258 781.2031562.6719
Module end 'content' 0.73500.0015 1,343.875016.1563
Script end 0.7364  1,360.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4766160.0002
Check MTime0.00140.1860160.0001
Mysql Total
Database connection0.00080.105810.0008
Mysqli_queries0.676891.8987640.0106
Looping result0.00050.0746620.0000
Template Total0.700895.220.3504
Template load0.00220.303120.0011
Template processing0.698594.849120.3493
Template load and register function0.00010.016710.0001
states
state_id_array0.00280.373710.0028
state_identifier_array0.00170.236820.0009
Override
Cache load0.00190.2550380.0000
Sytem overhead
Fetch class attribute can translate value0.00060.076920.0003
Fetch class attribute name0.00080.111960.0001
XML
Image XML parsing0.00060.080120.0003
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00220.3017160.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs