Toolbar Items Don't Show Up

Author Message

Alex Jones

Monday 27 September 2004 8:53:14 am

I'm sure this is a simple mistake somewhere on my part, but I can't track it down.

<b>Setup</b>
eZ Version: 3.4.2 (build 7264)
I am attempting to use the bottom toolbar to display some links at the bottom of each page of a new site. I have added the <i>node_list</i> tool to the Bottom Toolbar, have set the <i>Item Source</i> to a folder that uses a publicly visible section (as do all of its contents) and populated the <i>Title</i> field with the word 'Credits'. The folder contains four <i>link</i> objects. I have set the <i>Show in subtree</i> option to the top node of the site, which is also the page that I am using for my testing. I have it set to pull five items, sort by publish date and fetch the whole tree. I also make sure to click on the <i>Save</i> button after I make changes.

Yet, every time I view the page, nothing shows up except for a single bullet, for an empty line item.I have repeatedly cleared the cache, I have also added objects of different classes (<i>Folders</i> and <i>Articles</i>), but they do not show up either. In addition the <i>Title</i> ('Credits') doesn't show up on the page.

I haven't touched the code that displays the menu. My pagelayout override contains:

    {section show=ezini('Toolbar_bottom','Tool','toolbar.ini')|count}
        <div id="toolbar-bottom">
            <div class="toolbar-design">
                {tool_bar name=bottom view=line}
            </div>{* id="toolbar-design" *}            
        </div>{* id="toolbar-bottom" *}
    {/section}

Nothing shows up when I turn on debugging either.

What am I missing? Or is this a bug?

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Lazaro Ferreira

Monday 27 September 2004 10:58:32 am

Hi,

A few days ago I had to change the include/exclude parameters at the fetch function to work it out

It could be a bug at ezp toolbar templates, check your toolbar/full/node_list.tpl
, the fetch function uses the parameter

exclude

, however ezp fetch doc uses

'exclude'

 

After changing it, the toolbar/full/node_list works for me

Lazaro

Lazaro
http://www.mzbusiness.com

Alex Jones

Monday 27 September 2004 11:50:54 am

Thanks for the tip Lazaro! It didn't fix the problem, but lead me to change the <i>view</i> from 'line' to 'full', and now it works. I think it may be due to a lack of a template for the <i>node_list</i> line view. I am going to try that next.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Monday 27 September 2004 12:03:21 pm

Yep, creating an override for toolbar/line/node_list.tpl did the trick! I will post this as a bug as well.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Daniela Moreno

Thursday 11 November 2004 10:09:27 am

hello
does anybody has the code for override for toolbar/line/node_list.tpl ?
and where do i create the override?
in design/my_site/override/templates/line? or should i create a folder named toolbar/line in the design/my_site/override/templates dir?

thanx

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 16:16:12
Script start
Timing: Jan 18 2025 16:16:12
Module start 'layout'
Timing: Jan 18 2025 16:16:12
Module start 'content'
Timing: Jan 18 2025 16:16:12
Module end 'content'
Timing: Jan 18 2025 16:16:12
Script end

Main resources:

Total runtime0.8628 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9141152.6250
Module start 'layout' 0.00570.0037 740.539139.4453
Module start 'content' 0.00930.8518 779.9844602.0547
Module end 'content' 0.86110.0017 1,382.039116.1641
Script end 0.8628  1,398.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4308160.0002
Check MTime0.00190.2152160.0001
Mysql Total
Database connection0.00080.091610.0008
Mysqli_queries0.796892.3548650.0123
Looping result0.00070.0864630.0000
Template Total0.825195.620.4125
Template load0.00200.233720.0010
Template processing0.823095.392320.4115
Template load and register function0.00040.045410.0004
states
state_id_array0.00140.159610.0014
state_identifier_array0.00140.166720.0007
Override
Cache load0.00180.2038370.0000
Sytem overhead
Fetch class attribute can translate value0.00070.081130.0002
Fetch class attribute name0.00150.169770.0002
XML
Image XML parsing0.00100.110330.0003
class_abstraction
Instantiating content class attribute0.00000.002290.0000
General
dbfile0.00210.2450220.0001
String conversion0.00000.000940.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs