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.

eZ debug

Timing: Jan 31 2025 01:28:56
Script start
Timing: Jan 31 2025 01:28:56
Module start 'layout'
Timing: Jan 31 2025 01:28:56
Module start 'content'
Timing: Jan 31 2025 01:28:56
Module end 'content'
Timing: Jan 31 2025 01:28:56
Script end

Main resources:

Total runtime0.0233 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.3828151.2422
Module start 'layout' 0.00460.0034 739.6250220.7500
Module start 'content' 0.00800.0137 960.3750997.9922
Module end 'content' 0.02170.0015 1,958.367229.9922
Script end 0.0232  1,988.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.1130140.0002
Check MTime0.00114.5284140.0001
Mysql Total
Database connection0.00072.948610.0007
Mysqli_queries0.00218.944130.0007
Looping result0.00000.047110.0000
Template Total0.00114.610.0011
Template load0.00093.854310.0009
Template processing0.00020.704910.0002
Override
Cache load0.00062.612510.0006
General
dbfile0.00114.761080.0001
String conversion0.00000.021540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs