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.