Developer forum

Forum » Development » Getting area property item from api

Getting area property item from api

Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi,

I'm trying to get a hold of an item, which is added as a custom property to an area, from within a NotificiationSubscriber.

I have used the Dynamicweb.Content.AreaService, to get a hold of the area, but cannot find out how to get the specific item/property.

Best regards
Kurt Moskjaer Andersen


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Kurt

Maybe like this?

Dynamicweb.Frontend.Pageview.Current().Area.Item["FieldName"]
Votes for this answer: 1
 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Yes, that's it :)

Thanks

/Kurt

 

You must be logged in to post in the forum