Configuring suckerfish

Author Message

Vidar Østevik

Friday 31 March 2006 2:02:33 pm

Hi!

I can't figure out how to configure suckerfish to show certain nodes, like 'feedback_form', 'articles' and so on. I have read all threads on the forum concerning suckerfish, trying to change the original code

{* FIRST LEVEL *}
{section loop=fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array(1),sort_by,$base.sort_array))}
{let child_check=fetch(content,list,hash(parent_node_id,$:item.node_id, class_filter_type, "include", class_filter_array, array(1),sort_by,$base.sort_array))}<li><a {section show=$child_check|count|gt(0)}{/section} href={concat("/content/view/full/",$:item.node_id,"/")|ezurl}>{$:item.name}</a>

to

{* FIRST LEVEL *}
{section loop=fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array('folder','feedback_form'),sort_by,$base.sort_array))}
{let child_check=fetch(content,list,hash(parent_node_id,$:item.node_id, class_filter_type, "include", class_filter_array, array('folder','feedback_form'),sort_by,$base.sort_array))}<li><a {section show=$child_check|count|gt(0)}{/section} href={concat("/content/view/full/",$:item.node_id,"/")|ezurl}>{$:item.name}</a>

with no luck....
Can anybody tell me what I`m doing wrong?

Regards
Vidar

Łukasz Serwatka

Monday 03 April 2006 12:27:42 am

What debug output says? Do you have any errors/warnings?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Sandra Parente

Monday 03 April 2006 2:00:03 am

This works for my suckerfish menu:

{* FIRST LEVEL *}
{section loop=fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array('folder','article','feedback_form'),sort_by,array(array(priority))))}
{let child_check=fetch(content,list,hash(parent_node_id,$:item.node_id, class_filter_type, "include", class_filter_array, array('folder','article','feedback_form')))}<li><a {section show=$child_check|count|gt(0)}{/section} href={$:item.url_alias|ezurl}>{$:item.name}</a>

I repeat it for all levels.

Sandra Parente
www.netbliss.it

Vidar Østevik

Monday 03 April 2006 3:12:02 am

Hi!
I tried to specify the arrays to include by name, like 'Folder', with no luck. But when I configured the menu with node numbers (1 for folder, 2 for article and so on), it worked perfectly!

But I have another question.
Is it possible to make the top node visible, and not make it behave like a folder?
I just want a link back to the "Index page", wich are the root folder in my system.

Any suggestions?

Regards Vidar

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 19 2025 04:15:53
Script start
Timing: Jan 19 2025 04:15:53
Module start 'layout'
Timing: Jan 19 2025 04:15:53
Module start 'content'
Timing: Jan 19 2025 04:15:54
Module end 'content'
Timing: Jan 19 2025 04:15:54
Script end

Main resources:

Total runtime0.7867 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0114 589.1484152.6250
Module start 'layout' 0.01140.0041 741.773439.4453
Module start 'content' 0.01560.7696 781.2188599.9141
Module end 'content' 0.78520.0015 1,381.132812.1719
Script end 0.7867  1,393.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4773160.0002
Check MTime0.00150.1953160.0001
Mysql Total
Database connection0.00200.258310.0020
Mysqli_queries0.727792.5003620.0117
Looping result0.00050.0675600.0000
Template Total0.751695.520.3758
Template load0.00190.241920.0010
Template processing0.749795.289920.3748
Template load and register function0.00020.020310.0002
states
state_id_array0.00080.103510.0008
state_identifier_array0.00070.089520.0004
Override
Cache load0.00150.1889280.0001
Sytem overhead
Fetch class attribute can translate value0.00080.104030.0003
Fetch class attribute name0.00080.106260.0001
XML
Image XML parsing0.00140.179330.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00110.1440240.0000
String conversion0.00000.001840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs