Getting the URL to a media item Options
SoerenS
Posted: Tuesday, July 25, 2006 11:37:45 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 424
Location: Silkeborg, Denmark
Is there a helper function or such to get the URL to a specific item (in the media library)?

I don't see it listed as a property to the umbraco.cms.businesslogic.media.Media object.

/SoerenS

Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
daniel
Posted: Friday, August 11, 2006 3:36:00 AM

Rank: Aficionado

Joined: 7/19/2006
Posts: 190
Location: Norway
Hey

When you create an instance of a media object, then the path is accessible form
<pre>
myMediaObject.getProperty("umbracoFile").Value
</pre>


Daniel
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.