Forums / Setup & design / Toolbar Items Don't Show Up

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