concrete5 Theme Options
The Theme Options makes it easy to include a dashboard options page in your Concrete5 theme. It was built so developers can concentrate on making the actual theme rather than spending time creating an options panel from scratch.
- text: Textbox
- textarea: Textarea
- checkbox: Checkbox
- radio: Radio Button
- select: Select Box
- color: Color Picker
- image: Image Selector
- page: Page Selector
- divider: divide entries with hr
- header: header
options.php file can be place in any of these paths:
- /application/config/options/options.php
- /options/options.php
- /packages/whale_options/options/options.php
Every option saved as a separate entry on c5 Config table. You can read each entry via core config api.
$logo = \Core::make('config/database')->get('options.logo');
for more details check this integration tutorial.
- id: element unique id
- type: field type
- title: dashboard title
- description: dashboard description
- placeholder: entry placeholder (types: text & textarea)
- style: entry inline style
- class: entry class
- container_class: entry container class (e.g: col-xs-4)
- value: initial value
- options: array of key/values (types: select, radio)
- method: name of method in package controller which run on save (it receives the field value)
- 1.1.0 : 2018-12-30
- Minor changes
- 1.0.0 Initial Release