
Luke
Staff
/ Moderator

Aug 6, 2002, 3:26 PM
Post #2 of 4
(2624 views)
Shortcut
|
|
Re: [isac] can we display thumbnails at top?
[In reply to]
|
Can't Post
|
|
Hi Isac, This is possible but will require some modifications to the template files. The easiest way to do this would be to only display the first 4 articles on your Front Page, and then modify the templates so the articles are output from right to left. You could also use a special placeholder called $art_ufile_image1$ for outputting your article image above your title and summary text.. 1. First limit your articles that are output on the front page to 4. You can do this by going to the setup options -> server tab -> and entering in '4' for the per page value for the Global Index. 2. Next you'll have to modify your /templates/index/default.html template. You'll want to modify it so the category image ($cat_image$) and the article thumbnail ($art_ufile_image1$) are above the article title and summary, and so it outputs articles from left to right, not top to bottom. The easiest way to output articles from left to right is to have the articles output using table cell <td> tags. Here's an example of how I modified the template to do this. You can just view the source code of my template (using your browsers view source command) and use it for reference. http://www.interactivetools.com/staff/luke/post757/default.html If you look at the source code you'll see how I used the $art_ufile_image1$ placeholder. This placeholder allows you to determine where an uploaded image will be placed in your article summary without having to worry about adding the ***image*** placeholder to your summary or content fields. The benefit of this is you can have the image appear above the title. $art_ufile_image1$ is used for image upload field 1 where $art_ufile_image2$ would be used for image upload field 2. So you can add one of these placeholders for each image upload fields if you wanted. One of the drawbacks of using this method is that you must upload an image into the image upload field or otherwise you will receive a broken image. Also, you'll see that I've placed <td> tags within the row_ufile, row_link, row_summary, and row template cells. This is so the articles are output from left to right. So if you want, you can use the source code of my template and modify it to suit the look and feel of your website, or you can just use the source code for reference. Let me know if you have any other questions, I'll be happy to help. :) Luke Holzken Product Development
|