Updating the Shapes info file and adding a little Zone info

--HG--
branch : dev
This commit is contained in:
Nathan Heskew 2010-10-18 22:15:28 -07:00
parent f1910c15da
commit 5328042f8a
4 changed files with 121 additions and 3 deletions

View File

@ -294,6 +294,7 @@
<Content Include="Settings\Styles\admin.css" />
<Content Include="Settings\Views\Admin\Index.cshtml" />
<Content Include="Settings\Views\Admin\Culture.cshtml" />
<None Include="Contents\Views\Items\Content.Edit.cshtml" />
<None Include="Routable\Placement.info">
<SubType>Designer</SubType>
</None>

View File

@ -46,6 +46,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Notes", "_Notes", "{8A49DB66-40B2-4B6A-BFF0-D4839A240D00}"
ProjectSection(SolutionItems) = preProject
Shapes.txt = Shapes.txt
Zones.txt = Zones.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Modules", "Orchard.Web\Modules\Orchard.Modules\Orchard.Modules.csproj", "{17F86780-9A1F-4AA1-86F1-875EEC2730C7}"

View File

@ -3,9 +3,19 @@
WorkContext.Layout == Layout shape
==shapes==
(IShape)
.Metadata (ShapeMetadata)
.Type
.DisplayType
.Position
.Prefix
.Wrappers
.Alternates
.WasExecuted
.ChildContent
Document [:Layout]
Layout (Body) (.Wrappers[Document])
@ -24,7 +34,6 @@ MenuItem
-RouteValues
-Item (clr object)
List: ul|ol + li*
.Items (meta-property, bound to shape children or passed in)
.Id
@ -33,7 +42,7 @@ List: ul|ol + li*
.ItemClasses
.ItemAttributes
Items_Content (a single content item)
Content (a single content item)
.Zones (meta-property)
.ContentItem (clr object)
.Path (from Orchard.Core.Routable(.Handlers.RoutePartHandler))
@ -58,12 +67,15 @@ EditorTemplate
.Model (optional - default use current)
.Prefix (optional - default use current)
(todo: find usage)
Pager
-CurrentPage
-RouteValues
-Count
?PageSize ?? 1
(todo: update)
Parts/Content
Fields/Content

104
src/Zones.txt Normal file
View File

@ -0,0 +1,104 @@
==document==
[[ZoneName]] == zone
<html>
<head>
[[Head]]
</head>
<body>
[[Body]] (layout)
[[Tail]]
</body>
<html>
==layout==
(TheThemeMachine)
----------------------------------
| Header |
----------------------------------
| Navigation |
----------------------------------
| Featured |
----------------------------------
| BeforeMain |
----------------------------------
| A | Messages | A |
| s |--------------------| s |
| i | BeforeContent | i |
| d |--------------------| d |
| e | | e |
| F | | S |
| i | Content | e |
| r | | c |
| s | | o |
| t |--------------------| n |
| | AfterContent | d |
----------------------------------
| AfterMain |
----------------------------------
| Tripel | Tripel | Tripel |
| First | Second | Third |
----------------------------------
| Footer| Footer| Footer| Footer |
| Quad | Quad | Quad | Quad |
| First | Second| Third | Fourth |
----------------------------------
| Footer |
----------------------------------
==content==
Generally display templates have Header, Meta, Manage, Content and Footer zones (in the admin anything other than Content is special-case per template)
while edit templates having Meta (less frequently), Primary and Secondary (i.e. sidebar) zones.
[[ZoneName]] == zone
(Content - base content shape)
<article>
<header>
[[Header]]
<div class="metadata">
[[Meta]]
</div>
</header>
[[Content]]
<footer>
[[Footer]]
</footer>
</article>
//admin display template example//
(Content.SummaryAdmin - content summary in an admin list view)
<div class="summary">
<div class="properties">
<checkbox/>
<h3 />
<div class="metadata"
[[Meta]]
</div>
</div>
<div class="related">
[[Secondary]]
<a>edit</a>
<a>remove</a>
</div>
<div class="primary">
[[Primary]]
</div>
</div>
//edit template example//
(Content.Edit)
<div class="sections">
<div class="primary">
[[Primary]]
</div>
<div class="secondary">
[[Secondary]]
<fieldset>
<button /submit />
</fieldset>
</div>
</div>