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
TIP: **Tip:** This form utilizes template [form validation and error handling](/templates/form-validation.md). Refer to the documentation for additional parameters and variables that are available to this tag.
Copy file name to clipboardExpand all lines: docs/add-ons/email.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,8 @@ The contact form is created similar to a standard web form, only you **do not**
52
52
</p>
53
53
{/exp:email:contact_form}
54
54
55
+
{{embed:_tips/form-validation.md}}
56
+
55
57
## Parameters
56
58
57
59
[TOC=3]
@@ -330,7 +332,7 @@ In the above example, the Template "friend" contains the Tell-a-Friend form.
330
332
[TOC=3]
331
333
332
334
### `allow_attachments=`
333
-
335
+
334
336
allow_attachments="yes"
335
337
336
338
This allows you to add a file input field to your form, make sure to give your file input field the name of `attachment`. Adding this parameter automatically gives the form the `enctype='multipart/form-data'` attribute.
{!-- required to prevent EE from outputting form if commenting is disabled or expired --}
40
40
{if comments_disabled}Comments on this entry are currently disabled.{/if}
41
41
{if comments_expired}Commenting on this entry has expired.{/if}
@@ -46,6 +46,8 @@ This form should be placed on a "single-entry" type page such as a comments page
46
46
47
47
TIP: **Tip:** Notice the variables in the "value" form fields? These allow us to show the user's information in the form automatically if they click the "remember personal info" option.
48
48
49
+
{{embed:_tips/form-validation.md}}
50
+
49
51
## Comment Form Tag
50
52
51
53
### Parameters
@@ -227,11 +229,11 @@ A request for an edit will return a response array. In the case of an error, an
227
229
228
230
### Editing Permissions
229
231
230
-
By using the [{if editable}](/comment/entries.html#if-editable) conditional in the Comment Entries tag, you can output a link, instructions or a form if the viewing member has permission to edit the comment, and by using the {if can_moderate_comment} you can display whatever is appropriate if the viewing member has permission to moderate (close) the comment.
232
+
By using the [{if editable}](/comment/entries.md#if-editable) conditional in the Comment Entries tag, you can output a link, instructions or a form if the viewing member has permission to edit the comment, and by using the {if can_moderate_comment} you can display whatever is appropriate if the viewing member has permission to moderate (close) the comment.
231
233
232
234
For members without administrative access, in order to edit a comment they must be logged in, the author of the comment, and the editing time limit must not have expired. If a member has a role with permission to edit the comments of any entry, that member will have edit permissions regardless of the editing time limit.
233
235
234
-
Comment moderators may close the comment. The edit time limit does not apply to moderators.
236
+
Comment moderators may close the comment. The edit time limit does not apply to moderators.
235
237
236
238
Superadmins will always have {editable} and {can_moderate_comment} permissions on any comment.
| \$data | `Array` | Data to be sent to the view. Explained below |
204
+
| \$xhtml | `Bool` | Parse the content as HTML |
205
+
| \$redirect_url | `String` | URL to redirect to instead of showing the message |
206
+
| \$template_name | `String` | Specialty template to use. Defaults to `generic` which is equivalent of `message_template` |
207
+
| Returns | `Void` | void |
208
+
209
+
Show user message using [system message template](control-panel/template-manager.md#system-message-templates) or [custom template](control-panel/template-manager.md#custom-system-messages). This is used on front-end, for instance, when we need to inform the user about successful form submission.
210
+
211
+
When `$redirect_url` is provided, the user will be redirected to that URL instead of showing the message.
212
+
213
+
The `$data` parameter is an associative array with the following keys:
214
+
- `title` - HTML titles of message page
215
+
- `heading` - heading text
216
+
- `content` - main content
217
+
- `redirect` - URL to automatically redirect to after showing message
218
+
- `rate` - time in seconds after which the redirect happens
219
+
- `link` - the link to include in the message. Should be in the format of `array($link_url, $link_text)`
| \$type | `String` | Type of error. Defaults to `submission`, can also be `general` or `off` |
238
+
| \$errors | `Mixed` | Error message or array of messages to display. |
239
+
| \$heading | `String` | Heading text. Legacy, not used, set automatically based on type. |
240
+
| \$redirect_url | `String` | URL to redirect to instead of showing the message |
241
+
| Returns | `Void` | void |
242
+
243
+
Show user an error message using [system message template](control-panel/template-manager.md#system-message-templates) or [custom template](control-panel/template-manager.md#custom-system-messages). This is used on front-end, for instance, when a form is submitted without the required info.
244
+
245
+
When `$redirect_url` is provided, the user will be redirected to that URL instead of showing the message. Useful when the form is set to [handle errors inline](templates/globals/single-variables.md#error-variables).
Copy file name to clipboardExpand all lines: docs/member/edit-profile.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@
17
17
18
18
This template tag allows editing a member's profile using the form that is similar to [Channel Form](channels/channel-form/overview.md). Please note however that not all Channel Form parameters and template tags are available in the Member Profile form, so make sure to consult the documentation below. The form can only be used to update profile of the member that is currently logged in.
19
19
20
+
{{embed:_tips/form-validation.md}}
21
+
20
22
## Parameters
21
23
22
24
{{embed:_tips/form-attributes.md}}
@@ -194,6 +196,7 @@ Short name of the fieldtype used for field
194
196
{exp:member:edit_profile
195
197
return="member/registration/success"
196
198
include_assets="yes"
199
+
inline_errors="yes"
197
200
datepicker="yes"
198
201
}
199
202
@@ -204,27 +207,42 @@ Short name of the fieldtype used for field
Copy file name to clipboardExpand all lines: docs/member/forgot-password.md
+15-33Lines changed: 15 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,16 +24,18 @@ Output a forgotten password form that sends an email with instructions for reset
24
24
25
25
{/exp:member:forgot_password_form}
26
26
27
-
27
+
28
28
NOTE: **Note:** This form will only email the user if the user requesting the password reset is not currently logged in.
29
29
30
+
{{embed:_tips/form-validation.md}}
31
+
30
32
## Parameters
31
33
32
34
### `email_template=`
33
35
34
36
email_template="member/email-password-reset"
35
37
36
-
Template to use for email which is sent to user.
38
+
Template to use for email which is sent to user.
37
39
38
40
NOTE: **Note:** If no template is defined, the default [Member Profile Template](control-panel/template-manager.md#member-profile-templates) for a forgotten password will be used.
39
41
@@ -66,47 +68,27 @@ Member email address. This is a **required** field:
Copy file name to clipboardExpand all lines: docs/member/forgot-username.md
+14-31Lines changed: 14 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ Output a forgotten username form that sends an email with instructions for addre
24
24
25
25
{/exp:member:forgot_username_form}
26
26
27
+
{{embed:_tips/form-validation.md}}
28
+
27
29
## Parameters
28
30
29
31
### `email_subject=`
@@ -37,7 +39,7 @@ Subject of email sent to user.
37
39
38
40
email_template="member/email-forgot-username"
39
41
40
-
Template to use for email which is sent to user.
42
+
Template to use for email which is sent to user.
41
43
42
44
If no template is defined or if the template defined does not exist, the default [Member Profile Template](control-panel/template-manager.md#member-profile-templates) for a forgotten username will be used.
43
45
@@ -59,46 +61,27 @@ Member email address. This is a **required** field:
0 commit comments