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:

1597 Posts in 399 Topics by 403 members

Template Questions

SilverStripe Forums » Template Questions » DB Field as inline Style format

Page: 1
Go to End
Author Topic: DB Field as inline Style format 338 Views
  • atadxart
    avatar
    Community Member
    3 posts

    DB Field as inline Style format Link to this post

    Hi,

    i've tried hard to get this work - but i'm now stuck maybe somone can help.

    I wannt to have a Field in der cms for a specific page type - ok thats easy

    this field should be used to get a color value into the template - the editor shoud be able to edit this color

    it is possible - i've done that to show this value outside from a html tag but inside it won't show

    <li class="$LinkingMode" style="border-bottom:1px solid #$Color;"> $Color <a href="$Link".............
    the first one won't show ^^^^^^^
    ^^^^^ this one is shown

    can anyone explain why this works not the way i want?

    thx

  • SilverRay
    avatar
    Community Member
    158 posts

    Re: DB Field as inline Style format Link to this post

    Try "border-bottom:1px solid #{$Color};"

  • atadxart
    avatar
    Community Member
    3 posts

    Re: DB Field as inline Style format Link to this post

    thx much

    with {} it works perfect as i want

    greets from austria

    338 Views
Page: 1
Go to Top

Currently Online: J2-Paul, freenet

Welcome to our latest member: jasonthkim

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

Comments on this website? Please give feedback.