I have read Linus' blog post on the AllowedTypes attribute which helps to restrict the dragging of certain blocks in to content areas. However, this doesn't seem to prevent the user from selecing the 'wrong' block type when picking the 'Create Block' link in the content area. Is there any way to 'filter' the list of available Block types as well as having the behaviour given by the AllowedTypes attribute.
Correct me if I'm wrong: You want to eliminate the block to be invisible for some specify users when they are create block from "Create block" panel?
If yes, try to set "Access level" for selected block from Admin/Content Types
not quite Huyen.
lets say i have 3 blocks in my system - Article, Order and Citation. Now i have a page type called Generic Page with a content area called IndexContentArea. I have restricted the allowable Blocks to be just Citation, this works fine with the validation kicking in as expected and it is also not possible to drag and drop either Articles or Orders.
However, when i click the 'Create a new Block' link the page that launches shows me all block types in the system, and i can get as far as creating the block, it is only when i try to publish the page that the validation tells me i cannot do what i am trying.
What i would like is to have the page that launches with the available block types to be filtered to exactly the types of blocks that are permissable in the givn content area.
Hopefully someone out there has some ideas for this as in reality we have a LOT of block types, and it would be good to provide the user with a filtered list.
We can work around by override some files but actually that is a bug.
I will report it!
Seem that is reported in : http://world.episerver.com/Blogs/Linus-Ekstrom/Dates/2013/12/Restriction-of-content-types-in-properties/
Hi Ha Bui
You write "We can work around by override some files". Do you actually have a working solution? If so, can you please share?
You can go this link for more information: Linuse's blog post
There are currently a few known bugs and limitations that you might want to be aware of:
// Ha Bui
Thanks, Ha Bui!
Unfortunately, the key bug is not yet resolved: http://world.episerver.com/Support/Bug-list-beta/bug/110190/(You are welcome to "up-vote" it :-) )