Giter VIP home page Giter VIP logo

faiconfieldtype's People

Contributors

raistlfiren avatar santinopetrovic avatar wedgesama avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

santinopetrovic

faiconfieldtype's Issues

FAIconPickerField crashes on save

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 ๐Ÿ˜‰

Some quirks

Just tried with the latest bolt release (3.0.11 ), there seem to be some issues.

  • type in filter does not work
  • no preview of selected icon
  • raises js error on focus (with stored value)
    e.g. "Uncaught Error: Syntax error, unrecognized expression: .fa..fa-automobile"

tested with safari and chrome on Mac OS X (10.11.6)

type: repeater // does not work

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:

Not the correct schema

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.

Value not saved when used as a templatefield

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.

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.