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/advanced-usage/front-end/frontend.md
+53-43Lines changed: 53 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,90 +12,90 @@
12
12
[TOC]
13
13
14
14
## Overview
15
-
For users with the appropriate level of access, ExpressionEngine Pro adds "front edit" links ( <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/pro_edit.png"alt="pro edit icon"> ) on the site's front-end that allow editing the contents of each entry field individually. This is done directly on front-end without going to the Control Panel.
15
+
For any user logged in with a sufficient level of access permissions, ExpressionEngine Pro adds "front edit" links ( <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/pro_edit.png"alt="pro edit icon"> ) that allow editing an entry's data field by field. When enabled, editing can be done directly on front-end without needing to go to the Control Panel.
16
16
17
-
Clicking the link opens a popup with the field that can be modified and saved. Along with editing, users can also use front edit popup to access the full entry for editing with live preview showing the current page you are on.
17
+
Clicking the link icon opens a popup for that specific field so that its content can be modified and saved. The user can also switch to editing with the full entry interface (with live preview functionality if it has been set up for that channel).
18
18
19
19

20
20
21
-
The links are being placed in your HTML right before the field's tag (or opening tag if field tag pair is used).
21
+
By default, edit links are added into the HTML right before where the field tag is called (the opening tag if a field tag pair is used).
22
22
23
-
WARN:**Permissions:** Users must belogged-in on the front-end of your site and must have a role assigned to them which allows them to access and edit content for that entry's channel.
23
+
WARN:**Permissions:** Users must be: a) logged-in on the front-end of the site and b) must have a role assigned to them which allows them to access and edit content for that entry's channel.
After editing data, content can be saved by one of two ways:
29
-
- Clicking on "Save", which will trigger a page reload
28
+
29
+
After editing data, content can be saved in one of two ways:
30
+
- Clicking directly on "Save", which will trigger a page reload
30
31
31
32

32
33
33
-
- Clicking the alternate "Save without Reload", which will save the content without reloading the page. This would require a manual page refresh to see any updated content.
34
+
- Clicking the alternate "Save without Reload" choice, which will save the content but will not reload the page. This choice requires a manual page refresh to see any updated content but is quicker, especially if you are planning to edit multiple fields or entries on a page.
34
35
35
36

36
37
37
38
## Unsaved Changes
38
-
When a user edits data and has unsaved changes, Pro will create an autosave of the entry and alert the user via a notification on the edit window with unsaved changes. The autosave is triggered based on the default autosave interval of 60 seconds. If you want to ensure users do not accidentally lose unsaved changes adjust the `[autosave_interval_seconds]` system config override to a lower interval between autosaves. A setting of 10 seconds is the recommendation.
39
+
40
+
When a user has edited data and has unsaved changes, Pro will create an autosave of the entry and display an alert notification on the edit window with the unsaved changes. The autosave is triggered based on the autosave interval setting. If you want to ensure users do not accidentally lose unsaved changes, adjust the `[autosave_interval_seconds]`[system config override](general/system-configuration-overrides.md#autosave_interval_seconds) to a shorter interval between autosaves. A setting of 10 seconds is recommended.
NOTE: **Note:** If the `[autosave_interval_seconds]` system config value was not previously changed, Pro will set this value at 10 seconds upon install.
44
+
NOTE: **Note:** If the `[autosave_interval_seconds]` system config value was not previously set, upon install, Pro will set this value in the config file to be 10 seconds. However, if for some reason this value is not set explicitly, the default value is 60 seconds.
45
+
46
+
NOTE: **Note:** Autosave data is kept for a default of 6 hours. This can be adjusted via the [`[autosave_prune_hours]` system config value](general/system-configuration-overrides.md#autosave_prune_hours).
43
47
44
48
Example Usage:
45
49
46
50
```
47
-
$config['autosave_interval_seconds'] = '10';
51
+
$config['autosave_interval_seconds'] = '10';
52
+
$config['autosave_prune_hours'] = '6';
48
53
```
49
-
## Conditional Tags
50
-
51
-
### `{if frontedit}`
52
-
53
-
```{if frontedit} content {/if}```
54
-
55
-
This special conditional allows you to display content if front-end editing is enabled.
56
-
57
54
58
-
## Enable/Disable The Front Edit Link
55
+
## Enable/Disable the Front Edit Links
59
56
60
-
There are several ways to disable front-end editing links:
61
-
- Globally with [configuration overrides](/general/system-configuration-overrides.md#automatic_frontedit_links) or in [General Settings](/control-panel/settings/front-end-editing.md#enable-automatic-front-end-editing-links)
62
-
- Per field in the [field settings](control-panel/field-manager/field-manager-settings.md)
63
-
- Via the Dock on the front-end by toggling Edit Mode on/off.
64
-
- In the template by using [ExpressionEngine template comments](#expressionengine-comment), [HTML comments](#html-comment), or [field parameter](#field-tag-parameter)
57
+
There are multiple ways to enable or disable front-end editing links:
65
58
66
-
### Enable/Disable Front Edit Link in the template
59
+
- Globally with [configuration overrides](/general/system-configuration-overrides.md#enable_frontedit_links)
60
+
- In the [Front-End Editing Settings](/control-panel/settings/front-end-editing.md#enable-automatic-front-end-editing-links) where you control the Dock overall.
61
+
- Per field in the [field settings](control-panel/field-manager/edit-field.md)
62
+
- By the user on the front-end [via the Dock](advanced-usage/front-end/dock.md#edit-toggle), by toggling Edit Mode on/off.
63
+
- In the [Template Settings](control-panel/template-manager.md#settings) of an [individual template](/troubleshooting/front-end-content-management.html#dock-shows-everywhere-while-front-edit-links-only-show-some-places)
64
+
- In the template by using [ExpressionEngine template comments](#expressionengine-comment), [HTML comments](#html-comment), or the [`disable` field parameter](#field-tag-parameter)
65
+
- By granting or removing editing access to a user role
67
66
68
-
#### ExpressionEngine Comment
67
+
#### Using ExpressionEngine Comments
69
68
70
-
Anything content wrapped in `{!-- disable frontedit --} ... {!-- //disable frontedit --}` HTML comment will not have edit links in it.
69
+
Any content wrapped in these EE comments will not have edit links in it.
NOTE: **Hint:** If you need to disable front-end edit on large number of templates completely, you can wrap these comments around layout template.
73
+
NOTE: **Hint:** If you need to disable front-end edit on large number of templates completely, wrap these comments around content using a layout template.
75
74
76
75
77
-
#### HTML Comment
76
+
#### Using HTML Comments
78
77
79
-
Anything content wrapped in `<!-- disable frontedit --> ... <!-- //disable frontedit -->`HTML comment will not have edit links in it.
78
+
Any content wrapped in these HTML comments will not have edit links in it.
NOTE: **Hint:** If you need to disable front-end edit on large number of templates completely, you can wrap these comments around layout template.
82
+
NOTE: **Hint:** If you need to disable front-end edit on large number of templates completely, wrap these comments around content using a layout template.
84
83
85
-
#### Field tag parameter
86
-
Use `disable="frontedit"` parameter on field tag to disable link for a certain field.
84
+
#### Field Tag Parameter
85
+
86
+
Use the `disable="frontedit"` parameter on a field tag to disable the edit link for a specific field.
87
87
88
88
{page_content disable="frontedit"}
89
89
90
-
## Customizing The Link Location
90
+
## Customizing the Link
91
91
92
-
The edit link for each field can be placed manually using [**:frontedit** modifier](#frontedit) on the field or using the [**frontedit_link**](#frontedit_link) tag if you need to have a link in a different section of a template, custom styled, or you can even place a link for a field that is currently not on the page.
92
+
The edit link icon for each field can be output in another part of the HTML by using [**:frontedit** modifier](#frontedit) on the field tag. Or, by using the [**frontedit_link**](#frontedit_link) tag, you can have a raw link in a different section of a template which can be custom styled. You can also use this to place an edit icon or link for a field that is currently not on the page.
93
93
94
94
### `:frontedit`
95
95
96
-
Inside `{exp:channel:entries}` tag, using the field name postfixed with `:frontedit` will generate an edit link for that field within displayed entry.
96
+
Inside `{exp:channel:entries}` tag, using a field name postfixed with `:frontedit` will generate an edit link icon for that field, regardless of that field's usual setting.
97
97
98
-
You may find it useful if `disable_frontedit_links` configuration override is set and you need to place the links individually.
98
+
This is additionally useful if `disable_frontedit_links` configuration override is set and you need to place the links individually.
99
99
100
100
Example usage:
101
101
@@ -108,10 +108,10 @@ Can be used to place edit link in arbitrary place (also outside or `exp:channel:
108
108
| Parameter | Description |
109
109
| ---------- | ----------- |
110
110
| entry_id | ID of entry to edit. Required. |
111
-
| field_name | Short name of field to edit. Required, unless `field_id` is specified. |
112
-
| field_id | ID of field to edit. Required, unless `field_name` is specified. |
113
-
| site_id |Extra CSS class to apply to link HTML. |
114
-
| class | Extra CSS class to apply to link HTML. |
111
+
| field_name | Short name of field to edit. Required unless `field_id` is specified. |
112
+
| field_id | ID of field to edit. Required unless `field_name` is specified. |
113
+
| site_id |Required when using MSM and a field name that is not unique. |
This conditional will display content if front-end editing is enabled overall for the current user.
134
+
127
135
### Label Custom Front-end Edit Links
128
-
When using custom links, it may be useful to label these links for the user. One way of accomplishing this is by using the special [`{if frontedit}` conditional](#if-frontedit)
136
+
137
+
When using custom edit links, it may be useful to label these links for the user. One way of accomplishing this is by using the special [`{if frontedit}` conditional](#if-frontedit)
129
138
130
139
Example:
131
140
@@ -134,7 +143,8 @@ Example:
134
143
```
135
144
136
145
## Reinitialize ExpressionEngine Pro Javascript
137
-
There may be times, such as when using AJAX, that page content is loaded after ExpressionEngine Pro has been initialized on a page. When this happens edit links may not work or even render. To fix this, you need to included `EE.pro.refresh();` in your script.
146
+
147
+
There may be times, such as when using AJAX, that page content is loaded after ExpressionEngine Pro has already initialized on a page. When this happens, edit links may not work or even render. To fix this, you can include `EE.pro.refresh();` in your script.
Copy file name to clipboardExpand all lines: docs/control-panel/template-manager.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ The Template Notes tab enables you to save notes and information about your temp
70
70
-**Allow PHP?** -- Here you specify whether or not the Template will parse PHP expressions. If the preference is set to "no", then any PHP in the Template will be output as plain text.
71
71
-**PHP Parsing Stage** -- If the previous preference is enabled, this sets whether PHP is parsed on "input" or "output" in the Template. See [Using PHP in Templates](templates/overview.md#php-in-templates) for more information.
72
72
-**Hit Counter** -- If you wish to manually revise the hit counter for a Template you may do so.
73
+
-**Enable front-end editing?** -- If you are running EE Pro, you can enable or disable [front-end editing links](advanced-usage/front-end/frontend.md) on a per-template basis. By default it is enabled.
0 commit comments