
Donna
Staff
/ Moderator

Jan 13, 2009, 1:00 PM
Post #13 of 13
(5759 views)
Shortcut
|
|
Re: [humanv3] Additional Listing Templates
[In reply to]
|
Can't Post
|
|
Hi humanv, Here are a couple of ways to do it -- one with a graphic, and one just with text. Both methods: Create a new dropdown field, and call it "Status" or "Sold Status" or whatever you want. This will only show up in the back end. For the value of the field, set it to this: Status(,sold) Or, if you're using the text version, you could have something like this: Status(,Sold!) Graphic version: Create two graphics. One is a blank 1x1 image, the other is whatever you want to display for your sold listings. Name the 1x1 pixel image something like image.jpg, and the sold graphic as soldimage.jpg -- the important part is that the 1x1 image filename is included in the sold image filename, and the extra part of the "sold" image should be what you chose for the dropdown menu above. Now, add this into your templates where you want the "sold" image to appear: <img src="/path/to/$lfieldX$image.jpg"> What this will do is display soldimage.jpg if you have "Sold" selected in that dropdown menu, or a blank 1x1 pixel (so, nothing) on any listing that doesn't have that selected. (Make sure you replace the "X" with the field number you created above.) Text version: Just add $lfieldX$ on your template where you want it to appear. Nothing will show up if there's nothing there, and "Sold" will appear if it is. Other things you can add are other options -- like, "Pending", "Available", "Price Reduced" etc. For the graphic version, just keep adding new images with appropriate filenames. I hope this helps. :) Donna -- support@interactivetools.com
|