Tip: Block permissions and visibility

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris GrahamLiked by Master Rat)
#2735 (In Topic #493)
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Firstly all this information is in the tutorials:
https://compo.sr/docs/tut-tempcode.htm

But this may be a bit overwhelming for many, digging through all the tempcode to find what you want.

First example will cover how to make a block ONLY visible to staff:



There are plenty of other examples on this. Feel free to ask if there is a specific permission you are trying to achieve.


One more example if will cover is hiding a block if you are viewing your site on a mobile. For me I am hiding my top nav bar and also my image slider.

To hide a block while viewing on a mobile do the following.



Basically this is saying if you are NOT viewing this on a mobile, then show the checklist block.


Regards blocks, permissions or visibility feel free to ask here.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Paul FlavelLiked by Master Rat)
#2736
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Thanks :). I just linked this into the tutorial index.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Control functions:

Contract Quick reply

Statistics

Users online:

John Connor, ManojSree, MVLipwig, Manu, Robbie Goacher (2), J.Thomas, Nimitz, Salman, 108 guests

Forum statistics:
  • 607 topics, 3,204 posts, 5,018 members
  • Our newest member is JoshuaHton
Birthdays:
Back to Top