Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRESIDECMS-2613 add complex feature enabled evaluation #1370

Merged
merged 5 commits into from
Nov 16, 2023

Conversation

DominicWatson
Copy link
Contributor

In many scenarios, we need to be able to check whether or not multiple different features are enabled, or whether one feature is not enabled and another is, etc. This change adds support for using operators in our feature string to achieve this wherever we have feature specifications. e.g. in a form, you could now do:

<field name="myfield" feature="!( featureX and featureY ) or featureZ" />

Supports operators: ||, or, &&, and, !, not plus support for use of parenthesis.

In many scenarios, we need to be able to check whether or not
multiple different features are enabled, or whether one feature is
not enabled and another is, etc. This change adds support for
using operators in our feature string to achieve this wherever
we have feature specifications. e.g. in a form, you could now do:

```xml
<field name="myfield" feature="!( featureX && featureY ) || featureZ" />
```
@sebduggan sebduggan merged commit d63e05e into stable Nov 16, 2023
2 checks passed
@sebduggan sebduggan deleted the feature-PRESIDECMS-2613_feature-check-expressions branch November 16, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants