Forums / Install & configuration / How to set up right style in maincontentstyle.

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

eZ debug

Timing: Jan 18 2025 11:19:14
Script start
Timing: Jan 18 2025 11:19:14
Module start 'content'
Timing: Jan 18 2025 11:19:14
Module end 'content'
Timing: Jan 18 2025 11:19:14
Script end

Main resources:

Total runtime0.0182 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9609180.8047
Module start 'content' 0.00820.0055 768.765694.1016
Module end 'content' 0.01370.0045 862.867270.7031
Script end 0.0182  933.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.9752120.0002
Check MTime0.00115.8329120.0001
Mysql Total
Database connection0.00168.838910.0016
Mysqli_queries0.003519.405940.0009
Looping result0.00000.147820.0000
Template Total0.004022.210.0040
Template load0.00084.646410.0008
Template processing0.003217.485510.0032
Override
Cache load0.00052.941910.0005
General
dbfile0.00042.2709100.0000
String conversion0.00000.032730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs