Additional Attributes

Add additional form fields for user, blog and article. This feature is really helpful when you need to add additional information apart from the native ones. To enable this feature in a theme just make changes in your theme's config.json as described below.

You can specify any field as required or not by adding required attribute to the field.

For adding additional attributes with article or user just replace the "blog" key in config.json file with article/user and add the fields as per your requirement and place them inside config file.

If extended attributes are enabled for any entity, then admin can see the form fields with those attributes while inserting or updating any entity i.e. user, article or blog.

Sample Code

{
	"module": {
		"event": {
			"enabled": true
		},
		"styling": {
			"enabled": true
		},
		"page": {
			"contentEditor": {
				"enabled": true
			}
		},
		"cta": {
			"keywords": {
				"cta_1": "This is the place id for the placement of Call to Action 1",
				"cta_2": "This is the place id for the placement of Call to Action 2",
				"cta_3": "This is the place id for the placement of Call to Action 3",
				"cta_4": "This is the place id for the placement of Call to Action 4"
			}
		},
		"blog": {
			"extendedAttributes": [
				{
					"name": "date",
					"label": "Date",
					"type": "inputbox",
					"datepicker": true,
					"required": true
				},
				{
					"name": "datetime",
					"label": "Date Time",
					"type": "inputbox",
					"datetimepicker": true
				},
				{
					"name": "addtional_description",
					"label": "Additional Description",
					"type": "inputbox"
				},
				{
					"name": "hobbies",
					"label": "Select Hobby",
					"type": "dropdown",
					"options": {
						"listening_music": "Listening Music",
						"reading_books": "Reading Books"
					}
				},
				{
					"label": "Favorite Actors",
					"type": "checkbox",
					"name": "fav_actor",
					"options": {
						"tom_cruise": "Tom Cruise",
						"liz_hurley": "Liz Hurley"
					}
				},
				{
					"label": "Mother Tongue",
					"type": "radio",
					"name": "mother_tongue",
					"options": {
						"hindi": "Hindi",
						"english": "English"
					}
				},
				{
					"name": "big_description",
					"label": "Large Description",
					"type": "textarea"
				},
				{
					"name": "document",
					"label": "My Documents",
					"type": "file"
				}
			]
		}
	}
}