Copied to clipboard

Flag this post as spam?

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


  • Paul Blair 466 posts 731 karma points
    Jun 30, 2010 @ 02:57
    Paul Blair
    0

    v4.5 & GetMedia - another question

    I have a page that is going to have 4 fixed images on it that I want the user to be able to select from the media section. Is this the best/most efficient way of displaying the images (using inline xslt):

    <umbraco:Item ID="Item1" field="topLeftIcon" runat="server" insertTextBefore="&lt;img src=&quot;" insertTextAfter="&quot;/&gt;" Xslt="umbraco.library:GetMedia({0},'false')/Image/umbracoFile"  />

    The release notes for 4.5 said there is caching now for media items. Do I have to do anything to take advantage of this? It will be on the homepage so I want to avoid DB hits if possible.

    Cheers

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft