Skip to content

Commit c80f04e

Browse files
authored
Merge pull request #120 from packettide/feature/6.x/member-tags
remove error_handling from login docs EECORE-927
2 parents 5a0e287 + b5f5eaa commit c80f04e

5 files changed

Lines changed: 32 additions & 88 deletions

File tree

docs/installation/updating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ WARN: **Important** Upgrading major version (example from v5.x to v6.x) typicall
2222

2323
ExpressionEngine supports one-click updating as of **Version 4.0** or newer. If you are running a version older than 4, then you must perform a [manual update](#updating-manually).
2424

25+
NOTE: **Note:** If updating from a version prior to ExpressionEngine 6, you may need to rename or remove `system/ee/EllisLab` directory manually. You will also need to manually copy the [latest index.php and admin.php files](_downloads/EE6_Index_Admin.zip) to your site's root folder.
26+
2527
When an update is available, you'll see the version number in the control panel footer turn yellow or red. Click the version number, then click "Update Now".
2628

2729
**Upgrade Steps**
@@ -31,8 +33,6 @@ When an update is available, you'll see the version number in the control panel
3133

3234
In the rare case an update fails, please read [Troubleshooting Automatic Updates](troubleshooting/general.md#troubleshooting-automatic-updates).
3335

34-
NOTE: **Note:** If updating from a version prior to ExpressionEngine 6, you may need to rename or remove `system/ee/EllisLab` directory manually. You will also need to manually copy the [latest index.php and admin.php files](_downloads/EE6_Index_Admin.zip) to your site's root folder.
35-
3636

3737
## Updating Via EECLI
3838

docs/member/login.md

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ Output a login form.
3434

3535
Allows you to specify the action attribute of the <form> tag. Handy if you need to ensure that authentication points to SSL portions of your site from non-SSL portions. Often used in conjunction with the return= parameter and the [{current_url} global variable](templates/globals/single-variables.md#current_url) so your visitors will go back to the page and domain they logged in from.
3636

37-
### `error_handling=`
38-
39-
error_handling="inline"
40-
41-
Choose to display error messages inline (see [Error Messages](#errors)). By default, errors are displayed with the user message template.
42-
4337
### `form_class=`
4438

4539
form_class="login"
@@ -113,35 +107,6 @@ It is recommended that you use this variable as indicated in the example code at
113107
{/if}
114108

115109

116-
117-
## Variable Pairs
118-
119-
### `{errors}`
120-
121-
Form submission errors are displayed using a "looping pair" as there can be more than 1 error in a form submission.
122-
123-
{errors}
124-
<p>{error}</p>
125-
{/errors}
126-
127-
#### Error Tag Pair Parameters
128-
129-
##### `backspace=`
130-
131-
backspace="3"
132-
133-
The `backspace=` parameter will remove characters, including spaces and line breaks, from the last iteration of the tag pair.
134-
135-
#### Error Tag Pair Variables
136-
137-
##### `{error}`
138-
139-
{error}
140-
141-
The error text.
142-
143-
144-
145110
## Example
146111

147112

@@ -167,4 +132,4 @@ The error text.
167132
<p><input type="submit" name="submit" value="Submit" /></p>
168133

169134
<p><a href="{path='member/forgot-password'}">Forgot password?</a> &nbsp; &nbsp; <a href="{path='member/forgot-username'}">Forgot username?</a></p>
170-
{/exp:member:login_form}
135+
{/exp:member:login_form}

docs/member/registration.md

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ Output a member registration form.
1717

1818
## Parameters
1919

20-
### `error_handling=`
21-
22-
error_handling="inline"
23-
24-
Choose to display error messages inline (see [Error Messages](#errors)). By default, errors are displayed with the user message template.
25-
2620
### `return=`
2721

2822
return="member/registration/success"
@@ -73,11 +67,13 @@ Member username. This is a **required** field and must be unique across the site
7367
<label for="username">Username</label>
7468
<input type="text" name="username" value="" maxlength="120" size="40" />
7569

76-
<!--
7770
### Custom Member Fields
7871

79-
Member username. This is a **required** field and must be unique across the site:
80-
-->
72+
Custom member fields that have "Show in registration?" setting turned on can be used in member registration form.
73+
Please note you need to address those by ID and not name, e.g. `m_field_id_8`
74+
75+
<label for="work_title">Work title</label>
76+
<input type="text" id="work_title" name="m_field_id_1" size="40" />
8177

8278
## Variables
8379

@@ -105,33 +101,6 @@ Member username. This is a **required** field and must be unique across the site
105101

106102
{if username}{username}{/if}
107103

108-
## Variable Pairs
109-
110-
### `{errors}`
111-
112-
Form submission errors are displayed using a "looping pair" as there can be more than 1 error in a form submission.
113-
114-
{errors}
115-
<p>{error}</p>
116-
{/errors}
117-
118-
#### Error Tag Pair Parameters
119-
120-
##### `backspace=`
121-
122-
backspace="3"
123-
124-
The `backspace=` parameter will remove characters, including spaces and line breaks, from the last iteration of the tag pair.
125-
126-
#### Error Tag Pair Variables
127-
128-
##### `{error}`
129-
130-
{error}
131-
132-
The error text.
133-
134-
135104

136105
## Example
137106

@@ -199,5 +168,3 @@ The error text.
199168

200169
<input type="submit" value="Register" class="btn btn-primary" />
201170
{/exp:member:registration_form}
202-
203-

docs/templates/conditionals.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,29 @@ There are a handful of variables that are always available to conditionals.
312312

313313
You can test against the email address of the currently logged in user.
314314

315-
### `logged_in_group_description`
315+
### `logged_in_primary_role_id`
316316

317-
{if logged_in_group_description *= 'games'} Shall we play a game? {/if}
317+
{if logged_in_role_id == '7'} You're an "Editor"! {/if}
318318

319-
You can test against the group description of the currently logged in user.
319+
You can test against the Primary Role of the currently logged in user.
320320

321-
### `logged_in_role_id`
321+
### `logged_in_primary_role_name`
322322

323-
{if logged_in_role_id == '7'} You're an "Editor"! {/if}
323+
{if logged_in_primary_role_name *= 'games'} Shall we play a game? {/if}
324324

325-
You can test against the Primary Role of the currently logged in user.
325+
You can test against the primary role name of the currently logged in user.
326+
327+
### `logged_in_primary_role_description`
328+
329+
{if logged_in_primary_role_description *= 'games'} Shall we play a game? {/if}
330+
331+
You can test against the primary role description of the currently logged in user.
332+
333+
### `has_role_*X*`
334+
335+
{if has_role_editor} Logged in with editor permissions {/if}
336+
337+
With `X` being short role name, you can use this conditional to check whether logged in user has certain role. This takes into account all the 'secondary' roles assigned.
326338

327339
### `logged_in_ip_address`
328340

docs/templates/globals/single-variables.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,18 @@ The email address for the site, as specified in [Email Configuration](control-pa
259259

260260
The email address for the currently logged-in user.
261261

262-
### `{logged_in_group_description}`
263-
264-
The Primary Role description for the currently logged-in user.
265-
266-
### `{logged_in_role_id}`
262+
### `{logged_in_primary_role_id}`
267263

268264
The Primary Role ID number for the currently logged-in user.
269265

270-
### `{logged_in_role_title}`
266+
### `{logged_in_primary_role_name}`
271267

272268
The title of the Primary Role for the currently logged-in user.
273269

270+
### `{logged_in_primary_role_description}`
271+
272+
The Primary Role description for the currently logged-in user.
273+
274274
### `{logged_in_ip_address}`
275275

276276
This variable will be substituted with the IP address of the currently logged in user.

0 commit comments

Comments
 (0)