Git Product home page Git Product logo

magento2-module-custom-entity's Introduction

Custom Entity Management

What is Custom Entity Magento 2 Module?

This module allow possibility to create and manage custom enities like Brand, Pictogram, ... and to display them in front

Who is developing this module ?

Smile

This module is built by Smile.

Smile is the European leader of Open Source and also a four-times Europe Partner of the the Year (2010-2014), two-times Spirit of Excellence (2015-2016), Global Elite Partner (2017-now), and Regional Commercial Partner (2018) awarded by Magento.

Our multidisciplinary team brings together experts in technology, innovation, and new applications.

Together we explore, invent, and test technologies of the future, to better serve our clients.

Main Features

Create Entity Attribute, Entity Type and Entity

  • Entity Attributes:

This module allows you to create entity attribute like the product attributes.

Entity attributes

  • Entity type:

You can create as many entity types as you need

Entity type

  • Entity:

Create your entities:

Entity add button

Entity list

Entity type and Entity on front

  • Display your entity set and your entities

Entity set

Entity

Documentation

Documentation is available here.

The User Guide is also available on PDF format here

Contributing

You can contribute to this module by submitting issues or pull requests.

For more details, please take a look at the contribution guidelines.

Changelog

All notable changes are recorded in this changelog.

Standards & Code Quality

Smile Lab Quality Suite (Magento) provides coding standards / rulesets that can be used on Magento projects.

magento2-module-custom-entity's People

Contributors

cemag44 avatar cemag44300 avatar delyriand avatar dmkhr avatar guvra avatar janssensjelle avatar maximequeneau avatar pierrelemaguer avatar pigau avatar romainruaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

magento2-module-custom-entity's Issues

The repository has no public declaration of license

You mention supporting open source and We are considering to use your project for our site. However as github's licensing page declares:

From GitHub's licensing help page:

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work. If you're creating an open source project, we strongly encourage you to include an open source license. The Open Source Guide provides additional guidance on choosing the correct license for your project.

Note: If you publish your source code in a public repository on GitHub, according to the Terms of Service, other GitHub users have the right to view and fork your repository within the GitHub site. If you have already created a public repository and no longer want users to have access to it, you can make your repository private. When you convert a public repository to a private repository, existing forks or local copies created by other users will still exist.

https://opensource.stackexchange.com/questions/1720/what-can-i-assume-if-a-publicly-published-project-has-no-license/1721#1721

In short, the only thing you can safely assume is that you have no rights to do anything at all with this code. In the particular case of GitHub, you can fork the repository and view the code, but nothing more.

image

[M2 2.4.0] Can't save a new entity

Hello !

After installing the module on a Magento 2.4 and after some basic test, it seems that a new Entity can't be saved.

After clicking the save button, the following message appears : "Missing required argument $baseTmpPath of Magento\Catalog\Model\ImageUploader."

Capture du 2020-09-23 15-11-03

It seems to be related to the the dependency module: magento2-module-scoped-eav , since the ImageUploader class is instantiated in this module.

Maybe a dependency has changed when the constructor is called here: module-scoped-eav/Model/Entity/Attribute/Backend/Image.php

Thanks !

Remove custom repository

In composer.json, i forced the url of repository to install smile/module-scoped-eav module. After merge PR in parent repository, remove this.

Saving store specific override also sets url_key to null

When switching to a specific store view, change a setting like Description and then saving the Custom Entity, there is also an entity created for url_key override.

Steps to reproduce:

  1. Create an entity and open it, changing storeview in the topleft corner
  2. Uncheck Use Default Value and change a value, in my screenshot below I changed description:
    image
  3. Save the Custom Entity and see the URL key being empty:
    image

The database also contains a NULL value for the url key:
image

Updating layout on entity set not working

We created a new layout (in theme or custom module) for updating the layout for entity_set.

In module: view/frontend/layout/smile_custom_entiity_set_view_attributesetname.xml
In theme view/layout/smile_custom_entiity_set_view_attributesetname.xml

but when we try to change the view.phtml file it's not working and keep asking for the vendor file.

Is there anys uggestion for fixing this behaviour?

Store View filter in admin grid gives error

When I try to filter on a storeview in the admin grid and error is returned:

{
    "error": "The "store_id" attribute name is invalid. Reset the name and try again.",
    "errorcode": "0"
}

Support for PHP 7.3

Is it possible to update the php requirements to:
"php": "~7.1.3||~7.2.0||~7.3.0"

Rich-text description not displayed properly

If I contribute an entity description in the Back-Office including images, on frontend I see :

<img src="{{media url="ENNike_banniere_ete14.jpg"}}" alt="" width="761" height="342">

Probably we should add something to deal with the fact that this field can be wysiwyg (like category description or CMS blocks).

Error using multiselect attribute.

When you add multiselect attribute and try to open an entity you will receive this error

1 exception(s):
Exception #0 (ReflectionException): Class does not exist

Exception #0 (ReflectionException): Class does not exist

#1 Magento\Framework\Code\Reader\ClassReader->getConstructor() called at [vendor/magento/framework/ObjectManager/Definition/Runtime.php:54]
#2 Magento\Framework\ObjectManager\Definition\Runtime->getParameters() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:48]
#3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
#5 Magento\Framework\Validator\UniversalFactory->create() called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
#6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [app/code/Smile/ScopedEav/Ui/DataProvider/Entity/Form/Modifier/Eav.php:273]
#7 Smile\ScopedEav\Ui\DataProvider\Entity\Form\Modifier\Eav->setupAttributeMeta() called at [app/code/Smile/ScopedEav/Ui/DataProvider/Entity/Form/Modifier/Eav.php:237]
#8 Smile\ScopedEav\Ui\DataProvider\Entity\Form\Modifier\Eav->getContainerChildren() called at [app/code/Smile/ScopedEav/Ui/DataProvider/Entity/Form/Modifier/Eav.php:213]
#9 Smile\ScopedEav\Ui\DataProvider\Entity\Form\Modifier\Eav->addContainerChildren() called at [app/code/Smile/ScopedEav/Ui/DataProvider/Entity/Form/Modifier/Eav.php:414]
#10 Smile\ScopedEav\Ui\DataProvider\Entity\Form\Modifier\Eav->getAttributesMeta() called at [app/code/Smile/ScopedEav/Ui/DataProvider/Entity/Form/Modifier/Eav.php:155]
#11 Smile\ScopedEav\Ui\DataProvider\Entity\Form\Modifier\Eav->modifyMeta() called at [app/code/Smile/ScopedEav/Ui/DataProvider/Entity/Form/EntityDataProvider.php:74]
#12 Smile\ScopedEav\Ui\DataProvider\Entity\Form\EntityDataProvider->getMeta() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:330]
#13 Magento\Framework\View\Element\UiComponentFactory->mergeMetadata() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:231]
#14 Magento\Framework\View\Element\UiComponentFactory->create() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:140]
#15 Magento\Framework\View\Layout\Generator\UiComponent->generateComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103]
#16 Magento\Framework\View\Layout\Generator\UiComponent->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93]
#17 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365]
#18 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:68]
#19 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#20 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:65]
#21 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#22 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:271]
#23 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:896]
#24 Magento\Framework\View\Layout->getBlock() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:293]
#25 Magento\Framework\View\Layout\Interceptor->getBlock() called at [vendor/magento/module-backend/Model/View/Result/Page.php:47]
#26 Magento\Backend\Model\View\Result\Page->addBreadcrumb() called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:32]
#27 Magento\Backend\Model\View\Result\Page\Interceptor->addBreadcrumb() called at [app/code/Smile/ScopedEav/Controller/Adminhtml/AbstractEntity.php:67]
#28 Smile\ScopedEav\Controller\Adminhtml\AbstractEntity->createActionPage() called at [app/code/Smile/ScopedEav/Controller/Adminhtml/Entity/NewAction.php:37]
#29 Smile\ScopedEav\Controller\Adminhtml\Entity\NewAction->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#30 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#31 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php:51]
#32 Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#33 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#34 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->___callPlugins() called at [generated/code/Smile/CustomEntity/Controller/Adminhtml/Entity/NewAction/Interceptor.php:23]
#35 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#36 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:151]
#37 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#38 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#39 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:143]
#40 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#41 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#42 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->___callPlugins() called at [generated/code/Smile/CustomEntity/Controller/Adminhtml/Entity/NewAction/Interceptor.php:32]
#43 Smile\CustomEntity\Controller\Adminhtml\Entity\NewAction\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186]
#44 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118]
#45 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#46 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#47 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#48 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#49 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#50 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#51 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
#52 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]

Error on Magento 2.4.5 - Installing schema... Smile\ScopedEav\Setup\SchemaSetup::getEntityWebsiteTable():

During the set:up we have error:

Module 'Smile_CustomEntity': Installing schema... Smile\ScopedEav\Setup\SchemaSetup::getEntityWebsiteTable(): Return value must be of type Smile\ScopedEav\Setup\SchemaSetup, Magento\Framework\DB\Ddl\Table returned#0 /var/www/virtual/website/htdocs/vendor/smile/module-custom-entity/Setup/InstallSchema.php(77): Smile\ScopedEav\Setup\SchemaSetup->getEntityWebsiteTable()

image

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.