You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom access callback function based on the user's permissions.
Everything is basically working and user can't see the content inside the element if there are no sufficient permissions... Although the block container is still rendered.
So for example if my footer region doesn't contain anything else than this custom block (with custom permissions), the footer region is still rendered even though there is nothing inside it. I ran in to this same issue with the popup-menus, icon is still rendered even though user can't open the popup-menu.
Is there a way to handle the access callback before DG renders anything on screen?
The text was updated successfully, but these errors were encountered:
@majuril I think the way regions is rendered in DrupalGap core would need to be updated to be a little more intelligent. As you suggested, if there are no blocks to be rendered in that region, then the region shouldn't be rendered at all.
The workaround (without having to improve/hack DG core) would probably be to attach a pageshow handler to your page(s), and in that handler make a decision about whether or not you'd like to remove that region.
Cheers! Good to know I wasn't doing anything "wrong", that caused this issue.
For this case I actually decided to solve it with some CSS. By default the footer is now transparent and when something is printed on it, it'll be printed inside ".footer-container" which is set to have width: 100% and other required CSS.
I have a custom access callback function based on the user's permissions.
Everything is basically working and user can't see the content inside the element if there are no sufficient permissions... Although the block container is still rendered.
So for example if my footer region doesn't contain anything else than this custom block (with custom permissions), the footer region is still rendered even though there is nothing inside it. I ran in to this same issue with the popup-menus, icon is still rendered even though user can't open the popup-menu.
Is there a way to handle the access callback before DG renders anything on screen?
The text was updated successfully, but these errors were encountered: