raistlfiren / faiconfieldtype Goto Github PK
View Code? Open in Web Editor NEWA new field type to allow users to select font awesome icons. The field is based off the icon picker - http://mjolnic.com/fontawesome-iconpicker/
License: MIT License
A new field type to allow users to select font awesome icons. The field is based off the icon picker - http://mjolnic.com/fontawesome-iconpicker/
License: MIT License
Hi,
Using bolt 3.4.8, the field type raises an error on save.
Call to a member function convertToPHPValue() on string
I reckon this is related to the change on the getStorageType
method since 3.3. See this issue bolt/bolt#6413
PR on its way ๐
Just tried with the latest bolt release (3.0.11 ), there seem to be some issues.
tested with safari and chrome on Mac OS X (10.11.6)
Breaks the admin panel if this field type is used inside repeater.
I tried to fix it, maybe I can do a pull request later.
If I remove the script tag from the twig template the admin panel works (of course the fa icon picker not)
This way it could probably be fixed:
Hello. I'm trying out your plugin. I'm having some problem with DB schema after adding the field into contenttypes.yml
:
Table bolt_blocks is not the correct schema: invalid column icon
Update the database
After clicking update nothing changes.
Here is my contenttypes.yml
:
blocks:
name: Blocks
singular_name: Block
fields:
icon:
type: faiconpicker
hidden: false
title:
type: text
class: large
group: "Block"
slug:
type: slug
uses: [ title ]
content:
type: html
height: 150px
contentlink:
type: text
label: Link
placeholder: 'contenttype/slug or http://example.org/'
postfix: "Use this to add a link for this Block. This could either be an 'internal' link like <tt>page/about</tt>, if you use a contenttype/slug combination. Otherwise use a proper URL, like `http://example.org`."
image:
type: image
attrib: title
extensions: [ gif, jpg, png ]
show_on_dashboard: true
viewless: true
default_status: published
searchable: false
icon_many: "fa:cubes"
icon_one: "fa:cube"
Also saving the content doesn't work.
Is this plugin issue or am I doing something wrong? Thanks for your help.
Hi,
I just installed your awesome extension. It works fine when I use it as a "normal" field. But I would like to use it as a Templatefield. When I do so, it does appear on the edit page but the value is not saved in database (sqlite). It just shows me a empty value ("").
Did you try it this way ? Do you have an idea about where the problem could come from ?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.