Hi Claus, Generally, Template Groups” allow you to have multiple files representing different layouts or even pages within it. There are really a bunch of different ways to work with them (or not)
Let’s assume you have a “Blog” Template group
index.html - Represents the template group - so when you visit the “Blog” page, and view the article listings, that is the page that is referenced
article.html - For example COULD be another page in that group. It stands to reason that the design for a blog article would be different for the index/listing page so you can apply a different layout and create different layout sets to article.html that is specific to the post.
It can actually go deeper than that, but that would be the simplest way I can think to explain the “Why?”
Hoping that’s helpful
Field groups are there so you can create different sets of fields for different types of content. For instance a news/blog story may require different fields to say a product or a business profile.
For example:
A news/blog post might require fields for excerpt, story, related posts, main photo and so on.
A product might require fields for product photos, description, price, sale price, options (product variations such as colours) and so on.
A business profile might require fields for company name, logo, description, address + contact details, map information, link to web site and so on.
Template groups, field groups, and category groups are used in various content management systems and web development frameworks to help organize and structure content and functionality efficiently. These grouping mechanisms provide several benefits:
Organization: Template groups, field groups, and category groups allow you to organize your content and functionality into logical categories or groups, making it easier to manage and maintain a website or application. This can be especially important for larger and more complex projects where there are many templates, fields, or categories to manage.
four in a row : Grouping allows you to have a clear separation between different types of content or functionality. For example, you might have a template group for blog posts and a different one for product pages. This separation makes it easier to apply different styles, layouts, or functionality to each group.
Permission and Access Control: Many content management systems allow you to set different permissions or access controls for different template groups, field groups, or category groups. This means you can control who can edit, view, or manage specific sections of your website or application. For example, you can give only certain users access to edit blog post templates or product categories.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.