You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _help/src/Pages/folders-structure/pages/attributes.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ If predefined attributes are not enough and you want to add some extra attribute
16
16
17
17
All attributes can be accessible through global `Page` object. That object is accessible from each and every template and it always has a context of current page.
18
18
19
-
You can access predefined page attributes via `Page.Title`, `Page.Url`, `Page.TemplateId` and `Page.Content` for page html content. All properties of global `Page` object are casesensitive.
19
+
You can access predefined page attributes via `Page.Title`, `Page.Url`, `Page.TemplateId` and `Page.Content` for page html content. All properties of global `Page` object are case-sensitive.
20
20
21
21
You can access custom page attributes via properties of `Page.Custom` object. It will have all the properties defined in page metadata section.
You can access logo url using the following statement `Page.Custom.logo.url`.
42
42
43
-
There is one important point to highlight here. `Page.Custom` is predifened and casesensitive, but `logo.url` was generated dynamicaly from page metadata and it's also casesensitive.
43
+
There is one important point to highlight here. `Page.Custom` is predifened and case-sensitive, but `logo.url` was generated dynamicaly from page metadata and it's also case-sensitive.
44
44
45
45
### Custom attributes vs data model
46
46
47
-
The main difference between custom attributes and data model is how they interpreter the values you provide.
48
-
-**Custom attributes** always threat all the values like strings.
49
-
-**Data model** always threat all the values like reference to global `Data` model. It will copy all the values from referenced `Data` object to current `Model` object.
47
+
The main difference between custom attributes and data model is how they interprete the values you provide.
48
+
-**Custom attributes** always treat all values as strings.
49
+
-**Data model** always treats all values as references to global `Data` model. It will copy all values from referenced `Data` object to current `Model` object.
0 commit comments