Tuesday 11 May 2004 11:54:49 am
Hi there, In hope of some help I submit to the forum!! My problem is not very different from the thread found in: http://www.ez.no/community/forum/setup_design/different_imagesizes_on_images_embedded_in_an_xml_text_field ...but the answer wasnt clear for me, so hopefully someone could give some pointers... My problem is this: I have a frontpage which displays latest news articles ala the 'news template' with Ez. The first article listed uses the 'image_class=medium' in the line template overide. The problem that I have is the consequtive articles in the page then want 'image_class=small' to be applied. The code in article_line.tpl is:
{default content_object=$node.object content_version=$node.contentobject_version_object} <div class="image">{attribute_view_gui attribute=$node.object.data_map.thumbnail image_class=medium alignment=left href=$node.url_alias|ezurl}</div>
<div class="info"> <h2>{attribute_view_gui attribute=$content_version.data_map.title}</h2>
<div class="object_brief">
{attribute_view_gui attribute=$content_version.data_map.intro}
<a href={$node.url_alias|ezurl}><img src={"design/news/images/read-more_dark.gif"|ezroot} ALT="read more"></a> </div>
</div> </div> I need to add something on the lines of "if this is number Y in the section sequence, then make the 'image_class=XXX"? Anyone got any ideas?? ...something aside - I think I have seen this in previous thresd - but why dont Ez crew start a payment scheme for questions like these? Similar to the google answers model? Anyway, help on this would be greatly appraciated. Thanks, Steve.
http://www.oneworldmarket.co.uk
|