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

eZ debug

Timing: Jan 17 2025 23:54:51
Script start
Timing: Jan 17 2025 23:54:51
Module start 'content'
Timing: Jan 17 2025 23:54:51
Module end 'content'
Timing: Jan 17 2025 23:54:51
Script end

Main resources:

Total runtime0.8183 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.7344180.8281
Module start 'content' 0.00590.6997 768.5625567.7500
Module end 'content' 0.70560.1126 1,336.3125337.3984
Script end 0.8182  1,673.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4757210.0002
Check MTime0.00140.1759210.0001
Mysql Total
Database connection0.00060.073110.0006
Mysqli_queries0.742890.77912010.0037
Looping result0.00200.24341990.0000
Template Total0.782495.620.3912
Template load0.00220.271820.0011
Template processing0.780295.342120.3901
Template load and register function0.00010.015510.0001
states
state_id_array0.00250.302310.0025
state_identifier_array0.00180.220820.0009
Override
Cache load0.00200.2392380.0001
Sytem overhead
Fetch class attribute can translate value0.00130.158930.0004
Fetch class attribute name0.00090.107060.0001
XML
Image XML parsing0.00080.101530.0003
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00590.7229270.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs