Code Monkey home page Code Monkey logo

whale_options's Introduction

concrete5 Theme Options

Description

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.

Supported field types:

  • 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

Define Options:

options.php file can be place in any of these paths:

  1. /application/config/options/options.php
  2. /options/options.php
  3. /packages/whale_options/options/options.php

Read Options:

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.

Option File arguments:

  • 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)

Changelog

  • 1.1.0 : 2018-12-30
    • Minor changes
  • 1.0.0 Initial Release

whale_options's People

Contributors

shahroq avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.