Check out this blogpost: http://blog.fredrikhaglund.se/blog/2008/05/28/access-dynamic-property/
You should access it using CurrentPage.Property["dynprop"]
Anders: Is this a special case? From what I have learned (http://world.episerver.com/Articles/Items/Best-Coding-Practices/) properties are preferrably accessed directly through the indexer property on CurrentPage.
is the index property :)
CurrentPage[""] will if the page is writable only return properties that exist on that page.
See section What happens when you access a property in the sdk developer guide.
What are we discussing?
Thought the problem was how to access dynamic properties. That can be done throuht
I need to get a dynamic property from within a custom property type. CurrentPage["dynprop"] just returns null. In CMS 6 it says that the DynamicPropertyTree class is deprecated so I've tried using DynamicPropertyCache however it simply returns null when the value is inherited. So how do I get the value of an inherited dynamic property?