Giter VIP home page Giter VIP logo

jcb-community-packages's Issues

Naming Convention for Fields

Steps to reproduce the issue

Create a field called "model" and use it in your components admin view.

Expected result

It should work...

Actual result

...but there's an error message: "call member function selectionTranslation() on string."

Additional comments

Well due to earlier mistakes, I found the reason a lot quicker:
https://github.com/vdm-io/Joomla-Component-Builder/issues/686

The fix was a rename to another name, away from the name "model".

So I recommend to add the naming convention url to the description of the property "name" for any field, too.

That's all, it's not a bug, it's intentional. I just recommend to adjust the docu.

Optional arguments for field type "media" are missing

Description for Enhancement

Since I updated my field types due to this issue (https://github.com/vdm-io/Joomla-Component-Builder/issues/788) a minute ago, I recognized two optional attributes are missing for the field type "media".

I work with very small images, so the default size of 200px height stretches the images a lot...

Enhancement:

Add the missing parameters to the Field Type "media" / the field type updater:

Properties:
preview_width
preview_height

Adjustable: true
Mandatory: false
Translateable: false
Value: 200

Description:
(optional) sets the max-width of preview image (default: "200").
(optional) sets the max-height of preview image (default: "200").

Here's the official Joomla Info:
https://docs.joomla.org/Media_form_field_type

grafik

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.