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: packages/create-sitecore-jss/src/templates/angular/data/routes/styleguide/custom-route-type/en.yml
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,4 @@ fields:
9
9
content: <p>Custom route type fields are good for things like articles, where you may wish to have a filter UI on content fields, such as author or category. Route level fields are easy to query against, whereas component-level fields are not because it's possible to remove a component from a route. Note that route level fields <em>cannot be personalized</em> because you cannot conditionally swap out the route item for a different content item.</p>
Copy file name to clipboardexpand all lines: packages/create-sitecore-jss/src/templates/angular/data/routes/styleguide/en.yml
+32-33
Original file line number
Diff line number
Diff line change
@@ -8,26 +8,26 @@ placeholders:
8
8
content: |
9
9
<p>This is a live set of examples of how to use JSS. For more information on using JSS, please see <a href="https://jss.sitecore.com" target="_blank" rel="noopener noreferrer">the documentation</a>.</p>
10
10
<p>The content and layout of this page is defined in <code>/data/routes/styleguide/en.yml</code></p>
sample: This is a sample text field. <mark>HTML is encoded.</mark> In Sitecore, editors will see a <input type="text">.
23
23
sample2: This is another sample text field using rendering options. <mark>HTML supported with encode=false.</mark> Cannot edit because editable=false.
24
-
- componentName: Styleguide-FieldUsage-Text
24
+
- componentName: StyleguideFieldUsageText
25
25
fields:
26
26
heading: Multi-Line Text
27
27
description: '<small>Multi-line text tells Sitecore to use a <code>textarea</code> for editing; consumption in JSS is the same as single-line text.</small>'
28
28
sample: This is a sample multi-line text field. <mark>HTML is encoded.</mark> In Sitecore, editors will see a textarea.
29
29
sample2: This is another sample multi-line text field using rendering options. <mark>HTML supported with encode=false.</mark>
30
-
- componentName: Styleguide-FieldUsage-RichText
30
+
- componentName: StyleguideFieldUsageRichText
31
31
fields:
32
32
heading: Rich Text
33
33
sample: <p>This is a sample rich text field. <mark>HTML is always supported.</mark> In Sitecore, editors will see a WYSIWYG editor for these fields.</p>
@@ -36,7 +36,7 @@ placeholders:
36
36
sample2: |
37
37
<p>Another sample rich text field, using options. Keep markup entered in rich text fields as simple as possible - ideally bare tags only (no classes). Adding a wrapping class can help with styling within rich text blocks.</p>
38
38
<marquee>But you can use any valid HTML in a rich text field!</marquee>
39
-
- componentName: Styleguide-FieldUsage-Image
39
+
- componentName: StyleguideFieldUsageImage
40
40
fields:
41
41
heading: Image
42
42
sample1:
@@ -45,7 +45,7 @@ placeholders:
45
45
sample2:
46
46
src: /data/media/img/jss_logo.png
47
47
alt: Sitecore JSS Logo
48
-
- componentName: Styleguide-FieldUsage-File
48
+
- componentName: StyleguideFieldUsageFile
49
49
fields:
50
50
heading: File
51
51
description: |
@@ -54,27 +54,28 @@ placeholders:
54
54
src: /data/media/files/jss.pdf
55
55
title: Example File
56
56
description: This data will be added to the Sitecore Media Library on import
57
-
- componentName: Styleguide-FieldUsage-Number
57
+
- componentName: StyleguideFieldUsageNumber
58
58
fields:
59
59
heading: Number
60
60
description: '<small>Number tells Sitecore to use a number entry for editing.</small>'
61
61
sample: 1.21
62
-
- componentName: Styleguide-FieldUsage-Checkbox
62
+
sample2: 71
63
+
- componentName: StyleguideFieldUsageCheckbox
63
64
fields:
64
65
heading: Checkbox
65
66
description: |
66
67
<small>Note: Sitecore does not support inline editing of Checkbox fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.</small>
67
68
checkbox: true
68
69
checkbox2: false
69
-
- componentName: Styleguide-FieldUsage-Date
70
+
- componentName: StyleguideFieldUsageDate
70
71
fields:
71
72
heading: Date
72
73
description: |
73
74
<p><small>Both <code>Date</code> and <code>DateTime</code> field types are available. Choosing <code>DateTime</code> will make Sitecore show editing UI for time; both types store complete date and time values internally. Date values in JSS are formatted using <a href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations" target="_blank">ISO 8601 formatted strings</a>, for example <code>2012-04-23T18:25:43.511Z</code>.</small></p>
74
75
<div class="alert alert-warning"><small>Note: this is a JavaScript date format (e.g. <code>new Date().toISOString()</code>), and is different from how Sitecore stores date field values internally. Sitecore-formatted dates will not work.</small></div>
75
-
date: '2012-05-04T00:00:00Z'
76
-
dateTime: '2018-03-14T15:00:00Z'
77
-
- componentName: Styleguide-FieldUsage-Link
76
+
date: '2012-05-04T00:00:00.000Z'
77
+
dateTime: '2018-03-14T15:00:00.000Z'
78
+
- componentName: StyleguideFieldUsageLink
78
79
fields:
79
80
heading: General Link
80
81
description: <p>A <em>General Link</em> is a field that represents an <code><a></code> tag.</p>
description: <p>JSS provides powerful options to reuse content, whether it's sharing a common piece of text across pages or sketching out a site with repeating <em>lorem ipsum</em> content.</p>
@@ -190,38 +189,38 @@ placeholders:
190
189
- componentName: ContentBlock
191
190
fields:
192
191
content: <p>Mix and match reused and local content. Check out <code>/data/routes/styleguide/en.yml</code> to see how.</p>
193
-
- componentName: Styleguide-Layout-Tabs
192
+
- componentName: StyleguideLayoutTabs
194
193
fields:
195
194
heading: Tabs
196
195
description: <p>Creating hierarchical components like tabs is made simpler in JSS because it's easy to introspect the layout structure.</p>
description: <p><small>The Sitecore Context contains route-level data about the current context - for example, <code>pageState</code> enables conditionally executing code based on whether Sitecore is in Experience Editor or not.</small></p>
220
-
- componentName: Styleguide-RouteFields
219
+
- componentName: StyleguideRouteFields
221
220
fields:
222
221
heading: Route-level Fields
223
222
description: <p><small>Route-level content fields are defined on the <em>route</em> instead of on a <em>component</em>. This allows multiple components to share the field data on the same route - and querying is much easier on route level fields, making <em>custom route types</em> ideal for filterable/queryable data such as articles.</small></p>
224
-
- componentName: Styleguide-ComponentParams
223
+
- componentName: StyleguideComponentParams
225
224
fields:
226
225
heading: Component Params
227
226
description: <p><small>Component params (also called Rendering Parameters) allow storing non-content parameters for a component. These params should be used for more technical options such as CSS class names or structural settings.</small></p>
@@ -231,24 +230,24 @@ placeholders:
231
230
# they are always sent to the component as strings.
232
231
columns: 5
233
232
useCallToAction: true
234
-
- componentName: Styleguide-Tracking
233
+
- componentName: StyleguideTracking
235
234
fields:
236
235
heading: Tracking
237
236
description: <p><small>JSS supports tracking Sitecore analytics events from within apps. Give it a try with this handy interactive demo.</small></p>
0 commit comments