Hide a block
Permalink
How can I hide a block from a page using functions and without touching permissions? Why I can't find anything about this? I tried with 'activate'/'deactivate' but they don't work.
That is, because an user has the permissions access to all blocks in the page but sometimes some blocks haven't to be shown to him.
That is, because an user has the permissions access to all blocks in the page but sometimes some blocks haven't to be shown to him.
Ok I've resolved using a 'dispatcher page' and, under that, two pages: the first one contains the block 'A' and the second one contains the block 'B'. So, linking to the dispatcher page with the URL it only redirect to page 'A' or to page 'B' based on 'canRead' page permission for the user.
Now the problem is if the user access to the page 'B' by URL and he is only a guest (not registered). In this case user must be redirected to page 'A' but concrete instead shows me the login page.
What can I do in this case? Because is convenient for me to check only the permissions on page 'B' (and so use the page permission).
Thanks
Now the problem is if the user access to the page 'B' by URL and he is only a guest (not registered). In this case user must be redirected to page 'A' but concrete instead shows me the login page.
What can I do in this case? Because is convenient for me to check only the permissions on page 'B' (and so use the page permission).
Thanks
I have a page with 2 blocks: block 'A' and block 'B'.
'A' is visible to guests and 'B' only to certain people. When 'A' is visible, 'B' is hidden and viceversa. But who can see block 'B' can decide to see block 'A'. In this case 'B' must be hidden.
I've some ideas in my mind but they aren't so beautiful...