|
|
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
|
|
 Rank: Aficionado
Joined: 7/19/2006 Posts: 188 Location: Norway
|
Hey Michael.
Could you go a little bit more in detail about what you're trying to do?
|
|
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
|
|
 Rank: Aficionado
Joined: 7/19/2006 Posts: 188 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)
|
|
Rank: Devotee
Joined: 8/2/2006 Posts: 47
|
Thanks i'll give it a try tonight.
|
|
|
Guest |