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/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/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.
Copy file name to clipboardExpand all lines: docs/fieldtypes/file.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@ A File field allows you to browse through existing files and upload new files.
25
25
26
26

27
27
28
-
Once a file has been selected in the field, that file can be replaced by clicking the <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/icon_edit.png"alt="edit icon"> icon. The field selection can be cleared by clicking <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/icon_remove.png"alt="remove icon"> icon (this will not remove the file from the system). You can also change the file metadata (such as the title or description) by clicking the <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/icon_edit_meta.png"alt="settings icon"> icon - please note that file's metadata will be changed globally throughout the system.
28
+
Once a file has been selected in the field, that file can be replaced by clicking the <img style="margin-bottom: 0px; vertical-align: middle; display:inline-block;"
29
+
src="../_images/icon_edit.png" alt="edit icon"> icon. The field selection can be cleared by clicking <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../_images/icon_remove.png"alt="remove icon"> icon (this will not remove the file from the system). You can also change the file metadata (such as the title or description) by clicking the <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../_images/icon_edit_meta.png"alt="settings icon"> icon - please note that file's metadata will be changed globally throughout the system.
29
30
30
31
## Field Settings
31
32
@@ -170,6 +171,12 @@ The automatically-detected MIME type of the file.
170
171
171
172
The date the file was last modified. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
172
173
174
+
One powerful use of the modified_date is 'cache busting', forcing browers to use a new image rather than a cached one when an image is modified but not renamed:
175
+
176
+
{image}
177
+
<img src="{url}?v={modified_date}" />
178
+
{/image}
179
+
173
180
### `{path}`
174
181
175
182
The URL to the folder containing the file, including a trailing slash.
- Resolved [#4692](https://github.com/ExpressionEngine/ExpressionEngine/issues/4692) where Search add-on did not include enough custom fields when searching multiple channels
27
+
- Resolved [#4745](https://github.com/ExpressionEngine/ExpressionEngine/issues/4745) where using `edit_date` variable in Structure navigation was giving PHP error
28
+
- Resolved [#4725](https://github.com/ExpressionEngine/ExpressionEngine/issues/4725) where Search was showing an error if `results` parameter was too big
29
+
- Resolved [#4720](https://github.com/ExpressionEngine/ExpressionEngine/issues/4720) where file usage was not calculated correctly for textareas containing multiple images
30
+
- Resolved [#4689](https://github.com/ExpressionEngine/ExpressionEngine/issues/4689) where adding category from entry page could show wrong UI
31
+
- Resolved [#4682](https://github.com/ExpressionEngine/ExpressionEngine/issues/4682) where cloning entry with hidden RTE field was giving PHP error
32
+
- Resolved an issue where curl requests on Windows could not use the native root certificate store
33
+
- Resolved an issue where updates from the CLI would not increment the version number
0 commit comments