Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
can we display thumbnails at top?

 

 


isac
User

Aug 5, 2002, 4:41 PM

Post #1 of 4 (2641 views)
Shortcut
can we display thumbnails at top? Can't Post

Hi!

Can anyone give me a tip how to display a thumbnail above of the $art_name$ and $art_summary$ ?

I want a table with 1 column and 3 rows in the first row will display $cat_image$ in second thumbnail and in the last one $art_name$ and $art_summary$.

I only can achieve this http://www.clubesurfdapovoa.com/cms/

Thanks!
Isac


(This post was edited by isac on Aug 6, 2002, 3:06 AM)


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


isac
User

Aug 6, 2002, 5:44 PM

Post #3 of 4 (2616 views)
Shortcut
Re: [Luke] can we display thumbnails at top? [In reply to] Can't Post

Hi Luke

First off all thanks for the reply.

Second take a look at this "triky" solution :) I think your's would load much faster than this one

http://www.clubesurfdapovoa.com/luke/default.html

I used tables align to left and new $art_field3$ were would be uploaded a thumbnail image (img src=uploads/$art_field3$ height=100 width=152). But i had to move uploads folder to publish directory. I upload thumbnail image in one document and then re-use that image.

I'm traying, (sorry for the Cocktail english but my portuguese is a little better)

Isac


(This post was edited by isac on Aug 6, 2002, 5:46 PM)


Luke
Staff / Moderator


Aug 7, 2002, 1:23 PM

Post #4 of 4 (2601 views)
Shortcut
Re: [isac] can we display thumbnails at top? [In reply to] Can't Post

Hi Isac,

That's a great solution!

I also like the design you're using. I would really like to see the finished site so let me know when you're done. :)
Luke Holzken
Product Development