Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17480 Posts in 4474 Topics by 1973 members

Archive

SilverStripe Forums » Archive » how I can use $id in img tag

Our old forums are still available as a read-only archive.

Page: 1
Go to End
Author Topic: how I can use $id in img tag 407 Views
  • fiord
    avatar
    Community Member
    28 posts

    how I can use $id in img tag Link to this post

    When I write

    <img src="./img/lmh/$ID.jpg" align="left" alt="" border="0">


    I have result

    <img src="./img/lmh/" align="left" alt="" border="0">

    when I write

    <img src="./img/lmh/ $ID .jpg" align="left" alt="" border="0">


    I have next result

    <img src="./img/lmh/%2013%20.jpg" alt="" _base_href="http://raritet.org.ua/" align="left" border="0">

    I need next result

    <img src="./img/lmh/13.jpg" alt="" align="left" border="0">

  • Phalkunz
    avatar
    59 posts

    Re: how I can use $id in img tag Link to this post

    It was posted somewhere by Will. Anyways, I post it up again It needs to be {$ID}.jpg
    When you write $ID.jpg, SS looks for ID.jpg field the current page type.

  • fiord
    avatar
    Community Member
    28 posts

    Re: how I can use $id in img tag Link to this post

    thanks you

    407 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: pureprop

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.