Skip to content

Commit 802bbd4

Browse files
authored
Merge branch '7.dev' into feature/7.x/passthrough-html-form-attrs
2 parents fa88b52 + b8b7005 commit 802bbd4

File tree

29 files changed

+698
-32
lines changed

29 files changed

+698
-32
lines changed

AUTHORS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ If an entry is incorrect or duplicated, add or correct the entry in `.mailmap` i
1717
- Derek Jones <derek.jones@ellislab.com>
1818
- Doug Black Jr <dougblackjr@gmail.com>
1919
- Douglas Black <dougblackjr@gmail.com>
20+
- Eric Swierczek <2423727+swierczek@users.noreply.github.com>
2021
- Erwin Romkes <hello@stoneandstorm.com>
2122
- Gareth Davies <hello@garethtdavies.com>
2223
- Gavin * JCOGS <gavin@jcogs.net>
@@ -54,7 +55,7 @@ If an entry is incorrect or duplicated, add or correct the entry in `.mailmap` i
5455
- Simon Job <simon@job.id.au>
5556
- Stefan Rechsteiner <info@stefanrechsteiner.com>
5657
- Stephen G <45797159+stephengalbraith@users.noreply.github.com>
57-
- Stephen G <45797159+zdravvy@users.noreply.github.com>
58+
- zdravvy <45797159+zdravvy@users.noreply.github.com>
5859
- Terry Leigh Britton <terrybritton@users.noreply.github.com>
5960
- Tom Jaeger <Tom@PacketTide.com>
6061
- TomJaeger <Tom@PacketTide.com>

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The ExpressionEngine user guide is written in human-readable Markdown and uses a
88

99
### Prerequisites
1010

11-
Building the docs requires Node and npm.
11+
Building the docs requires Node and npm (latest stable version).
1212

1313
In the root of the repository, install all the dependencies:
1414

@@ -30,6 +30,10 @@ The documentation css and js files are located under `theme/assets-src`.
3030

3131
To build the theme assets, run `npm run buildAssets`. You can also dynamically rebuild the assets when a file changes: `npm run watchAssets`.
3232

33+
### Viewing local changes
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.
36+
3337
## Contributing
3438

3539
See something that needs fixing? Want to improve the user guide or make it more helpful? Great! Check out [CONTRIBUTING.md](CONTRIBUTING.md) for details.

docs/add-ons/pro-search/tags.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ Set to no to have a given query overwrite a valid shortcut. Defaults to yes (a s
4343

4444
#### form_attribute
4545

46-
Specifies any html attribute you want the form to have. For example: form_id="search" will add id="search" to the
46+
Specifies any html attribute you want the form to have. For example: form_id="search" will add id="search", or form_class="searchform" will add class="searchform" to the tag.
4747

48-
tag. query Use this parameter to pass through a previously executed encoded search query. Not needed when not encoding queries.
48+
{exp:pro_search:form form_id="search" form_class="searchform"}
4949

50-
{exp:pro_search:form form_id="search"}
50+
#### query
51+
52+
Use this parameter to pass through a previously executed encoded search query. Not needed when [not encoding queries](https://docs.expressionengine.com/latest/add-ons/pro-search/settings.html#encode-query).
53+
54+
{exp:pro_search:form query="{segment_3}"}
5155

5256
#### required
5357

@@ -667,4 +671,4 @@ Alternative syntax for the native {if no_results}{/if} conditional.
667671
{exp:pro_search:suggestions keywords="jongle" keywords:lang="en" limit="1"}
668672
Did you mean {suggestion}?
669673
{if no_suggestions}No suggestions found.{/if}
670-
{/exp:pro_search:suggestions}
674+
{/exp:pro_search:suggestions}

docs/channels/entry-tracking.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ NOTE: **Note:** The view tracking counter works in conjunction with the `{exp:ch
1919

2020
NOTE: **Note:** If you have page caching enabled this feature will not work.
2121

22+
Some people have tags that are used to mimic a single-entry page without it being dynamic (e.g. by using `dynamic="no"` parameter). If you need Entry View Tracking to work for ANY combination that results in only one entry being returned by the tag (including channel query caching), you would need to set the [`relaxed_track_views`](general/system-configuration-overrides.md#relaxed_track_views) configuration override if your config file.
23+
2224
## Tracking Views
2325

2426
The view tracking feature must be enabled in a specific instance of the `{exp:channel:entries}` tag using the `track_views` parameter. Within the `track_views` parameter you will indicate which one of the four "instances" of the view counter you would like to use, like this

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We're excited that you want to get involved in the ExpressionEngine project. The
1717
## Contributing to the Docs
1818
Good documentation is the foundation of good software and your contributions can help make good documentation great.
1919

20-
If you're an ExpressionEngine user, then you have something to add. There is always room for more examples, clarifications, corrections and updates. Jump in and make a pull request or give us a heads up by reporting an issues. Please visit the [Docs Contributing Guidelines](https://github.com/ExpressionEngine/ExpressionEngine-User-Guide/blob/6.dev/CONTRIBUTING.md) to learn how to get started.
20+
If you're an ExpressionEngine user, then you have something to add. There is always room for more examples, clarifications, corrections and updates. Jump in and make a pull request or give us a heads up by reporting an issues. Please visit the [Docs Contributing Guidelines](https://github.com/ExpressionEngine/ExpressionEngine-User-Guide/blob/7.dev/CONTRIBUTING.md) to learn how to get started.
2121

2222
*Related ExpressionEngine University articles:* [Contributing to ExpressionEngine Documentation](https://u.expressionengine.com/article/contributing-to-expressionengine-documentation)
2323

docs/control-panel/channels.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,11 @@ NOTE: **Note:** We recommend using the default base URL variable `{base_url}` de
121121
- **Maximum characters allowed?** -- You may set a maximum number of characters allowed in any comment. Setting this preference to 0 (zero) will not place a restriction on the number of characters allowed.
122122
- **Comment time limit** -- This is the optional number of seconds that must lapse after a comment is posted before that same user can post another comment. This setting can help reduce comment "spam". The preference can be left blank or set to 0 (zero) if you do not want to impose a limit.
123123
- **Comment expiration** -- The number of days after an entry is posted in which to allow comments. After that period has expired, the entry will be closed to commenting and the comment form will no longer appear. Existing comments will still be displayed. Enter 0 (zero) for no expiration. Note that this preference sets the _default_ setting for the channel. The setting can be overridden and changed on a per-entry basis. You may override this setting in the [Comment Module Control Panel](comment/control-panel.md) section of the Comment Module so that comments are set to be moderated rather than closed once the expiration period is passed. If you also select the checkbox accompanying this setting, then all existing entries in this channel will be updated to reflect the new setting when you submit.
124-
- **Text formatting** -- This setting determines how comments are formatted by the system. There are three possible choices:
124+
- **Text formatting** -- This setting determines how comments are formatted by the system. There are three possible choices: `Auto line break`, `None`, and `XHTML`
125125
- **HTML formatting** -- Like the channel setting, this preference determines how raw HTML code within comments is handled. There are three options:
126+
1. Convert to HTML entities -- This will convert any HTML tags to their encoded versions and output the HTML tag as text without rendering the HTML in the DOM. For example: `<h1>` would become `&lt;h1&gt;`.
127+
2. Allow only safe HTML -- This will remove any unsafe HTML tags as defined in the [Typography library](development/legacy/libraries/typography.md#html_format).
128+
3. Allow all HTML (not recommended) -- This will allow any HTML to be saved and output as-is. For example: `<h1>test</h1>` would actually render an `h1` in the DOM.
126129
- **Allow image URLs?** -- You can determine whether or not you want people to be able to display images within comments by using the URL for the image.
127130
- **Render URLs and Email addresses as links?** -- When this option is set to "Yes", any full URLs or email addresses in comments will be automatically formatted as a valid HTML link to the address. If the option is "No" then the URL or email address in comment body will be treated and displayed as plain text.
128131

docs/control-panel/settings/members.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,22 @@ The default member profile theme to be used in the Member Profile area of your s
7777

7878
![sort by](/_images/member_sort_by.png)
7979

80-
Specifies the sorting criteria to be used. Choices are: Total Posts, Screen Name, Total Comments, Total Entries, Join Date.
80+
Specifies the default sorting criteria to be used by `{exp:members:memberlist}` tag. Choices are: Total Posts, Screen Name, Total Comments, Total Entries, Join Date.
81+
Can also be changed using [`memberlist_row_limit` configuration override](general/system-configuration-overrides.md#memberlist_row_limit).
8182

8283
### Order by
8384

8485
![order by](/_images/member_order_by.png)
8586

86-
Specifies whether to show the list in _Ascending_ or _Descending_ order.
87+
Specifies whether to show the `{exp:members:memberlist}` list in _Ascending_ or _Descending_ order.
88+
Can also be changed using [`memberlist_order_by` configuration override](general/system-configuration-overrides.md#memberlist_order_by).
8789

8890
### Total results
8991

9092
![total results](/_images/member_total_results.png)
9193

92-
Specifies the number of results to return by default.
94+
Specifies the number of results that `{exp:members:memberlist}` tag will display by default.
95+
Can also be changed using [`memberlist_row_limit` configuration override](general/system-configuration-overrides.md#memberlist_row_limit).
9396

9497
### Enable new member notifications?
9598

docs/control-panel/utilities/debug.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ The check are being run automatically when you visit the utility pages and also
1515

1616
[TOC]
1717

18+
## Review Duplicate Template Groups
19+
20+
**Control Panel Location: `Tools > Utilities > Duplicate Template Groups`**
21+
22+
ExpressionEngine expects each template group name to be unique per site. We do have automated checks to prevent duplicates, however in very rare cases the checks could have been skipped leading to duplicate records for template groups in database.
23+
24+
This utility helps to identify such cases and provide ability to remove or rename the duplicates.
25+
26+
1827
## Debug Template Tags
1928

2029
**Control Panel Location: `Tools > Utilities > Debug Template Tags`**
@@ -27,7 +36,7 @@ If it finds a tag that corresponds to the add-on that is missing or not installe
2736

2837
Clicking on the tag name shows the list of templates where it is found.
2938

30-
### Debug Fieldtypes
39+
## Debug Fieldtypes
3140

3241
**Control Panel Location: `Tools > Utilities > Debug Fieldtypes`**
3342

docs/development/legacy/libraries/output.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,21 @@ Example:
158158
exit;
159159

160160
NOTE: **Note:** Calling this method manually without aborting script execution will result in duplicated output.
161+
162+
### `send_ajax_response($msg, [$error = false])`
163+
164+
| Parameter | Type | Description |
165+
| --------- | -------- | -------------------- |
166+
| \$msg | `Array` | Object to be sent to the client. |
167+
| \$error | `Bool` | TRUE to set header status to `500` |
168+
| Returns | `Void` | void |
169+
170+
Calling this method encode the given `$msg` parameter and will set the header `Content-Type: application/json`.
171+
172+
Example:
173+
174+
$output = array(
175+
'this' => 'that',
176+
'foo' => 'bar'
177+
);
178+
ee()->output->send_ajax_response($output);

docs/development/legacy/libraries/template.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ Array containing single variables within `TMPL::$tagdata`.
477477

478478
Array containing variable pairs within `TMPL::$tagdata`.
479479

480-
### `TMPL::fetch_param($which[, $default = FALSE])`
480+
### `fetch_param($which[, $default = FALSE])`
481481

482482
| Parameter | Type | Description |
483483
| --------- | -------- | ------------------------------------- |
@@ -517,3 +517,65 @@ Write message to template log in Output Profiler.
517517
| ----------- | --------- | --------------------------------------------------------------- |
518518
| \$str | `String` | Log message |
519519
| \$details | `String` | More detailed log message, initially hidden behind "read more" |
520+
521+
522+
### `parse_globals($str)`
523+
524+
| Parameter | Type | Description |
525+
| ----------- | --------- | --------------------------------------------------------------- |
526+
| \$str | `String` | Parsed tempate |
527+
528+
Parses global variables like the currently logged in member's information, system variables, paths, action IDs, CAPTCHAs. Typically stuff that should only be done after caching to prevent any manner of changes in the system or who is viewing the page to affect the display.
529+
530+
This function would also strip ExpessionEngine comments from the code. It is being run automatically on each front-end page request, however if you are using TMPL library for other types of requests, you might need to call it manually.
531+
532+
### `show_404()`
533+
534+
Show a 404 page whether one is set in the config or not
535+
536+
### `fetch_template($template_group, $template, $show_default = true, $site_id = '')`
537+
538+
| Parameter | Type | Description |
539+
| ---------------- | --------- | --------------------------------------------------------------- |
540+
| \$template_group | `String` | Template group name |
541+
| \$template | `String` | Tempate name |
542+
| \$show_default | `Bool` | If `true`, show template from default group in site |
543+
| \$site_id | `Int` | Site ID |
544+
545+
Fetch Template Data
546+
547+
Takes a Template Group, Template, and Site ID and will retrieve the Template and its metadata from the database (or file)
548+
549+
### `fetch_and_parse($template_group = '', $template = '', $is_embed = false, $site_id = '', $is_layout = false)`
550+
551+
| Parameter | Type | Description |
552+
| ---------------- | --------- | --------------------------------------------------------------- |
553+
| \$template_group | `String` | Template group name |
554+
| \$template | `String` | Tempate name |
555+
| \$is_embed | `Bool` | Whether processed template is an embedded template |
556+
| \$site_id | `Int` | Site ID |
557+
| \$is_layout | `Bool` | Whether processed template is a layout template |
558+
559+
Fetch and Process Template
560+
561+
Determines what template to process, fetches the template and its preferences, and then processes all of it
562+
563+
### `no_results()`
564+
565+
Return template chunk contained inside `{if no_results}...{/if}`
566+
567+
If a tag/class has no results to show, it can call this method. Any `no_results`` variable in the tag will be followed. May be 404 page, content, or even a redirect.
568+
569+
### `remove_ee_comments($str)`
570+
571+
| Parameter | Type | Description |
572+
| ----------- | --------- | --------------------------------------------------------------- |
573+
| \$str | `String` | Parsed tempate |
574+
575+
Remove all EE Code Comment Strings
576+
577+
EE Templates have a special EE Code Comments for site designer notes and are removed during Template processing.
578+
579+
### `sync_from_files()`
580+
581+
Synchronize templates between database and files

0 commit comments

Comments
 (0)