Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Maarten Boer 61 posts 82 karma points
    May 01, 2010 @ 11:32
    Maarten Boer
    0

    Trying to use a fieldname in a template

    Hi,

    Im trying the following thing. In my page i can select a background color stored in the field 'backcolor'
    Now trying to put this in my template tike this:

    <body style=background-color:#<umbraco:Item runat="server" field="backcolor" Recursive="false"/>>

    But this is the result:

    <body style="background-color:#&lt;umbraco:Item" field="backcolor" Recursive="false"></body>>

    It should be: <body style="background-color:#B1A89F">

     

  • Masood Afzal 176 posts 522 karma points
    May 01, 2010 @ 12:36
    Masood Afzal
    0

    try something like this:

    <%=<umbraco:Item runat="server" field="backcolor" Recursive="false"/>%>
Please Sign in or register to post replies

Write your reply to:

Draft