Coder Social home page Coder Social logo

netgen / netgenenhancedselectionbundle Goto Github PK

View Code? Open in Web Editor NEW
19.0 9.0 9.0 341 KB

Netgen Enhanced Selection Bundle is an eZ Publish and eZ Platform bundle that provides a field type that reimplements ezselection field type.

Home Page: https://netgen.io

License: GNU General Public License v2.0

PHP 88.70% CSS 0.47% JavaScript 6.05% Twig 4.78%
php ezplatform ezpublish field-type

netgenenhancedselectionbundle's Introduction

Netgen Enhanced Selection Bundle

Code Coverage Quality Score Downloads Latest stable License PHP

Netgen Enhanced Selection Bundle is an Ibexa Platform bundle that provides a field type that allows defining and storing selection options with identifiers instead of using numerical indexes like ezselection field type built into Ibexa kernel does.

Advantage is the ability to move the options up and down in the field definition without affecting the semantics of the values stored in the fields.

master branch can be installed on Ibexa Platform 4 only.

For Ibexa Platform 3.x, use the 4.x-stable branch.

For eZ Platform 1.x and 2.x, use the 3.x-stable branch.

License and installation instructions

netgenenhancedselectionbundle's People

Contributors

brookinsconsulting avatar emodric avatar hknezevic avatar marioblazek avatar serheydolgushev avatar skovacic3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netgenenhancedselectionbundle's Issues

The bundle is breaking on newer version of eZ Publish 5.4.9.1

I am having an issue with the Netgen enhanced selection bundle.

I am doing an update to eZ Publish 5.4.9.1 everything goes well, but in the end I am getting this message:

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
 The service "ezpublish.search.solr.criterion_visitor.enhanced_selection" has a dependency on a non-existent service "ezpublish.search.common.field_value_mapper.aggregate".

When I do a cache clear I am getting the same message.

I have enabled the legacy search as noted in this link: https://doc.ez.no/display/EZP/Legacy+Search+Engine+Bundle

ezpublish.yml

ezpublish:
    repositories:
        main_repository:
            storage:
                engine: legacy
                connection: default
            search:
                engine: legacy
                connection: default

Still not working.

Disabling the bundle from the EzPublishKernel, let me clear the cache without any issue.

Unable to edit Content Type with ezselection and sckenhancedselection in eZ Platform 2.5.1

Steps to reproduce:

  1. Install eZ Platform 2.5.1.
  2. Install and enable enhanced-selection-bundle:3.1.0.
  3. Create new Content Type and add both Field Types there:
    • ezselection
    • sckenhancedselection
  4. Save the Content Type.
  5. Try to edit previously created Content Type.

Expected Result: content type edit form.
Actual Result: exception is thrown:

Unable to render the form as none of the following blocks exist: "_ezrepoforms_contenttype_update_fieldDefinitionsData_entry_options_entry_widget", "text_widget", "form_widget".

This one is very strange. After spending a lot of time on this, we ended up with a workaround:

  1. Override ezselection_field_definition_edit block in the AppBundle.
  2. Remove {{ form_errors(option) }} line in the overridden ezselection_field_definition_edit block.

Pretty sure there should be a more proper fix.

No empty option available

The is no possibility to add an empty option.

A possible solution is to add an empty option by default if the field is not required based on the field definition. Currently if the field is not required there is no empty option and the first option is selected by default when I create a content having this field type.

Unnecessary comma in sckenhancedselection_content_field.html.twig

Bundle version is 3.3.0

In sckenhancedselection_content_field.html.twig line 16 there might be an unnecessary comma displayed.

Steps to reproduce:

  • Have a content type with this field type with 3 options
  • Create a content and select any of the options except for the last one

The for cycle goes through the available options, and if not the last is selected the "if not loop.last" will be true and displays a delimiter, even if this was the last selected option to display.

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.