Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

How do you create custom fields? #260

Open
jackygrahamez opened this issue Apr 17, 2014 · 1 comment
Open

How do you create custom fields? #260

jackygrahamez opened this issue Apr 17, 2014 · 1 comment

Comments

@jackygrahamez
Copy link

I am trying to figure out the custom fields component to the content type. I looked at this example
http://calip.so/first-pass-at-configurable-content-types.html

I entered this array of JSON objects into Custom Fields Definition: for plainlayout (a module I downloaded)

Fields  
[
   {"Name":"Content[Attending]","Type":"Select","Label":"Attending?","Instruct":"Will You Be Able To Attend?","Options":["Hell Yeah!","Sorry :("]},
   {"Name":"Content[NumAttending]","Type":"Text","Label":"# Attending","Instruct":"It Would Be Great If You Can Let Us Know How Many People Are Attending."},
   {"Name":"Content[Song]","Type":"Text","Label":"Song Request","Instruct":"Suggest A Song To Dedicate To Us On The Evening!"},
   {"Name":"Content[Message]","Type":"Textarea","Label":"Message","Instruct":"Leave Us A Personal Message."},
   {"Name":"Content[Code]","Type":"Text","Label":"Code","Instruct":"Your Code."}
  ]

Where are these fields supposed to appear in the content pages? Or to re-phrase how would you use these custom fields? So far I don't see any sign that they exist except in the database record.

@richtera
Copy link
Collaborator

To pull them into the content pages you would need to pick them up within new templates in your theme. By adding them here they should show up in the admin pages to add the information to the content records.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants