Forums / Setup & design / howto show toolbar only in parent node

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

howto show toolbar only in parent node

Author Message

Greg Rundlett

Wednesday 09 March 2005 8:30:28 pm

I have a shop setup running 3.5, and without any customization. I would like to show the toolbar for "Latest Products" in the right side, but only for the main 'Products' page, and not the sub-pages. I can see the code for this toolbar in the base/templates/pagelayout.tpl


        {section show=ezini( 'Toolbar_right', 'Tool', 'toolbar.ini' )|count}
            <div id="rightmenu">
                <div id="rightmenu-design">
                    <h3 class="hide">Right menu</h3>
                    <div id="toolbar-right">
                        <div class="toolbar-design">
                            {tool_bar name=right view=full}
                        </div>{* id="toolbar-design" *}
                    </div>{* id="toolbar-right" *}
                </div>{* id="rightmenu-design" *}
            </div>{* id="rightmenu" *}
        {/section}

and I can see the toolbar management area within the administrative tool which allows me to show this toolbar for a given node and its children.

I also found the settings/siteaccess/shop/toolbar.ini.append.php script that defines the toolbars for this siteaccess:

[Tool_right_node_list_1]
parent_node=59
title=Latest products
show_subtree=products
limit=6

Is there a way / how do I show the toolbar only for the 'parent' node and not it's children?

Thanks

nothing to sig here, move along

Eivind Marienborg

Thursday 10 March 2005 12:12:40 am

A possible approach is to add a switch in the template matching the node of the Products page (assuming you only want to show this toolbar on -one- page). Alternatively you could try setting up the Product page in its own section, and make the switch match on sections.