How to set up right style in maincontentstyle.

Author Message

Mariusz Scisel

Thursday 19 January 2006 6:42:55 am

Hello,

I have the problem with the center column width "Maincontent".
It is set always to "maincontent-bothmenus" when only one Tool is set.

What I want to do ?
One section "News" have Toolbar right "Latest News", and only the one.
Other Pages like Weblog, Links, Files ... without any tools set in the right menu.

[Toolbar_top]
Tool[]
Tool[]=searchbox

[Toolbar_right]
Tool[]
Tool[]=node_list

[Toolbar_bottom]
Tool[]

[Tool_right_node_list_1]
parent_node=83
show_subtree=102

This code below returns "maincontent-bothmenus" even if only one page have right toolbar set.


            {let maincontentstyle='maincontent-bothmenus'}
            {section show=eq(ezini('SelectedMenu','LeftMenu','menu.ini'),'')}
                {set maincontentstyle='maincontent-noleftmenu'}
            {/section}
	{section show=($show_subtree|count_chars()|eq(0)}
                {section show=$maincontentstyle|eq('maincontent-noleftmenu')}
                    {set maincontentstyle='maincontent-nomenus'}
                {section-else}
                    {set maincontentstyle='maincontent-norightmenu'}
                {/section}
            {/section}
            .
            .
            {/let}

Other pages which haven't fixed Tools in toolbar right identicaly have set width to "maincontent-bothmenus" not even "maincontent-norightmenu".
How to check variable $show_subtree from Toolbar.ini one the page_layout.tpl and display "-norightmenu" right style if there is no Toolbar right on other pages.

Greetings, Mariusz

Chris Lan

Saturday 15 April 2006 3:40:39 am

Hi,

I have the same issue. Did someone have the solution to it? Mariusz, did you find a way?

Thanks,
Chris

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.