Results 1 to 6 of 6

Thread: Image Custom Field

  1. #1
    Join Date
    Jun 2008
    Posts
    65

    Default Image Custom Field

    Hi there,
    I have added two custom fields for images:

    Image01
    Image02

    What code would I need to make it appear on the detail pages?

    thanks,
    Ben

  2. #2
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    You would need some thing like this;

    <A href="<%$Image01%>">
    <A href="<%$Image02%>">

  3. #3
    Join Date
    Jun 2008
    Posts
    65

    Default nope

    Hey Mitchell - that didn't work....

    I tried this one:

    <div align="center">
    <img src="%$Image01%" width="150" height="90" />
    </div>

    It seems to be looking for the image but can't seem to find it!
    Does it matter that it is in a folder of my site: /hotelaccomation
    thanks,
    Ben

  4. #4
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Quote Originally Posted by netclick View Post
    Hey Mitchell - that didn't work....

    I tried this one:

    <div align="center">
    <img src="%$Image01%" width="150" height="90" />
    </div>
    It seems to be looking for the image but can't seem to find it!
    Does it matter that it is in a folder of my site: /hotelaccomation
    thanks,
    Ben
    Try this one then;
    <div align="center">
    <img src="<%$Image01%>" width="150" height="90" />
    </div>
    or

    <div align="center">
    <img src="/hotelaccomation/<%$Image01%>" width="150" height="90" />
    </div>
    Last edited by Mitchell; 06-11-2008 at 06:46 AM.

  5. #5
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Quote Originally Posted by netclick View Post
    Hey Mitchell - that didn't work....

    I tried this one:

    <div align="center">
    <img src="%$Image01%" width="150" height="90" />
    </div>

    It seems to be looking for the image but can't seem to find it!
    Does it matter that it is in a folder of my site: /hotelaccomation
    thanks,
    Ben
    Try this one then;
    <img src="<%$Image01%>" width="150" height="90" />

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    custom fields get reformatted to lowercase, so use <img src="<%$image01%>" width="150" height="90" />

Similar Threads

  1. Custom field
    By giannisff in forum v5.x
    Replies: 1
    Last Post: 03-16-2008, 09:02 PM
  2. Custom field
    By saj in forum v5.x
    Replies: 9
    Last Post: 12-15-2007, 09:42 AM
  3. Custom Field
    By GodParadise in forum Tutorials, Hints & Tips
    Replies: 0
    Last Post: 04-07-2007, 12:15 AM
  4. Replies: 3
    Last Post: 06-29-2004, 04:12 AM
  5. How to add new custom field
    By jacob in forum v5.x
    Replies: 2
    Last Post: 08-08-2002, 10:48 PM

Posting Permissions

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