Trying to activate Thumbnail

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
cierra
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Sun May 29, 2011 5:11 pm

Trying to activate Thumbnail

Post by cierra » Mon May 30, 2011 8:29 pm

Hi,

Could someone please tell me how to activate the thumbnail on the category list page? We'd also like to remove manufacturer and retail price and change them to something else. The code is there on the page: //OUTPUT LINKED THUMNAIL
if (!string.IsNullOrEmpty(catalogNode.ThumbnailUrl))
{
string thumbnail = string.Format("<a href=\"{0}\"><img src=\"{1}\" alt=\"{2}\" border=\"0\" class=\"Thumbnail\" /></a><br />", catalogNodeUrl, ResolveUrl(catalogNode.ThumbnailUrl), catalogNode.ThumbnailAltText);
itemTemplate1.Controls.Add(new LiteralControl("<td>"));
itemTemplate1.Controls.Add(new LiteralControl(thumbnail));
itemTemplate1.Controls.Add(new LiteralControl("</td>"));
}

but it is not activating for some reason. We do have thumbnails. I saw a couple of other posts about this from a couple of years ago and tried the suggestions, but they did not work. It either skews the table off, or doesn't show up at all. We'd like the thumbnail in its own column and clickable to the product.

We are just learning this system, so laymen's terms would be greatly appreciated!

cierra
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Sun May 29, 2011 5:11 pm

Re: Trying to activate Thumbnail

Post by cierra » Tue May 31, 2011 9:42 am

We figured this out. I didn't see it until I loaded it in a different editor. The code is actually commented out. So, for anyone having this same issue, remove the /* and the */ around the code and it will start working again.

Post Reply