Is it possible to show/hide a grid or block depending on user_type of logged-in user?
I know you can use {if $auth.user_type == 'V'}... with Smarty blocks to show/hide things. But, I have a grid with two blocks. I can hide content of the first block using the above code, but not the second block because it is a "Pages" block and I can't see anywhere to add any such code.
It would be good if you could just hide an entire grid or block rather than the content in them.
Is it possible to show/hide a grid or block depending on user_type of logged-in user?
I know you can use {if $auth.user_type == 'V'}... with Smarty blocks to show/hide things. But, I have a grid with two blocks. I can hide content of the first block using the above code, but not the second block because it is a "Pages" block and I can't see anywhere to add any such code.
It would be good if you could just hide an entire grid or block rather than the content in them.
You can create new wrapper for such blocks. All wrappers are stored here
design/themes/THEME/templates/blocks/wrappers
Take one of default wrappers as an example, and wrap it with the {if $auth.user_type == 'V'}...{/if} code