Modify available entry types for complex field based on page ID
-
Hi,
I’m building a feature that uses Carbon Fields’ complex fields to (essentially) build page layouts through a collection of “Blocks” which are essentially entry types for a complex field. The issue I’m running into is that I want to display certain blocks as options only on certain pages (or, put another way, I want to hide/disable blocks on certain pages). I’ve tried to modify this with filters, but it seems like the action Carbon Fields hooks into is too ‘early’ to have access to the post ID. Obviously containers are able to ‘see’ the page ID, since you can show/hide them by page/post, but as far as I can tell, fields can’t be shown/hidden in the same way. Am I missing something, or should I be going at this another way? Let me know if I there’s any information I can provide to help figure this out.
Thanks!
- The topic ‘Modify available entry types for complex field based on page ID’ is closed to new replies.