The Craft 6 beta is out. Learn what's new and how Craft 6 works on Laravel. Explore Craft 6
Craft 6 can render field layout tabs in the element editor's sidebar, next to the default Info, Activity, and Versions panes. In this lesson we create a new MLS Data sidebar tab on a real estate site's Property entry type, give it an icon, move the price, listing status, and MLS number fields into it, and see how it looks and works when editing an entry. It's a good fit for synced or secondary data that belongs to the entry but doesn't need a place in the main layout.
One of the quieter features in Craft 6 lets you take a field layout tab and render it as a panel in the element editor’s sidebar. That’s the same sidebar that holds the Info, Activity, and Versions panes.
In this video, I cover:
Why put a tab in the sidebar? You might have data that’s synced from another system, like MLS listing data. It needs to be part of the entry, but it doesn’t need a place in the main layout. Or the content is secondary and you’d rather tuck it out of the way.
In the field layout designer for the Property entry type, the Content tab now has a Sidebar Tabs area to the right. You can move any existing tab there with “Move to sidebar”, or create a new one. We create an MLS Data tab, swap its default letter icon for a house icon, and note the user and entry visibility conditions that can limit who sees it. Then we add an MLS Number field and drag in the existing Price and Listing Status fields.
On a property entry, the regular tabs stay where they are, and MLS Data shows up as a panel in the sidebar. The fields in it are standard entry fields. They’re editable and save exactly like the fields in the main layout. They just sit somewhere else.
Find all of the Craft 6 videos at craftquest.io/craft‑6.
Follow along with the full transcript
Search every word, click any line to jump to that moment, and read along as you watch. A CraftQuest Premium feature.
Sign up for Premium