Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How to avoid fetching inherited properties and just retrieve properties(unique properties) created for a particular node?
Please help.
Thanks
Manasa
It depends how you're accessing the nodes. Is this using mvc? or razor? In which case you can use something like
var myNode = Umbraco.TypedContent(idOfNode); string strPropertyofNode = myNode.GetProperty("myProperty").Value;
But it all depends on how you're working with it really.
Hi what version of umbraco are you using? And please tell us if you are using razor?
Are you in the context of a view (razor) or controller? c#
For anything version 6+ you want to access the properties on a node through IPublishedContent.
Charlie. :)
I'm using C# . It's a .Net user control. Version 6.1.6
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
retrieving properties
Hi,
How to avoid fetching inherited properties and just retrieve properties(unique properties) created for a particular node?
Please help.
Thanks
Manasa
It depends how you're accessing the nodes. Is this using mvc? or razor? In which case you can use something like
But it all depends on how you're working with it really.
Hi what version of umbraco are you using? And please tell us if you are using razor?
Are you in the context of a view (razor) or controller? c#
For anything version 6+ you want to access the properties on a node through IPublishedContent.
Charlie. :)
Hi,
I'm using C# . It's a .Net user control. Version 6.1.6
Manasa
is working on a reply...