Thursday 20 May 2010 5:47:14 am
If the image you are talking about is not part of the global template then I suggest you not to edit the 'template look' class. As this is more for the global look of the website not a content that just appears on the frontpage. Also if that type of image is just appearing on the frontpage then there is no point to edit the frontpage class either. Maybe what you can do is go in the "Media Library" > "Images" and create a new object of type "image" and call it something like "Frontpage image". If it is less confusing for your customer, you can also create that image object as a child of the frontpage: Home |__ Folder1 |__ Folder2 |__ etc... |__ "Frontpage image" Then edit settings/override/content.ini.append.php or settings/siteaccess/your_site_access/content.ini.append.php and add/append this: [NodeSettings] FrontpageImage=XXXXXX where XXXXXX is the node ID of your "Frontpage image" node. Then in the tpl file that is displaying your frontpage you will need some logic to display or not the frontpage image. And fetch and display it: {def $frontpageImageNodeID=ezini( 'NodeSettings', 'FrontpageImage', 'content.ini' )} {def $frontpageImageNode=fetch( 'content', 'node', hash( 'node_id', $frontpageImageNodeID ) )} {attribute_view_gui attribute=$frontpageImageNode.object.data_map.image} That is one way to do it.
|