Skip to main content
5 events
when toggle format what by license comment
Nov 9, 2021 at 16:06 comment added 4uk4 There is nothing wrong with the original question, otherwise I wouldn't have answered it. But you couldn't expect that it would get this specific. You can apply my answer to this specific task, too. Embed the two views in a block and put the condition part in blockAccess().
Nov 9, 2021 at 15:48 comment added liquidcms Yes, I could write a plugin which is more ui that is not required. I think i likely described the question incorrectly. What i have is 2 (view) blocks which display or not based on contents. I did manage to accomplish what i was doing with getting rid of one of the blocks and incorporating the condition part within the View using twig. Thanks for the help. Sorry i didnt explain well enough.
Nov 9, 2021 at 15:14 comment added 4uk4 This is a main feature of the Layout Builder UI that you can create non reusable blocks on the fly. BTW the Views block plugin class implements blockAccess() checking the access of the View. So you can configure access there or even write your own Views access plugin if you don't find the access options you are looking for.
Nov 9, 2021 at 14:42 comment added liquidcms i have never found this: "most common in Layout Builder are inline custom blocks" to be the case. Anyway, i didnt think necessary but i should have mentioned this is a Views block. And for that, the block_content_access hook is not used (but good info to know). Still looking.
Nov 9, 2021 at 10:42 history answered 4uk4 CC BY-SA 4.0