Copied to clipboard

Flag this post as spam?

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


  • MartinB 411 posts 512 karma points
    Jun 19, 2011 @ 13:04
    MartinB
    0

    Fetch image name

    Hi there

    How would one go about fetching the image name that the user provides in umbraco?

    Right now i have no problem retreving the name given to the file before it was uploaded, but that's not necessarily the same as the user provides when naming it in umbraco. Cant seem to find anything about this in the forums.

    Has the search terms changed? I think it's awfully specific and doesn't return similar results for searches like "image name" or "umbraco image names" etc.

    Current xslt:

    <a href="{$largeImage/umbracoFile}" class="lightbox" title="{$largeImage/umbracoFile}">
  • Josh Townson 67 posts 162 karma points
    Jun 19, 2011 @ 14:32
    Josh Townson
    1

    Hi Martin,

    I assume this is a media node in the $largeImage variable

    <ahref="{$largeImage/umbracoFile}"class="lightbox"title="{$largeImage/@nodeName}">

    should get you what you want

  • MartinB 411 posts 512 karma points
    Jun 19, 2011 @ 15:04
    MartinB
    0

    Indeed it did, and of course it was as simple as i thought.

    That whole "everything is a node" setup can play tricks on the brain sometimes :-)

Please Sign in or register to post replies

Write your reply to:

Draft