1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

Fabirk Field Element with remove special chars

Discussion in 'Community' started by yunoshev, Aug 23, 2021.

  1. yunoshev

    yunoshev Yunoshev Victor

    Level: Community
    Hi!
    Feel free to download Fabrik element field plugin with "remove special chars" option before store to DB (integer & decimal).
    Useful for any quantity and currencies fields which many users fill by copy-past action.
    Supports Fabrik versions 3.9.2, 3.10.
    [​IMG]
     
    Last edited: Aug 23, 2021
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    Fabrik is open source and surely you are allowed to create own plugins.

    But I think it is really no good idea to create plugins with the same name as existing Fabrik ones.
    Additionally your xml doesn't mention that it is a modified copy, not provided by Fabrik.

    Installing your field-plugin will override the Fabrik one, so changing every existing field element, mixing up Fabrik versions, mixing up updates etc etc

    So PLEASE create own plugins with own, unique names, mentioning the original, mentioning you as an author, setting up correct xml file ...
     
    lousyfool likes this.
  3. yunoshev

    yunoshev Yunoshev Victor

    Level: Community
    @troester ,
    Ok, I've got you.
    But I only did some improvements into the original plugin. That's why I think no needs to rename it.
     
    Last edited: Aug 23, 2021
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    a) yeah, please don't publish modified plugins with the same name.

    b) why not just add a PHP validation in 'replace' mode that does this to fields that need it? Achieves exactly the same thing, doesn't require modifying core code.

    c) if you want to post a diff of your changes here, I'll consider folding it in to the main code.
     
    lousyfool likes this.
  5. troester

    troester Well-Known Member Staff Member

    Level: Community
    Or create a GitHub pull request.
     
  6. yunoshev

    yunoshev Yunoshev Victor

    Level: Community
    Because I support the DB created on Fabrik with more than 500 different lists and ~30000 elements. So, it is better to me just toggle some options in the element settings. It saves my time and let me focus on other things.
    F.e. I've created and improve Fabrik list plugin based on DataTables (+Ajax on lists with more than thousands records).

    Ok, I'll post it and one for textarea element with readonly option.
     

Share This Page