We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Why groups?

News and General

Claus's avatar
Claus
35 posts
one month ago
Claus's avatar Claus

Hi,

I would really like to know why there are template groups and not merely templates. The same goes for field groups and category groups. Why is this necessary?

Claus

       
Russ K.'s avatar
Russ K.
141 posts
one month ago
Russ K.'s avatar Russ K.

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

       
Rob Allen's avatar
Rob Allen
3,028 posts
one month ago
Rob Allen's avatar Rob Allen

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.