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: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,12 @@ To build the theme assets, run `npm run buildAssets`. You can also dynamically r
32
32
33
33
### Viewing local changes
34
34
35
-
Manually load `/build/index.html` in your browser to view your local build. For example, `file:///Users/<username>/Documents/ExpressionEngine-User-Guide/build/index.html`. You can use the side navigation to navigate to different local files, but the search functionality always takes you to the live version at docs.expressionengine.com.
35
+
There are 2 options for viewing your local changes.
36
+
37
+
1. Run `npx http-server -o` which should make the site available at [http://127.0.0.1:8080/build/](http://127.0.0.1:8080/build/).
38
+
2. Manually view any HTML file in `/build/` in your browser. For example, `file:///Users/<username>/Documents/ExpressionEngine-User-Guide/build/index.html` to view the home page.
39
+
40
+
You can use the side navigation to navigate to different local files, but the search functionality takes you to the live version at [https://docs.expressionengine.com](https://docs.expressionengine.com) unless you follow the steps at [Using DocSearch Locally](#using-docsearch-locally).
Copy file name to clipboardExpand all lines: docs/add-ons/search/simple.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ The Template_Group/Template where you would like the search results to be shown.
97
97
98
98
results="20"
99
99
100
-
The number of results to show per page on the search results.
100
+
The number of results to show per page. The maximum value of `results` is 255. This means one page of results can't have more than 255 items, though you can have more than 255 results once you paginate the results.
Copy file name to clipboardExpand all lines: docs/advanced-usage/env-support.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
-->
9
9
# ENV File Support
10
10
11
-
Config files can also be configured using [PHP Environment variables ($_ENV)](https://www.php.net/manual/en/reserved.variables.environment.php). To utilize this, create a file named `.env.php` in the root of your ExpressionEngine install.
11
+
Config files can also be configured using [PHP Environment variables ($_ENV)](https://www.php.net/manual/en/reserved.variables.environment.php). To utilize this, create a file named `.env.php` in the root of your ExpressionEngine install.
12
12
13
13
NOTE: The `.env.php` file must be placed in same directory as the `system` directory. If you move the `system` directory above the webroot you must also move `.env.php`.
14
14
@@ -31,19 +31,20 @@ This variable can now be used in your `/system/user/config.php` as illustrated b
31
31
Here is an example of what it might look like to manage all your database connection settings, and Base URL in `.env.php`
32
32
33
33
```
34
-
// .env.php
35
-
36
-
// URLs
34
+
#.env.php
35
+
#URLs
37
36
BASE_URL=http://mysite.test/
38
37
39
-
// DATABASE SETTINGS
38
+
#DATABASE SETTINGS
40
39
DB_HOSTNAME=db
41
40
DB_DATABASE=db
42
41
DB_USERNAME=db
43
42
DB_PASSWORD=db
44
43
DB_PORT=3306
45
44
```
46
45
46
+
NOTE: You must use `#` for comments within `.env.php`. Using `//` will result in your `.env.php` being unable to be read.
47
+
47
48
```
48
49
// system/user/config.php
49
50
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Copy file name to clipboardExpand all lines: docs/channels/channel-form/overview.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,12 @@ The Channel Form tag will automatically load jQuery for you. If you prefer to in
46
46
47
47
### Allowing Guests to Post Entries
48
48
49
-
Allowing guest posts is controlled in the Channel Form settings at `Developer --> Channels` in the channel's **Settings** tab.
49
+
Allowing guest posts is controlled in the Channel Form settings in `Channels` in the channel's **Settings** tab.
50
50
51
-
To allow guests to post in a certain channel, locate the options for "Allow Guest Posts" next to the channel you want to allow guest posts for, and choose "Yes".
51
+
You can optionally choose an author that entries entered as guests appear as authored by in the Guest Author field.
52
52
53
-
You can optionally require the guest to pass a captcha before they submit the Channel Form by choosing "Yes" under "Guest Captcha".
53
+
Requirements regarding use of a captcha for guest posting are controlled in `Settings --> CAPTCHA`.
54
54
55
-
Finally, you can optionally choose an author that entries entered as guests appear as authored by under Guest Author.
Copy file name to clipboardExpand all lines: docs/channels/entries.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -789,6 +789,10 @@ If five entries are being displayed per page, then for the fourth entry on the s
789
789
790
790
**BONUS:** Since the Search module utilizes channel variables, {absolute_count} is also available to the Search Results tag.
791
791
792
+
### `{absolute_index}`
793
+
794
+
Similar to `absolute_count` but starts at 0 instead of 1. So the first entry will have value of "0" and the second entry will have a value of "1" etc.
795
+
792
796
### `{absolute_results}`
793
797
794
798
This variable will always display the absolute total number of results that are returned by the tag, regardless of pagination.
@@ -963,6 +967,10 @@ The date the entry was submitted in GMT. This variable is **not** localized for
963
967
964
968
The date on which the entry was last edited in GMT. This variable is **not** localized for each user's date settings. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
965
969
970
+
### `{index}`
971
+
972
+
Similar to `count` but starts at 0 instead of 1. So the first entry will have value of "0" and the second entry will have a value of "1" etc.
973
+
966
974
### `{ip_address}`
967
975
968
976
The IP address of the author when they posted the entry.
This command updates old file format data to the modern format and synchronizes the file usage records in the database. File usage data for a given file in the file manager can be viewed in the [File Editor](control-panel/file-manager/file-edit.md). This functionality is also available through [Utilities - File Usage](control-panel/utilities/data-operations.md#update-file-usage-information).
Copy file name to clipboardExpand all lines: docs/config/config-files.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ In addition to `config.php` ExpressionEngine has a number of other configuration
13
13
14
14
As a general rule, the values provided in those config files (located in `system/ee/ExpressionEngine/Config` folder) are good for most sites, however there might be cases where certain setup would need to override some of the values.
15
15
16
-
In order to do that, simply copy the corresponding file to `system/user/config` folder and change or add the values that are needed. There is no need to keep the full copy of config file, just keep the properties that need to be changed and remove the ones that you are fine with - the default values will be used for those.
16
+
In order to do that, simply copy the corresponding file to `system/user/config` folder and change or add the values that are needed.
17
17
18
18
[TOC=4]
19
19
@@ -33,15 +33,20 @@ This file contains an array of foreign characters for transliteration conversion
33
33
34
34
`valid_form_attributes.php`
35
35
36
-
A list of HTML attributes that are allowed to be passed via EE template tag parameters to the `form` tag when creating forms with `ee()->functions->form_declaration()`. Additionally, attributes prefixed with `data-` and `aria-` can be used.
36
+
A list of HTML attributes that are allowed to be passed via EE template tag parameters to the `form` tag when creating forms with `ee()->functions->form_declaration()`. Additionally, attributes prefixed with `data-` and `aria-` can be used without being specified in the config settings.
37
37
38
38
#### Allowed Mime Types
39
39
40
40
`mimes.php`
41
41
42
-
These are the mime types that are allowed to be uploaded using the upload class. For security reasons the list is kept as small as possible. If you need to upload types that are not in the list you can add them.
42
+
This file sets the mime types that are allowed to be uploaded using the upload class. For security reasons the list is kept as small as possible. The `mimes.php` file in your `system/user/config` folder will override the system `mimes.php` entirely. If you need to upload mime types that are not in the list you can add them. If you want to disallow a mime type that is allowed by default, you can remove it from your mimes.php file and it will be disallowed.
43
43
44
-
The mime types are grouped by file type. You can add the allowed mime types directly or you can add new file types containing multiple mimes.
44
+
The mime types are grouped by file type. These file types make up the 'Allowed File Types' options in the [upload directory](control-panel/file-manager/upload-directories.md#allowed-file-types) settings. You can add new mimes to an existing file type or create a new file type and add to that. Your new file type will be included as an option in the file upload preferrence file types.
45
+
46
+
Tip: Customizing Allowed File Types in ExpressionEngine
47
+
<divclass="video-wrapper">
48
+
<iframesrc="https://www.youtube.com/embed/W6-NEmd7Urk"width="1920"height="1080"title="Customizing Allowed File Types in ExpressionEngine"frameborder="0"webkitallowfullscreenmozallowfullscreenallowfullscreen></iframe>
0 commit comments