dynamic Display (Property or method?)

Topics: Core
Mar 18, 2012 at 2:30 PM

This may be a silly question 
Im trying to get my head around the Display property in base web page. It looks like a property of the base page and in other places you see Display(Model.Navigation) which looks like a method call. 

Which is it ?

Is it one of those dynamic language features i will have to get used to?

Or does  Display(Model.Navigation)  simply mean something like this : Attach a model.Navigation shape to the current shape.

and in this way it builds the shape tree.

Thanks 

Developer
Mar 18, 2012 at 6:50 PM

Welcome to the wonderful world of dynamic and Clay. It's indeed a dynamic property so it can be anything at all times. Check out this post for how dynamic objects in Orchard work (almost all dynamic objects are Clay objects, where any Clay object can have behaviors attached to them, which define how a dynamic object can be used): http://downplay.co.uk/tutorials/clay/down-the-rabbit-hole