6

Assuming you have an 'entry', this should work: {% for tab in entry.getFieldLayout().getTabs() %} <ul> <li>{{ tab.name }} <ul> {% for field in tab.getFields() %} <li>{{ field.name }}</li> {% endfor %} </ul> </li> </...


4

Technically, all entries have all fields, regardless of their layout. Field layouts are mostly just a UI thing. 1) Is there a way to tell if an field is actually actively assigned to the entry layout? It’s a little cumbersome and would require the MN Break and Continue plugin, but yes: {% for flf in entry.getFieldLayout().getFields() %} {% set field ...


3

As of Craft 2.2, all you need to do is add a data-confirm-unload attribute to the <form> element that wraps your Field Layout Designer: <form method="post" accept-charset="UTF-8" data-confirm-unload> Craft will then automatically check to see if there were any changes in the form on page unload, and give the user a chance to stay on the page (...


1

If someone has a better approach to solve that please tell me because my method right now fells really wrong and like a hack that might be troublesome in the future. I would like to accept the answer of someone else - until then I'll use the following onKeyDown: function(ev){ ev.preventDefault(); var btn = $(ev.target); if(btn.data('menubtn')){ ...


1

The only solution is to create yet another Grid field that uses the same twig code for rendering only to use it again on the same side. Do you need to enforce that structure or is it a "soft" restriction (meaning things won't go south if the blocks get turned around)? If it were me, I would treat Matrix more or less like a site builder. [some hero image] ...


1

If anyone is wondering I finally finished the plugin I was working on, you can see it here. https://github.com/roundhouse/FormBuilder-Craft-CMS


1

Ok so I finally got it going with the help of that Inspector plugin. This is what I did.. In my front end template..(i used index.html) {% extends "_layout" %} {% import "_includes/forms" as forms %} {% set form = craft.formBuilder.getFormByHandle('testTwo') %} {% set fields = form.fieldLayout.getFieldLayout().getFields() %} {% block content %} <div ...


Only top voted, non community-wiki answers of a minimum length are eligible