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.
Hi Tyler.
I have block, I use wildcards "*" set the visibility on all node pages. And I want the block not show up on user login, user logout, register page.
how to do this?
Comments
Comment #1
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedTry this in settings.js:
Comment #2
huythuytq CreditAttribution: huythuytq commentedThis is my code in settings.js:
this part of code doesn't work
Comment #3
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedJust like Drupal core (as far as I know), DrupalGap only supports one set of rules for pages, and you can either include or exclude a block's visibility.
admin/structure/block/manage/user/login/configure
However, I'm open to the idea of expanding (or intercepting) drupalgap_check_visibility() to allow a custom function be called, for example maybe we could do something like this:
drupalgap_check_visibility() would need to be expanded or intercepted to support this.
Comment #4
huythuytq CreditAttribution: huythuytq commentedthanks you for answer.
Comment #5
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedIt's now (and has been for a while) possible to have a callback function determine the access on a block: http://docs.drupalgap.org/7/Blocks/Block_Visibility_Rules