MMXII Posted January 14, 2015 Posted January 14, 2015 I like the fact that we can place blocks wherever we want in the frontend. However, I wonder if permissions for these blocks do exist somewhere? Let's say, for example, I put the "Latest Topics" block in the sidebar, but I want it to be visible to logged in users only, how would I achieve that? Clicking on the Edit button doesn't do the trick. There I can only choose a number for the amount of latest topics, that should be displayed.
NoGi Posted January 14, 2015 Posted January 14, 2015 How are you getting to the block editor? I can't find it anymore to add blocks
Adriano Faria Posted January 14, 2015 Posted January 14, 2015 I like the fact that we can place blocks wherever we want in the frontend. However, I wonder if permissions for these blocks do exist somewhere? Let's say, for example, I put the "Latest Topics" block in the sidebar, but I want it to be visible to logged in users only, how would I achieve that? Clicking on the Edit button doesn't do the trick. There I can only choose a number for the amount of latest topics, that should be displayed. You have to edit the widget PHP file to add the select with user groups. I made it on widgets for my app.
craigf136 Posted January 14, 2015 Posted January 14, 2015 Rather than an edit, should probably be default, slight oversight?
Adriano Faria Posted January 14, 2015 Posted January 14, 2015 Rather than an edit, should probably be default, slight oversight?That's the only way, today. Or via hook; although I don't know if it's possible to extend a widget.
MMXII Posted January 14, 2015 Author Posted January 14, 2015 You have to edit the widget PHP file to add the select with user groups. I made it on widgets for my app. Thanks for your reply! So there is no permissions option that I have missed. There should be one for stupid people like me. Rather than an edit, should probably be default, slight oversight? I totally agree. Setting up visibility for certain usergroups only should be possible without editing IPS4 or installing an addon or using hooks or whatever.
Chris Bell Posted August 24, 2015 Posted August 24, 2015 You have to edit the widget PHP file to add the select with user groups.can you please post the code you added,im looking to add this to all the statistic widgets; these imo should only be visible to members,
Adriano Faria Posted August 24, 2015 Posted August 24, 2015 im looking to add this to all the statistic widgets; these imo should only be visible to members,You mean exclude guests ?
Max Posted August 25, 2015 Posted August 25, 2015 Oh I like this. Would love to add the sidebar to all the pages for guests.
Kjell Iver Johansen Posted August 29, 2015 Posted August 29, 2015 bump... for help with block permission I might misunderstand the question - but can't you give permissions in ACP ?
Chris Bell Posted August 29, 2015 Posted August 29, 2015 nop, im referring to the blocks in pages, not custom blocks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.