Monday 13 February 2006 11:14:40 pm
Hi!
I was wondering how to implement the following in the best possible way: Think of a pagelayout like ez.no where there is a header image (eZ systems logo in this case). Below is the navigation. Under the navigation, the content area starts. What I want to do is to have a "header_image" attribute (Image) in some classes that replaces the standard header image if the attribute contains an image. My idea to solve this is to do a fetch in pagelayout.tpl that gets the data $node_id (This produces overhead, I think). And then check $item.data_map.header_image.content.is_valid to see whether to display the standard-picture or the header_image picture. To gain a little speed, I was thinking of putting a {cache-block} around the code that displays the header_image picture. Am I on the right track or is there a smarter way to do that? Regards, Sebastian
sp@php.net
|