Results 1 to 3 of 3

Thread: conditional images in drop menu

  1. #1
    Join Date
    Oct 2009
    Posts
    22

    Default conditional images in drop menu

    is there a way to get to show a particular image based on a listing status?

    so lets say there is a field called "type" and the options are "sports" and "regular" that sports and regular would have their own image to indicate which "type" the listing is

    i tried inserting html code with a static link to the image in the admin section but it doesnt work

    any ideas?

    if i havent explained properly please let me know

    thanks

  2. #2
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: conditional images in drop menu

    Assuming you have the images (sports.jpg and regular.jpg) at your site template folder, inside an "images" directory, try this:

    HTML Code:
    <img src="{template_url}/images/{listing_field_type_rawvalue}.jpg" width="X" height="Y" alt="{listing_field_city_rawvalue}" />
    Eduardo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

  3. #3
    Join Date
    Oct 2009
    Posts
    22

    Default Re: conditional images in drop menu

    HAHA!! thanks bro!!!! perfect!!!

Similar Threads

  1. drop down menu help...
    By fplcman in forum Templates - Help/Ideas/Discussion (CLOSED)
    Replies: 0
    Last Post: 06-05-2009, 12:50 AM
  2. drop down menu on TOC
    By onelittleboy in forum Templates - Help/Ideas/Discussion (CLOSED)
    Replies: 0
    Last Post: 10-07-2008, 03:19 PM
  3. Drop down menu
    By serdas in forum General Help (CLOSED)
    Replies: 2
    Last Post: 11-12-2007, 10:00 AM
  4. Drop down menu issue
    By rob_illinois in forum General Help (CLOSED)
    Replies: 5
    Last Post: 12-14-2006, 01:42 PM
  5. drop down menu
    By serdas in forum General Help (CLOSED)
    Replies: 6
    Last Post: 02-26-2006, 09:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •