Comments (2)
Both default
and required
work fine for me with Kirby 3.5. It seems that default value are handled differently when added to already existing pages, maybe that's what was at fault.
I'm closing this, please don't hesitate to reopen if it still happens.
from kirby-color-palette.
Howdy Sylvain
Revisited this simple but useful plugin again. Really like the simplicity of it.
After few rounds of T&E I got the default option to work and not display an error page (error if the user selects no colour option):
In section 3.5 on the README.md for the plugin it states:
# structured colours
palette:
type: color-palette
default: blue
options:
blue:
background: '#135fdc'
border: '#0438c7'
orange:
background: '#f6917e'
border: '#ef6a57'
This displays an Error page for me in various Kirby versions. Currently running 3.5.7.1.
But the following combination does work:
# structured colors
palette:
type: color-palette
default:
background: '#135fdc'
border: '#0438c7'
key: blue
options:
blue:
background: '#135fdc'
border: '#0438c7'
orange:
background: '#f6917e'
border: '#ef6a57'
So in my case at least the background and border (and others if in question) attributes need to be defined with the Default along with a key value of the configured color optionn (key: blue in this case) and with one indent.
Hope this is useful.
Best,
Jรณn
from kirby-color-palette.
Related Issues (20)
- Structured color themes and Query option HOT 1
- Feature request: multiple selections HOT 3
- UI enhancement suggestions HOT 4
- Colour Extraction mode variance HOT 2
- The required option doesn't work HOT 1
- Use the palette extraction of file level
- Enable structured colors with dynamic options HOT 4
- dont work with Conditional fields (when:)
- Extract colors from image field
- Issue when using as single field in layout settings
- Bordercolor also on deselect colors
- Color Rows
- Define colors in the config.php as options
- Improve accessibility of panel controls
- this.extracted is undefined
- allow transparent, reset or clear option HOT 1
- display all options in the template HOT 1
- Can't access palette array in a block
- The plugin is missing one german translation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-color-palette.