---
title: 'Custom Field Grouping'
url: 'https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351'
markdown: 'https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351.md'
date: '2026-06-21'
description: 'Within custom fields, is it possible to have groups of custom fields that you could add to, remove, and potentially reorder? For example, say through the admin'
---

[Themes & Styling](https://getgrav.org/forum/themes-styling)

#  Custom Field Grouping 

  Started by Dan Hart 9 years ago · 7 replies · 1599 views    

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-19933 "Permalink") 

Within custom fields, is it possible to have **groups of custom fields** that you could add to, remove, and potentially reorder?

For example, say through the admin panel I want the user to be able to create a list of car parts where each part item has a title, image, and price. There is a predefined list of categories (e.g. Engine, Exhaust, Tires, etc...)

**...high-level workflow would be something like:**

1. User enters part items for "Engine" category (e.g. Engine Part 1, Engine Part 2, Engine Part 3, etc...)
2. User enters part items for "Exhaust" category (e.g. Exhaust Part 1, Exhaust Part 2, Exhaust Part 3, etc...)

I've got some of this done already as I'm able to enter part items, but they're just not grouped in any way. What's the best way to approach this?

last edited 10/10/17 by Dan Hart

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-19937 "Permalink") 

Grouping fields can be done with the [list field](https://learn.getgrav.org/forms/blueprints/fields-available#the-list-field) or with the [fieldset](https://learn.getgrav.org/forms/blueprints/fields-available#the-fieldset-field).

Is that what you need?

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-19941 "Permalink") 

Hey Paul, I have a field list already but will look at field set and see if that’s what I need.

Thanks!

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-20002 "Permalink") 

Within the Grav Admin I'd like to have custom tab that contains grouped entires that a user could add to. Take a look at the attached screenshot; I have a Field List that contains a title and entries. Currently that is somewhat hardcoded in my YAML file as I have "header.fieldlist1" and "header.fieldlist2" but I don't feel like that is very dynamic.

Ideally I would like the user to have the ability to add another category like "Product Type 3" (or whatever they want to name it) and then within the category add the list items they want. Some gold plating on all of this would be if the user could drag to reorder the categories (similar to the list items)

Is this even possible?

![09 PM|690x366](https://cdn.getgrav.org/forum/files/6d/6d039e85bd4d780e2629bbd30e38a1a516c1656ce30f3333a7dc6bf550edaade.png)

Thanks!
Dan

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-20003 "Permalink") 

@dan you can achieve that with nested list field

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-20008 "Permalink") 

Hey @dimitrilongo thanks for the reply. Can you explain a bit more about the nested list field? I'm looking through the documentation and not finding a bunch on it. Thanks!

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-20014 "Permalink") 

you nest field list inside list field

![34|690x396](https://cdn.getgrav.org/forum/files/85/852921d6bd21a301e800d763f249ababc2729cedd274c70c61b59b4b2fd687a6.png)

```yaml
            header.product:
              name: buttons
              type: list
              collapsed: true
              label: Product Type
              fields:
                .producttype:
                  type: text
                  label: Product
                .productitem:
                  name: socials
                  type: list
                  collapsed: true
                  label: Product Items
                  fields:
                    .productitle:
                      type: text
                      label: Product Title
```

 👍 2 

 [9 years ago](https://getgrav.org/forum/themes-styling/custom-field-grouping-t7351#post-20015 "Permalink") 

Nice! That worked perfectly. I have been so impressed with how flexible Grab is. Thanks for the help!!!!

[Log in](https://getgrav.org/login?return=%2Fforum%2Fthemes-styling%2Fcustom-field-grouping-t7351) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Installing Photographer Site skeleton?](https://getgrav.org/forum/themes-styling/installing-photographer-site-skeleton-t9506)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by MarkP, 2 days ago |  | 2 | 65 | [22 hours ago](https://getgrav.org/forum/themes-styling/installing-photographer-site-skeleton-t9506 "by MarkP") |
| [Modular Pages - Change the Module Using a Submenu](https://getgrav.org/forum/themes-styling/modular-pages-change-the-module-using-a-submenu-t9507)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by TomW, 1 day ago |  | 0 | 33 | [1 day ago](https://getgrav.org/forum/themes-styling/modular-pages-change-the-module-using-a-submenu-t9507 "by TomW") |
| [Inheriting a Theme does not quite work correctly](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by themetman, 1 week ago |  | 1 | 135 | [6 days ago](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501 "by themetman") |
| [Grav2 with Quark2 – All pages in the hamburger-menu of a one-pager](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by AH, 3 weeks ago |  | 1 | 250 | [7 days ago](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485 "by AH") |
| [\[quark\] mobile menu as the modular page menu](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by Bruno, 4 years ago |  | 6 | 1428 | [7 days ago](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132 "by AH") |
