Simple content item, with support for zones, editor, and display partial templates working

--HG--
branch : theming
This commit is contained in:
Louis DeJardin
2010-09-09 13:52:45 -07:00
parent 91684d050b
commit b809247464
14 changed files with 123 additions and 90 deletions

View File

@@ -6,35 +6,52 @@ WorkContext.Page == Layout shape
==shapes==
.Id
.Classes
.Attributes
Document [:Layout]
Layout
- Zones (meta-property)
- Title
Layout (.Wrappers[Document])
.Zones (meta-property)
.Title
Zone
-ZoneName
.ZoneName
Menu
-MenuName
.MenuName
MenuItem
-Text
-Href
-RouteValues
-Item
Menu
MenuItem
-Item (clr object)
List: ul|ol + li*
-Items (meta-property, bound to shape children or passed in)
.Items (meta-property, bound to shape children or passed in)
.Id
.Classes
.Attributes
.ItemClasses
.ItemAttributes
Items_Content
.Zones (meta-property)
.ContentItem (clr object)
PlaceChildContent
.Source (another shape, presumed rendered)
Partial
.TemplateName
.Model (optional - default use current)
DisplayTemplate
.TemplateName
.Model (optional - default use current)
.Prefix (optional - default use current)
EditorTemplate
.TemplateName
.Model (optional - default use current)
.Prefix (optional - default use current)
Pager
-CurrentPage
@@ -42,34 +59,11 @@ Pager
-Count
?PageSize ?? 1
Shape.Pager(CurrentPage:page, PageSize:10, ItemCount:53)
Shape.Pager(CurrentPage:page, PageCount:6)
Shape.Pager(CurrentPage:page)
x
y
z
List
x
y
z
Items_Content
Items_Content__BlogPost
Items_Content__Page
Items_Content__Product
Parts/Content
Fields/Content
.Items_Content()
.Items_Widget()
.Items_User()
==template discovery strategy==
Items/Content.cshtml -> "Items_Content"
Items/Content-Page.cshtml -> "Items_Content__Page"