6

Whats the difference between these two tabs? There is no help text here. One has "negate" the condition but the other does not.

enter image description here

  • 3
    One is from Ctools, which adds this for bundles of all entity types and so you get this for nodes twice. – 4k4 Feb 20 '18 at 17:33
  • 5
    See drupal.org/node/1932810 for the issue that would add that generic implementation to core, deprecate the old one and then we will need to remove it from ctools – Berdir Feb 20 '18 at 18:37
1

"Content type" comes from CTools and "Content types" comes from core.

Simplified summary

"Content types" comes from core and is the preferred condition to use. The "negate" option is also present in core, but it is suppressed by the block module (source). In contrast to core CTools provides this condition not just for nodes but for any entity type (taxonomy terms, custom entities etc.). That's the reason why in case of nodes there is a duplicate set of entity bundle conditions.

Issues on drupal.org

Now there's this core issue Duplicate node type setting in block visibility which was closed as "works as designed". The problem shall be fixed by CTools (as in remove the duplicate entry).

This leads us to this CTools issue Duplicate node type visibility condition in block settings which was put on hold until core itself replaces CTools functionality to provide block visibility settings for any entity type (not just for nodes) including the "negate" option.

Which finally brings us to this core issue Add entity bundles condition plugin for entities with bundles where the progress to move CTools functionality to core to replace the current node type core condition is being tracked.

  • Think this is one of those UX issues then. “Works as designed” but for end users, should it be there? – Kevin Jan 28 at 0:09
  • @Kevin – Of course no, it shouldn't be there. Let's hope that we can get that fixed soon. – leymannx Jan 28 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.