Get Property Options
Hay
Posted: Tuesday, August 08, 2006 12:53:58 AM
Rank: Devotee

Joined: 8/2/2006
Posts: 47
Hey,

how do i use:umbraco.library.GetPropertyTypeName("True/false", "umbracoNaviHide")

to return a doctype proprty setting in a .net user control.

Cheers mike
daniel
Posted: Tuesday, August 08, 2006 6:08:43 AM

Rank: Aficionado

Joined: 7/19/2006
Posts: 185
Location: Norway
Hey Michael.

Could you go a little bit more in detail about what you're trying to do?

Hay
Posted: Tuesday, August 08, 2006 10:34:19 AM
Rank: Devotee

Joined: 8/2/2006
Posts: 47
I have a property set by the user in the doctype called umbNaviHide. This is a true/false datatype.

I want to read its value in .net and i'm after a helper function to help me do it.

Mike
daniel
Posted: Tuesday, August 08, 2006 1:23:02 PM

Rank: Aficionado

Joined: 7/19/2006
Posts: 185
Location: Norway
assuming you have the id of the page you want to read the property from;


Dim myPage As umbraco.presentation.nodeFactory.Node
myPage = New umbraco.presentation.nodeFactory.Node(pageId)

Dim hidePage As Boolean
hidePage = Boolean.Parse(myPage.GetProperty("umbNaviHide").Value)
Hay
Posted: Tuesday, August 08, 2006 1:58:31 PM
Rank: Devotee

Joined: 8/2/2006
Posts: 47
Thanks i'll give it a try tonight.
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.