How to show different content in various sections?

Author Message

Massimo Sanna

Tuesday 17 May 2005 5:33:14 am

Hi there, I'm a beginner, and I'm building up my first site from scratch. I followed the building an ez Publish Site tutorial, and I'm really enjoying eZ Publish, but I need a little suggestion about this:
I want to show some content in various areas of the site, but it's not the main content.
For example: on the homepage the main content is an image hotspot, but I would also like to have the latest news on the right. Moreover I don't want to see the left navigation for subsections, since I'm on the root node and it's just a repeat of the top nav.
In some inner pages, I'd like to have some pertinent information below the left navigation, which is not in the main content, but would come from another node, just like on ezPublish website, where the right column changes appearance according to the section. I know I have to play with overrides, but in the tutorial I followed, I just learnt to change appearance for main content, and not for other elements.
Does anybody have a link where I could find what I'm looking for? And what is the best practice to follow for elements which would not appear in the logical tree of the website? To build a folder and put all these elements into?
Thank you in advance,

Max

Marko Žmak

Tuesday 17 May 2005 3:12:17 pm

You can fetch any content from your content tree using template operators. See:

http://www.ez.no/ez_publish/documentation/reference/data_fetching

and also:

http://www.ez.no/ez_publish/documentation/reference/data_fetching/content/list

for fetching data. If you are new, this link could be usefull too:

http://www.ez.no/ez_publish/documentation/reference/template_operators/miscellaneous/attribute

It's a very usefull operator.

The main idea for showing the content on different parts of thepage is to fetch the content you want, and then display it in the part of the page you want. Learning the eZ template language well is recomended. :)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Massimo Sanna

Tuesday 17 May 2005 11:57:32 pm

But... my problem is not how to actually fetch the data, but how to manage with the various overrides. In the tutorial they teach you how to modify the appearance of the main content. But what if I have to change something that's not the main content? I don't know where to look at...
I found out -in the design section-, that I can create modules which would sit in predefined positions. For some tasks they could be helpful, eg. latest news and so on. But I'm afraid of activating them because I'm sure they would screw up my design :-/
To be sincere nobody talks about modules here around... it looks like the best way to do it is to code it, right?

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