GithubHelp home page GithubHelp logo

doggershusky / silverstripe-fa-picker Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 4.38 MB

Font Awesome (fontawesome) 6.x icon picker for Silverstripe 4.x

JavaScript 92.58% PHP 5.81% Scheme 0.02% SCSS 1.59%

silverstripe-fa-picker's People

Contributors

dependabot[bot] avatar doggershusky avatar mooror avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

silverstripe-fa-picker's Issues

Mixing FontAwesome with custom icon sets

As far as I can tell, it is currently not possible to include custom icons without disabling built in FA icons using:
disable_builtin_fontawesome: true

I would like an option to use built-in icons alongside any custom category, adding another tab in the picker field with a custom name, so you could choose between FA and custom icons side by side.

Is there any way to do this now, or is it possible to implement the feature?
I am willing to examine the code and submit a pull request myself, in case this feature is desired by anyone else.

translatable

Hello, can you make the texts translatable in the backend?

e.g. Filter, All, Solid, Regular, Brands

How to enable brands

This may seem like a silly question, but with the free version of font-awesome I cannot for the life of me get the brand icons to display.

When I used this module with font awesome 5 I was able to get them to display but not with version 6 and that is with me trying to use the default set and trying to use 6.5.1 with the following config:

FontawesomeIcons:
  icon_yml_location: 'app/fontawesome/icon-families.yml'
  free_css_cdn_version: '6.5.1'

Screenshot 2024-03-26 at 20-36-36 Silverstripe - Edit Page

Too few arguments error on build

I am currently using version 3 for its silverstripe 5 support

When I attempt to run a dev/build?flush=1 I get the following error:

[Emergency] Uncaught ArgumentCountError: Too few arguments to function BucklesHusky\FontAwesomeIconPicker\Tasks\FontAwesomeUpdater::generateFontAwesomeIconCache(),
0 passed in /.../buckleshusky/fontawesomeiconpicker/src/Extensions/FontAwesomeUpdater.php on line 18 and exactly 1 expected

This can be fixed by updating the TasksFontAwesomeUpdater::generateFontAwesomeIconCache() call in FontAwesomeUpdater.php line 18 from:

TasksFontAwesomeUpdater::generateFontAwesomeIconCache();

To:

$path = Config::inst()->get('FontawesomeIcons', 'icon_yml_location') ? Config::inst()->get('FontawesomeIcons', 'icon_yml_location') : false;
TasksFontAwesomeUpdater::generateFontAwesomeIconCache($path);

Or if you make the getIconYMLLocation() method public instead of private you could use:

$path = TasksFontAwesomeUpdater::getIconYMLLocation();
TasksFontAwesomeUpdater::generateFontAwesomeIconCache($path);

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.