This repository has been archived by the owner on Jan 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Overview
bonny edited this page Aug 20, 2012
·
8 revisions
Simple Fields consists of of fields, field groups and post connectors.
Field Group
- Have an ID, a name, and a description
- have fields
- can be repeatable
- is a group of fields that belong together
- uses a post connector to connect the field group to a post
Field groups can be used for multiple post connectors, so you can have a large combination of fields for your post, but still you only have to set up a field group once.
Field
- are of different types: file, text, date, color, and so on
- have id, name, description and a slug
- may have options, for example radiobutton and dropdown have options
- are what will show up on your post edit screen
- are added to/will belong to a field group
- is always connector to one (and only one) field group.
Post connector
- is a collection of field groups
- is what you finally attach/assisgn to a post to make all fields available to that post
- have a name and an ID
- have field groups attached/connecte
- connects to post_types
- a post type can have a specific post connector as default
Lagras som meta keys simple_fields_fieldGroupID%
simple_fields_meta_box_output skriver ut en fältgrupp simple_fields_meta_box_output_one_field_group() körs för varje fält som ska skrivas ut