Jump to content

fieldgroups? inheriting fields?


bernhard
 Share

Recommended Posts

hi,

today i found this screen that was totally new for me after importing a template via import/export tool:

post-2137-0-63417600-1433608998_thumb.pn

post-2137-0-07241700-1433609388_thumb.pn

is this because of this part in the export json: "childTemplates":["catalog"], ?

never read about "fieldgroups" concept. any links for me to read? i don't know how i did that - i only did the import ^^ so how would i create such a template manually?

thank you :)

Link to comment
Share on other sites

http://www.flamingruby.com/blog/anatomy-of-fields-in-processwire/

 

In ProcessWire each page implements one template, each template has one fieldgroup attached to it and each fieldgroup consists of varying amount of fields.

Fieldgroup isn't usually something user needs to worry about. Sure, this level exists and is necessary for certain tasks, but it's mostly used behind the scenes by ProessWire itself. What users do see often and should worry about are pages, templates and fields.

 

Link to comment
Share on other sites

It is the first time I exported-imported fields so my findings may be inaccurate. 

The "catalog" text next to the "catalogtest" is indicating that the template is using the same fieldgroup as "catalog" template. That's what is says too ("This template gets it's fields fromt he catalog template"). So they are just "read-only".

When importing, change the name of "fieldgroups_id" in the json, then a new fieldgroup will be created and fields attached to it. At least it worked so here.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...