Wednesday 13 October 2004 5:55:51 am
Sollution for the first problem: First you should find the node of the article you want to display. You can do that by using the fetch function (see the Documentation Reference on EZ site). Then when you find the node, say it's $node you can use something like this:
{attribute_view_gui attribute=$article_node.object.data_map.intro}
{attribute_view_gui attribute=$article_node.object.data_map.thumbnail}
{attribute_view_gui attribute=$article_node.object.data_map.body} {$article_node.object.data_map.title.content} to dislplay article intro, thumbnail, body and title. You can put it enywhere in your HTML. Thumbnail is a picture you upload with the article, intro and body are XML fields so it will be displyed as formated HTML when you use attribute_view_gui (e.g. if you used bold when editing article body, it will be displayed that way). The template code for the main page is in pagelayout.tpl. Yust edit it as any other template. And remember to clear the caches after edititng it, otherwise the changes will not be displayed.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|