-
Notifications
You must be signed in to change notification settings - Fork 308
Content Fields #15
Comments
This is now in the master branch. Will write a blog post with an example, but allows (almost) complete over riding of fields on content by content type, including addition of sections and removal (e.g. hiding) of the default fields. Has limited usability but it demonstrates that it works. e.g. add the following to Article fields (edit the content type):
This will, add a field called 'yourField', hide the field 'scheduled', hide the section with ID 'form-section-category' and add a section with a field. All of this will be saved / loaded from Mongo for this content type. If you haven't dug into Calipso yet, this is all based on the Forms API outlined in CalipsoForm. |
Hi will this have out of the box support for multiple field items? |
Yes, you can add as many field items as you like - there is no limit. The 'fields' array can have as many items as you like in it. |
Sorry just to clarify one more time, I mean multiple values. Such as Authors: [Bob, John, Jane] |
Yes, the form api lets you create any form field, e.g. {label:'Select Field',name:'object[select]',type:'select',options:["option 1","option 2"],description:'Description...'}, The options field can also be a synchronous function calll (in the case the options need to be more dynamic). HTH Clifton |
Best to take a look at this: http://calip.so/dox/library/Form |
Ability to add any fields to content based on content type. This could be configured in the content type, and initially provided as a JSON structure that describes the fields (as per a mongoose schema). This should be possible to do quite dynamically as any structure can be appended to the 'meta' object (and newer versions of mongoose allow for more dynamic schemas).
The text was updated successfully, but these errors were encountered: