Mar 6, 2011 at 9:26 PM
Edited Mar 6, 2011 at 9:27 PM
This is my first post having finally installed Orchard (188.8.131.52) and tried toget my head round it.
I am a .NET developer (although not ASP.NET really) and so should be able to work out what is going on, but I feel like I am missing something small yet significant in piecing together the relationship between Layers, Zones, Widgets (which generally I think
I get) and Pages.
Layers seem straightforward enough - each Layer able to support a Rule that decides whether it should be displayed or not - if more than one are true then they are combined (Layered as the name suggests). Each Layer has a number of Zones and each Zone can
have zero or more Widgets in them. What seems to be missing is defining what a Page should look like and when it should be available.
As a general observation it seems that a Page is not really anything special at all. Creating a new page simply means the body content will appear in a predefined area (Zone) within a Layer. As far as I can work out I could just as easily add the Menu Widget
to any ContentType and it would behave like a Page. It seems like a Page isn't anything significant atall, but just a name of a ContentType like any other ContentType that has the Menu Widget on it.
What I was expecting/hoping for was that Pages were more significant and that they were perhaps the top most item and they had a Layout associated with them. I should be able to add Widgets to Layout definitions (as I appear to be able to do now) which
means any Page based on it will have that Widget on it. But also I should be able to add Widgets to Pages (which should be represented in a similar fashion to a Layout - kind of inherited from a Layout) and with it own Rule. That way Pages can appear based
on Roles but also have a Layout, whilst still inheriting from Layout definitions.
I feel that perhaps Layouts should be nestable - e.g. we have our top level Layouts (default, HomePage, authorised, anonymous etc) but within any of the Zones within these Layouts I should be able to place a Layout Widget which inturn has content. This is
the other aspect I am struggling with the most. I want to layout my main content of a page in columns etc but there does not appear to be a simple way to achieve this.
Please do correct me / point out where I have gone wrong - or otherwise confirm my findings? Any pointers greatfully received.