forked from OrchardCMS/Orchard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShapes.txt
116 lines (87 loc) · 2.18 KB
/
Shapes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
==context==
WorkContext.Layout == Layout shape
==shapes==
(IShape)
.Metadata (ShapeMetadata)
.Type
.DisplayType
.Position
.Prefix
.Wrappers
.Alternates
.WasExecuted
.ChildContent
Document [:Layout]
Layout (Body) (.Wrappers[Document])
.Zones (meta-property)
.Title
Zone
.ZoneName
Menu (in Body.Navigation)
.MenuName
MenuItem
-Text
-Href
-RouteValues
-Item (clr object)
List: ul|ol + li*
.Items (meta-property, bound to shape children or passed in)
.Id
.Classes
.Attributes
.ItemClasses
.ItemAttributes
Content (a single content item)
.Zones (meta-property)
.ContentItem (clr object)
.Path (from Orchard.Core.Routable(.Handlers.RoutePartHandler))
.Slug (*necessary?* from Orchard.Core.Routable(.Handlers.RoutePartHandler))
.Title (from Orchard.Core.Routable(.Handlers.RoutePartHandler))
.Description (from Orchard.Blogs(.Handlers.BlogPartHandler))
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)
(todo: find usage)
Pager
-CurrentPage
-RouteValues
-Count
?PageSize ?? 1
(todo: update)
Parts/Content
Fields/Content
"Items_Content"
"Items_Content_Summary"
"Items_Content_Edit"
base + "__" + id
base + "__" + contenttype
==template discovery strategy==
Items/Content.cshtml -> "Content"
Items/Content.Summary.cshtml -> "Content_Summary"
Items/Content.Edit.cshtml -> "Content_Edit"
Items/Content-Page.cshtml -> "Content__Page"
Items/Content-45.cshtml -> "Content__45"
Items/Content-45.Summary.cshtml -> "Content_Summary__45"
Items/Content.Summary-45.cshtml -> "Content_Summary__Page"
Items/Page.cshtml -> "Content__Page"
Items/BlogPost.cshtml -> "Content__BlogPost"
Items/BlogPost.Summary.cshtml -> "Content_Summary__BlogPost"
Items/BlogPost.Edit.cshtml -> "Content_Edit__BlogPost"
Widgets-TwitterThing.cshtml -> "Widget__TwitterThing"
Items/User.cshtml -> "Items_User"
Parts/Yarg -> "Parts_Yarg"
Parts/Yarg-BlogPost -> "Parts_Yarg__BlogPost"
==template discovery strategy==
==templates==
Header
Footer