Closed (fixed)
Project:
Context
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2021 at 15:40 UTC
Updated:
10 May 2021 at 12:24 UTC
Jump to comment: Most recent
The plugin summary is inaccurate and can be confusing.
Install the asset_injector module, and save a simple configuration without any conditions.
The summary will be inaccurate:

The summary needs to be more accurate:
It should be empty when not in use.
It should produce a list of views which it is acting upon if it is configured to do do.
Provide a patch for it.
| Comment | File | Size | Author |
|---|---|---|---|
| context-invalid-condition-summary.png | 5.43 KB | codebymikey |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
deaom commentedThe viewinclusion condition now displays a no views pages were selected on empty condition and a message with listed selected views pages when at least one is selected.
The return true for the following pages message comes from cores RequestPath, just mentioning it here, so there is no confusion.
Comment #5
paulocsMakes sense.
Comment #6
paulocsComment #8
paulocsComment #10
codebymikey commentedPushed an update in MR 9 to all the condition plugins so that they match their
::defaultConfiguration()definitions when not configured.Otherwise they're not removed from
ConditionPluginCollection::getConfiguration().This happened particularly because the
negateoption was always set tonullrather than the default value offalse.And also the reason the following:
(as well as "Select views pages") were showing up despite not being "configured".
The custom
RequestPathExclusionplugin extends core'sRequestPath, but was hiding the "negate" checkbox.Comment #12
paulocs