Can we group different page models in builder.io

Can we group different page models in builder.io ?

Hey @soumya there is no direct way of grouping the page models. However, you can namespaces, or model types, or a custom organization strategy with folders and tags. Here’s how you can effectively manage and group different page models:

1. Use Namespaces in Model Names

One of the easiest ways to group models is by using a naming convention. For example, prefix your model names with the group name:

  • blog-post-page
  • landing-page-home
  • landing-page-product
  • shop-category-page

This way, all related models are grouped together alphabetically in the Builder.io interface.

2. Create Folders and Tags

Builder.io allows you to use tags to categorize and filter your models.

  • Go to the Model Settings of each model.
  • Add a tag like Blog, Landing, or Shop.
  • You can then filter your models by tags in the Builder.io interface.

This approach is useful for large projects with many models.

3. Utilize Model Types

Builder.io has built-in model types like page, section, data, etc. When creating or editing a model, you can specify the type:

  • Use the page type for any models that are full pages.
  • Use the section type for reusable components or sections.
  • Use the data type for content models that are purely data-driven.

This helps organize your content and clarifies the purpose of each model.