Copied to clipboard

Flag this post as spam?

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


  • Daniel Horn 319 posts 344 karma points
    Feb 03, 2011 @ 17:32
    Daniel Horn
    0

    Using inline code and fields

    How would you guys do this:

    <href='<%=umbraco.library.NiceUrl(<umbraco:Item field="introboxButtonLink" runat="server"></umbraco:Item>)%>'>

     

  • Daniel Horn 319 posts 344 karma points
    Feb 03, 2011 @ 17:37
    Daniel Horn
    0
    <umbraco:Item runat="server" field="mediaItem" xslt="concat('&lt;img src=&quot;',umbraco.library:GetMedia({0}, true())/umbracoFile, '&quot; /&gt;')" xsltDisableEscaping="true" />

    This is for a media item - how do I go about it to just show a field from the page? :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 26, 2011 @ 19:34
  • Kim Andersen 1447 posts 2197 karma points MVP
    Feb 26, 2011 @ 20:14
    Kim Andersen
    0

    This might work Daniel:

    <umbraco:Item runat="server" field="introboxButtonLink" xslt="concat('&lt;a href=&quot;',umbraco.library:NiceUrl({0}), '&quot; &gt;LINKTEXT&lt;/a&gt;')" xsltDisableEscaping="true" />

    /Kim A

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies