Restricting blocks to certain page types
Permalink
Hi
I have a couple of blocks which should only be used on one particular page type. I was wandering if there was a simple way to prevent this block from being used on other page types.
(I.E. remove it from the blocks list when loaded on a page where that block is not allowed to be added)
Thanks in advance
I have a couple of blocks which should only be used on one particular page type. I was wandering if there was a simple way to prevent this block from being used on other page types.
(I.E. remove it from the blocks list when loaded on a page where that block is not allowed to be added)
Thanks in advance
Here's how to do this:
1. Enable advanced permissions:http://www.concrete5.org/documentation/general-topics/simple-permis...
2. Go to Pages & Themes => Page Types
3. Select "Defaults" for the page type where you want to do the restrictions
4. Click the defaults section into edit mode
5. Click on the area you want to apply the restrictions to (and repeat this for all the areas where you want this)
6. Select "Set Permissions" and select the blocks you want to allow for different user groups
After this, these permissions apply only to pages that search permissions from the page type defaults, so if that's not the case, you need to change that:
1. Go to sitemap
2. Select the parent pages of sections where you want to apply this to
3. Click on "Set Permissions"
4. Under "Sub-pages added beneath this page:" select "Inherit page type default permissions."
Not quite trivial but then again is not this case. The upcoming version of concrete5 will have a bunch of permissions related updates that you will probably find quite useful. I'm not sure for which version they are planning to roll out these updates but I'm sure they will come out in the near future.
Antti / Mainio