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: docs/en/reference/form-field-types.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -9,23 +9,23 @@ This is a highlevel overview of available `[api:FormField]` subclasses. An autom
9
9
*`[api:ReadonlyField]`: Read-only field to display a non-editable value with a label.
10
10
*`[api:TextareaField]`: Multi-line text field.
11
11
*`[api:TextField]`: Single-line text field.
12
-
*`[api:PasswordField]`: Masked input field
12
+
*`[api:PasswordField]`: Masked input field.
13
13
14
-
## Actions
14
+
## Actions
15
15
16
16
*`[api:FormAction]`: Button element for forms, both for `<input type="submit">` and `<button>`.
17
17
*`[api:ResetFormAction]`: Action that clears all fields on a form.
18
18
19
19
## Formatted Input
20
20
21
-
*`[api:AjaxUniqueTextField]`: Text field that automatically checks that the value entered is unique for the given set of fields in a given set of tables
21
+
*`[api:AjaxUniqueTextField]`: Text field that automatically checks that the value entered is unique for the given set of fields in a given set of tables.
22
22
*`[api:ConfirmedPasswordField]`: Two masked input fields, checks for matching passwords.
23
23
*`[api:CountryDropdownField]`: A simple extension to dropdown field, pre-configured to list countries.
24
24
*`[api:CreditCardField]`: Allows input of credit card numbers via four separate form fields, including generic validation of its numeric values.
25
25
*`[api:CurrencyField]`: Text field, validating its input as a currency. Limited to US-centric formats, including a hardcoded currency symbol and decimal separators.
26
26
See `[api:MoneyField]` for a more flexible implementation.
27
27
*`[api:DateField]`: Represents a date in a single input field, or separated into day, month, and year. Can optionally use a calendar popup.
28
-
*`[api:DatetimeField]`: Combined date- and time field
28
+
*`[api:DatetimeField]`: Combined date- and time field.
29
29
*`[api:EmailField]`: Text input field with validation for correct email format according to RFC 2822.
30
30
*`[api:GroupedDropdownField]`: Grouped dropdown, using <optgroup> tags.
31
31
* `[api:HTMLEditorField].
@@ -43,7 +43,7 @@ doesn't necessarily have any visible styling.
43
43
* `[api:FieldGroup] attached in CMS-context.
44
44
*`[api:FieldList]`: Basic container for sequential fields, or nested fields through CompositeField.
45
45
*`[api:TabSet]`: Collection of fields which is rendered as separate tabs. Can be nested.
46
-
*`[api:Tab]`: A single tab inside a `TabSet`
46
+
*`[api:Tab]`: A single tab inside a `TabSet`.
47
47
*`[api:ToggleCompositeField]`: Allows visibility of a group of fields to be toggled.
48
48
*`[api:ToggleField]`: ReadonlyField with added toggle-capabilities - will preview the first sentence of the contained text-value, and show the full content by a javascript-switch.
49
49
@@ -58,7 +58,7 @@ doesn't necessarily have any visible styling.
58
58
*`[api:TableField]`: In-place editing of tabular data.
59
59
*`[api:TreeDropdownField]`: Dropdown-like field that allows you to select an item from a hierarchical AJAX-expandable tree.
60
60
*`[api:TreeMultiselectField]`: Represents many-many joins using a tree selector shown in a dropdown-like element
61
-
*`[api:GridField](/reference/grid-field)`: Displays a `[api:SS_List]` in a tabular format. Versatile base class which can be configured to allow editing, sorting, etc.
61
+
*`[api:GridField]`: Displays a `[api:SS_List]` in a tabular format. Versatile base class which can be configured to allow editing, sorting, etc.
62
62
*`[api:ListboxField]`: Multi-line listbox field, through `<select multiple>`.
63
63
64
64
@@ -67,6 +67,6 @@ doesn't necessarily have any visible styling.
67
67
*`[api:DatalessField]` - Base class for fields which add some HTML to the form but don't submit any data or
68
68
save it to the database
69
69
*`[api:HeaderField]`: Renders a simple HTML header element.
70
-
*`[api:HiddenField]`
70
+
*`[api:HiddenField]`.
71
71
*`[api:LabelField]`: Simple label tag. This can be used to add extra text in your forms.
72
72
*`[api:LiteralField]`: Renders arbitrary HTML into a form.
Copy file name to clipboardExpand all lines: docs/en/topics/module-development.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -54,5 +54,4 @@ adherence to conventions, writing documentation, and releasing updates. See [con
54
54
*[Modules](modules)
55
55
*[Module Release Process](module-release-process)
56
56
*[Debugging methods](/topics/debugging)
57
-
*[URL Variable Tools](/reference/urlvariabletools) - Lists a number of ���page options��� , ���rendering tools��� or ���special
58
-
URL variables��� that you can use to debug your SilverStripe applications
57
+
*[URL Variable Tools](/reference/urlvariabletools) - Lists a number of page options, rendering tools or special URL variables that you can use to debug your SilverStripe applications
<div class="content-container unit size3of4 lastUnit">
282
283
<article>
283
284
<h1>$Title</h1>
284
285
$Content
@@ -293,7 +294,6 @@ We'll now create a template for the article holder. We want our news section to
293
294
<% end_loop %>
294
295
$Form
295
296
</div>
296
-
<% include SideBar %>
297
297
298
298
299
299
Here we use the page control *Children*. As the name suggests, this control allows you to iterate over the children of a page. In this case, the children are our news articles. The *$Link* variable will give the address of the article which we can use to create a link, and the *FirstParagraph* function of the `[api:HTMLText]` field gives us a nice summary of the article. The function strips all tags from the paragraph extracted.
@@ -482,7 +482,8 @@ The staff section templates aren't too difficult to create, thanks to the utilit
482
482
**themes/simple/templates/Layout/StaffHolder.ss**
483
483
484
484
:::ss
485
-
<div class="content-container">
485
+
<% include SideBar %>
486
+
<div class="content-container unit size3of4 lastUnit">
486
487
<article>
487
488
<h1>$Title</h1>
488
489
$Content
@@ -498,7 +499,6 @@ The staff section templates aren't too difficult to create, thanks to the utilit
498
499
<% end_loop %>
499
500
$Form
500
501
</div>
501
-
<% include SideBar %>
502
502
503
503
504
504
This template is very similar to the *ArticleHolder* template. The *SetWidth* method of the `[api:Image]` class
@@ -512,7 +512,8 @@ The *StaffPage* template is also very straight forward.
512
512
**themes/simple/templates/Layout/StaffPage.ss**
513
513
514
514
:::ss
515
-
<div class="content-container">
515
+
<% include SideBar %>
516
+
<div class="content-container unit size3of4 lastUnit">
516
517
<article>
517
518
<h1>$Title</h1>
518
519
<div class="content">
@@ -521,7 +522,6 @@ The *StaffPage* template is also very straight forward.
521
522
</article>
522
523
$Form
523
524
</div>
524
-
<% include SideBar %>
525
525
526
526
Here we use the *SetWidth* method to get a different sized image from the same source image. You should now have
0 commit comments