Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Block visibility logic not accurate.
Set block visibility to:
1. Restricted to certain pages
2. Hide for the listed pages
3. Enter "/*/*" as the pattern in the "Pages" text field.
It should show the block on homepage and secondary level pages.
Except hide the Block on greater than 2nd level pages (3rd, 4th, 5th, etc.).
Instead it hides it on every page except the homepage. This logic seems off to me.
Thanks!
btw -This is a Bug or a Feature Request, not a Support Request, don't tell me to just type type in a hundred urls instead.
Comments
Comment #2
joelhsmith CreditAttribution: joelhsmith commentedComment #5
pameeela CreditAttribution: pameeela commentedYou can't use the pattern
/*/*
- this implies a folder structure that doesn't exist. Wildcards only work for specific paths, e.g./node/*
or/search/*
. So to achieve what you are after you would need to add a separate wildcard pattern for each of your second level pages.Comment #6
pameeela CreditAttribution: pameeela commentedAfter discussing it in Slack I think this could be a feature request, if it isn't already, to support open wildcards. But it's definitely not supported now, so it's not a bug.