From 709eadd664b6e8753fd1102d35864031652b7bee Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Tue, 18 Apr 2023 14:56:25 +0300 Subject: [PATCH 1/8] added additional info on when braces are required in conditionals --- docs/templates/conditionals.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/templates/conditionals.md b/docs/templates/conditionals.md index 526fc5f4d..d061aae50 100755 --- a/docs/templates/conditionals.md +++ b/docs/templates/conditionals.md @@ -281,6 +281,21 @@ Tags that output numeric content will work fine with quotes, but also do not nee {if {fluid_content:count type="long_form_text"} == 3} +If the conditional expression contains [variable modifiers](templates/variable-modifiers.md), braces should only be omited if the conditional is executed on top-level variable (not Grid column or Fluid field element) and there is only one check in the expression (no AND / OR operators). +In other words, you can only do following without braces: + + {if grid_field:total_rows} + +But you will need braces in there cases: + + {if {grid_field:total_rows} AND {another_grid_field:total_rows}} + + {if {grid_field:text_column:length}} + + {fluid:rte_field} + {if '{content:has_excerpt}' == 'y'}

Read More

{/if} + {/fluid:rte_field} + ## Short Conditionals Certain conditionals exist in a shortened form in order to improve template readability. These conditionals are usually checking to see if a certain thing is true or exists: From 42c55eaa273ff398a9532ff54f4a3fd3b12b110b Mon Sep 17 00:00:00 2001 From: JCOGS Design <13821249+jcogs-design@users.noreply.github.com> Date: Thu, 20 Apr 2023 11:47:26 +0100 Subject: [PATCH 2/8] Update alert.md Correct typo in description of default option for `make()` method. --- docs/development/services/alert.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/services/alert.md b/docs/development/services/alert.md index 8be886c6b..bd4228192 100755 --- a/docs/development/services/alert.md +++ b/docs/development/services/alert.md @@ -31,7 +31,7 @@ Alerts are for providing feedback on an action and calling attention to warnings [TOC=3] -### `make($name, $type = 'inline')` +### `make($name, $type = 'alert')` Makes a new named alert of the specified type. From 350647acab436588513340fccc8a0c3b1955d790 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Fri, 21 Apr 2023 15:44:44 +0300 Subject: [PATCH 3/8] {formatting_buttons} variable is non-existant --- docs/channels/channel-form/examples.md | 1 - docs/channels/channel-form/fields.md | 1 - docs/channels/channel-form/overview.md | 2 -- 3 files changed, 4 deletions(-) diff --git a/docs/channels/channel-form/examples.md b/docs/channels/channel-form/examples.md index e4c755f01..8205bb71b 100755 --- a/docs/channels/channel-form/examples.md +++ b/docs/channels/channel-form/examples.md @@ -83,7 +83,6 @@ {custom_fields} {field_instructions} - {formatting_buttons} {if error}

{error}

diff --git a/docs/channels/channel-form/fields.md b/docs/channels/channel-form/fields.md index 964ed46e8..35134c3d6 100644 --- a/docs/channels/channel-form/fields.md +++ b/docs/channels/channel-form/fields.md @@ -19,7 +19,6 @@ The Custom fields tag pair will conveniently show all your custom fields, but it {field_instructions} - {formatting_buttons} {if error}

{error}

diff --git a/docs/channels/channel-form/overview.md b/docs/channels/channel-form/overview.md index 22c0c001f..8e7826f29 100755 --- a/docs/channels/channel-form/overview.md +++ b/docs/channels/channel-form/overview.md @@ -290,7 +290,6 @@ If using a field with options, such as Checkboxes or Dropdown, you can display t {custom_fields} {field_instructions} - {formatting_buttons} {if error}

{error}

@@ -383,7 +382,6 @@ Within this loop, you have the following single variables: {field_id} {error} {field_instructions} - {formatting_buttons} - Shows the EE formatting buttons if have that option selected for that field {display_field} - Displays the field as it appears in the CP (using the fieldtype API display_field method) {text_direction} {rows} - For textareas From 67806b83aabf1812e9142a2484f9ef7ea62de216 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Tue, 25 Apr 2023 08:19:19 +0300 Subject: [PATCH 4/8] fix 7.2.16 changelog --- docs/installation/changelog.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/installation/changelog.md b/docs/installation/changelog.md index 38ac543a0..676d98be5 100755 --- a/docs/installation/changelog.md +++ b/docs/installation/changelog.md @@ -15,8 +15,6 @@
    -
  • Bryan Nielsen

    @bryannielsen

  • -
  • Matt Johnson

    @matthewjohns0n

  • Yulya Lebed

    @Yulyaswan

  • Yuri Salimovskiy

    @intoeetive

  • @@ -28,13 +26,11 @@ - Optimize logging developer messages; [#3057](https://github.com/ExpressionEngine/ExpressionEngine/issues/3057) - Added keyboard shortcut for saving Pro Variables -- Added icon for video file -- Added icon for doc file type -- Installer / Updated now respects default theme colors -- Remove "blinks" into the drak on script loads -- Made styles a bit more generic for multiselect -- Added additional styles for long channel titles -- Resolved [#518](https://github.com/ExpressionEngine/ExpressionEngine/issues/518) where include in search was present on relaionthips and shouldn't be +- Resolved [#3222](https://github.com/ExpressionEngine/ExpressionEngine/issues/3222) where File icon in File field does not match field type +- Resolved [#2028](https://github.com/ExpressionEngine/ExpressionEngine/issues/2028) where Installer/Updater does not respect the theme +- Resolved [#3247](https://github.com/ExpressionEngine/ExpressionEngine/issues/3247), where H2 tag didn't respect theme colors on Redactor RTE +- Improved styles for Pages add-on settings +- Improved [#518](https://github.com/ExpressionEngine/ExpressionEngine/issues/518) where 'Include in search' option from Relationships field should have been hidden. **Bug Fixes** πŸ’ƒπŸ› @@ -50,7 +46,7 @@ - Resolved [#3302](https://github.com/ExpressionEngine/ExpressionEngine/issues/3302) where Structure was showing deprecation notices when using PHP 8.2 - Resolved [#3191](https://github.com/ExpressionEngine/ExpressionEngine/issues/3191) where PHP errors could be shown when installing add-on that have a fieldtype and module - Resolved [#3286](https://github.com/ExpressionEngine/ExpressionEngine/issues/3286) where PHP errors could be thrown on creating of a dynamic property -- Resolved [#510](https://github.com/ExpressionEngine/ExpressionEngine/issues/510) where Toggle field conditionals on frontend didn't handle defaults correctly +- Resolved [#510](https://github.com/ExpressionEngine/ExpressionEngine/issues/510) where existing entries did not have correct value for toggle field after adding it and no prompt for update were made ## Version 7.2.15 (Release: April 12, 2023) From 8f5a37bdce00b4644ab1cc1df82a04b9cd26e49e Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Tue, 2 May 2023 10:54:54 +0300 Subject: [PATCH 5/8] 7.2.17 changelog --- docs/installation/changelog.md | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/docs/installation/changelog.md b/docs/installation/changelog.md index 38ac543a0..15f7f7845 100755 --- a/docs/installation/changelog.md +++ b/docs/installation/changelog.md @@ -8,6 +8,55 @@ --> # ExpressionEngine v7 Change Log +## Version 7.2.17 +(Release: May 2, 2023) + +- **Contributors** πŸ™Œ +
    +
    + +
    +
    + +**Enhancements** πŸš€ + +- Improved counting members on role +- Added extra information on RTE advanced configuration +- Resolved issue where icons on Channels page were not self-evident +- Enabled File field to be used as Pro Variable; [#2498](https://github.com/ExpressionEngine/ExpressionEngine/issues/2498) +- Added separate list with selected categories for Entry page Category tab [#2807](https://github.com/ExpressionEngine/ExpressionEngine/issues/2807) +- Added more information to template debugger when using `search` parameter in `exp:channel:entries`; [#2670](https://github.com/ExpressionEngine/ExpressionEngine/issues/2670) + +**Bug Fixes** πŸ’ƒπŸ› + +- Wrap Structure global functions to avoid conflict +- Resolved [#3261](https://github.com/ExpressionEngine/ExpressionEngine/issues/3261) where empty Grid row could have been added in Fluid upon saving +- Resolved [#2148](https://github.com/ExpressionEngine/ExpressionEngine/issues/2148) where entry status was not updated after change of status name +- Resolved [#477](https://github.com/ExpressionEngine/ExpressionEngine/issues/477) where no information was provided when editing entry with status that's not accessible to member +- Resolved [#3331](https://github.com/ExpressionEngine/ExpressionEngine/issues/3331) Where Categories tab shows empty alert when no category groups assigned +- Resolved [#758](https://github.com/ExpressionEngine/ExpressionEngine/issues/758) where installation wizard did not work when PHP was configured to have no memory limit +- Resolved [#1795](https://github.com/ExpressionEngine/ExpressionEngine/issues/1795) Where display of negative numerical field has - placed incorrectly for RTL text direction +- Resolved issue where setting member field type might not work properly when called programmatically +- Resolved [#3224](https://github.com/ExpressionEngine/ExpressionEngine/issues/3224) where descending sorting order did not persist when using pagination in File Manager +- Resolved [#2609](https://github.com/ExpressionEngine/ExpressionEngine/issues/2609) where the permissions for Guests role could be incorrect and Guest could log in +- Resolved [#2570](https://github.com/ExpressionEngine/ExpressionEngine/issues/2570) where saving empty "Select Entries" Pro Variable was throwing SQL error +- Resolved [#2843](https://github.com/ExpressionEngine/ExpressionEngine/issues/2843) where Channel Form was saving file field data in old format +- Resolved [#2112](https://github.com/ExpressionEngine/ExpressionEngine/issues/2112) where deleting too many logs could cause the system go out of memory +- Resolved [#2387](https://github.com/ExpressionEngine/ExpressionEngine/issues/2387) where PHP error could be shown when several developer logs are existing +- Resolved [#3286](https://github.com/ExpressionEngine/ExpressionEngine/issues/3286) when warning was shown when using member fields with PHP 8.2 + +**Developers** πŸ’» + +- Added `GridColumn` model +- Improve error reporting when instantiating non-existent model +- Added relationships to model definitions that were missing +- Improve string-to-boolean conversion; [#1959](https://github.com/ExpressionEngine/ExpressionEngine/issues/1959) + ## Version 7.2.16 (Release: April 24, 2023) From 456008e507f11aadef51e868c2f76b8f935cb739 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Mon, 10 Apr 2023 13:48:22 +0300 Subject: [PATCH 6/8] Use File fieldtype as Pro Variable --- docs/add-ons/pro-variables/type.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/add-ons/pro-variables/type.md b/docs/add-ons/pro-variables/type.md index 2f3b2f5a8..2a9628fef 100644 --- a/docs/add-ons/pro-variables/type.md +++ b/docs/add-ons/pro-variables/type.md @@ -48,6 +48,16 @@ Displays a date picker. To output anything other than a timestamp, use the `{exp {exp:pro_variables:single var="my_var" modifier="relative"} +## File + +Uses the native [File field](/fieldtypes/file.md). To output the variable, always use the `{exp:pro_variables:pair}` or `{exp:pro_variables:single}` tag where appropriate. If you try to address the variable by name only, it will return the content unparsed, e.g. `{file:XX:url}`. You can use File field [parameters](/fieldtypes/file.md#template-tag-usage) and [variables](/fieldtypes/grid.md#template-tags) using these tags. Additionally, one more parameter is available: + +### Parameters + +#### `modifier` + +Allows applying modifiers, which, among other, are used to apply [on-the-fly image manipulations](/fieldtypes/grid.md#on-the-fly-image-manipulations) to files + ## Grid Uses the native [Grid field](/fieldtypes/grid.md). All native types are available, _except for Relationships_. To output the variable, use the `{exp:pro_variables:pair}` or `{exp:pro_variables:single}` tag where appropriate. You can use any of Grid’s [parameters](/fieldtypes/grid.md#parameters) and [variables](/fieldtypes/grid.ms#variables) using these tags. Additionally, one more parameter is available: From e0e5768e24c9ea7ac743be4e64667ef6b97442c4 Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Tue, 2 May 2023 12:30:53 -0400 Subject: [PATCH 7/8] Update conditionals.md --- docs/templates/conditionals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates/conditionals.md b/docs/templates/conditionals.md index d061aae50..bc3511af3 100755 --- a/docs/templates/conditionals.md +++ b/docs/templates/conditionals.md @@ -281,7 +281,7 @@ Tags that output numeric content will work fine with quotes, but also do not nee {if {fluid_content:count type="long_form_text"} == 3} -If the conditional expression contains [variable modifiers](templates/variable-modifiers.md), braces should only be omited if the conditional is executed on top-level variable (not Grid column or Fluid field element) and there is only one check in the expression (no AND / OR operators). +If the conditional expression contains [variable modifiers](templates/variable-modifiers.md), braces should only be omited if the conditional is executed on a top-level variable (not Grid column or Fluid field element) and when there is only one check in the expression (no AND / OR operators). In other words, you can only do following without braces: {if grid_field:total_rows} From 7df6c03dd50d1418016f51add53a03a051e8c978 Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Tue, 2 May 2023 12:33:59 -0400 Subject: [PATCH 8/8] Update changelog.md --- docs/installation/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/changelog.md b/docs/installation/changelog.md index 676d98be5..f628b180f 100755 --- a/docs/installation/changelog.md +++ b/docs/installation/changelog.md @@ -46,7 +46,7 @@ - Resolved [#3302](https://github.com/ExpressionEngine/ExpressionEngine/issues/3302) where Structure was showing deprecation notices when using PHP 8.2 - Resolved [#3191](https://github.com/ExpressionEngine/ExpressionEngine/issues/3191) where PHP errors could be shown when installing add-on that have a fieldtype and module - Resolved [#3286](https://github.com/ExpressionEngine/ExpressionEngine/issues/3286) where PHP errors could be thrown on creating of a dynamic property -- Resolved [#510](https://github.com/ExpressionEngine/ExpressionEngine/issues/510) where existing entries did not have correct value for toggle field after adding it and no prompt for update were made +- Resolved [#510](https://github.com/ExpressionEngine/ExpressionEngine/issues/510) where existing entries did not have the correct value for toggle field after it was added to a channel it also did not prompt to update existing entries with the default toggle value ## Version 7.2.15 (Release: April 12, 2023)