RH Column

Author Message

Tristan Koen

Monday 28 July 2003 5:29:08 am

Hi All,

What is the best approach to building a RH column - similar to the one on the http://ez.no website?
THe RH column would contain items such as
- search
- login
- user registration
- mail article to friend
- related items
- etc.
It cannot be part of the pagelayout template since different parts of the website will have different items in the RH column.
Can anyone give some advice on the best way to achieve this?

My current thinking is that it should be part of $module_result.content. The drawback is that a lot of code is repeated in the various templates which makes maintenance a bit more tricky (eg. if I were to move the search function out of the RH column in the the page header I would have to modify every single pagelayout template).

There must be a better way...

Regards,

Tristan

Bjørn Kaarstein

Monday 28 July 2003 6:18:01 am

You might try to use {section show} or {switch/case} statements in your pagelayout. In that way, you have it all in one place and maintenance will be easy.

I don't know whether this is the best way, or even possible in your case, but it's a suggestion.

Regards Bjørn

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 04:27:50
Script start
Timing: Jan 31 2025 04:27:50
Module start 'layout'
Timing: Jan 31 2025 04:27:50
Module start 'content'
Timing: Jan 31 2025 04:27:50
Module end 'content'
Timing: Jan 31 2025 04:27:50
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0078151.1953
Module start 'layout' 0.00520.0025 739.203136.6016
Module start 'content' 0.00770.0051 775.804790.0000
Module end 'content' 0.01280.0016 865.804729.9922
Script end 0.0144  895.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.4717140.0002
Check MTime0.00117.4844140.0001
Mysql Total
Database connection0.00074.969210.0007
Mysqli_queries0.002617.790630.0009
Looping result0.00000.067910.0000
Template Total0.00128.210.0012
Template load0.00096.511810.0009
Template processing0.00021.660310.0002
Override
Cache load0.00064.023110.0006
General
dbfile0.00032.071280.0000
String conversion0.00000.043140.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.0001 secs