I want to use flexible content layouts to create a custom cms and be able to use the content created in the layouts as featured content on the homepage of the site. The way I want to do that is to have a checkbox as the first field in the layout and if that checkbox is true the content of the layout will be written to the homepage.
Therefore what I need to do is identify the layout name from the layouts that have the checkbox marked. So far, using database queries I can find checkboxes with the checked value and the post that they appear in but I can’t find the name of the containing layout.
Any help would be good.
Andy