
Donna
Staff
/ Moderator

Nov 28, 2006, 5:27 PM
Post #2 of 3
(444 views)
Shortcut
|
|
Re: [TF Solutions] templateIf... uploaded image
[In reply to]
|
Can't Post
|
|
Hi Tim! Upload fields work sort of like the regular image fields. So, you'll need to create a field that tells Article Manager how to display that image. :) For example, Article Manager has the file attachment built in, and includes this code:
<!-- templatecell : article.attachments.row --> [ <a href="$file.webUrl$">$file.title$</a> ] <!-- /templatecell : article.attachments.row --> So, you want the equivilent of this, but for your new uploaded image field. Something like this:
<!-- templatecell : article.thumb.row --> <img src="$file.thumbnailWebUrl$" border="1" width="$file.thumbnailWidth$" height="$file.thumbnailHeight$"> <!-- /templatecell : article.thumb.row --> Otherwise, Article Manager has no idea exactly what you want to output. This let's you have complete control over the tag -- whether or not you want a border, if you want to add more code around it, change the alignment, and so on. All of the custom coding for the output would go into that templatecell. Does that make sense? If not, let me know! :) Donna -- support@interactivetools.com
|