Refering a Node in Media Section Options
SADIK
Posted: Saturday, August 02, 2008 2:10:02 PM
Rank: Newbie

Joined: 6/6/2008
Posts: 23
Location: INDIA
Is it possible to refer a node in the Media section by using GetXmlNodeById
imayat12
Posted: Sunday, August 03, 2008 12:02:20 AM

Rank: Addict

Joined: 7/19/2006
Posts: 671
Location: Preston, UK
Sadik,

You need umbraco.library:GetMedia

Level 2 certified. If it aint broke dont fix.
Ig_p118
Posted: Monday, September 08, 2008 1:17:46 PM

Rank: Fanatic

Joined: 7/21/2006
Posts: 315
Location: Salerno - Italy
imayat12 wrote:
Sadik,

You need umbraco.library:GetMedia


What parameters?

Red Consulting s.a.s - Umbraco from v1.0
Dirk
Posted: Monday, September 08, 2008 1:38:34 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,136
Location: Belgium
Hi,

API Docs available at http://umbraco.org/apiDocs/

Here's the extract for GetMedia():

Code:
public static XPathNodeIterator GetMedia (
    int MediaId,
    bool Deep
)


Parameters

MediaId
System.Int32
The identifier of the media object to be returned

Deep
System.Boolean
If true, children of the media object is returned

Return Value

An umbraco xml node of the media (same format as a document node)

Always a good idea to have a look there!

Hope that helps.

/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
Ig_p118
Posted: Monday, September 08, 2008 2:01:35 PM

Rank: Fanatic

Joined: 7/21/2006
Posts: 315
Location: Salerno - Italy
Thanks. Sorry.

Red Consulting s.a.s - Umbraco from v1.0
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.