Giter Site home page Giter Site logo

factorial-io / entity_scaffolder Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 7.0 1.52 MB

Drush plugin to scaffold entities in Drupal

Home Page: https://factorial-io.github.io/entity_scaffolder

License: MIT License

JavaScript 0.14% PHP 77.19% Twig 22.67%
drush drupal drupal-7

entity_scaffolder's People

Contributors

alvar0hurtad0 avatar camtes avatar d34dman avatar danilo-factorial avatar mlnmln avatar solimanharkas avatar stmh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

entity_scaffolder's Issues

Allow the field paragraphs widtget be customizable to another wdget type

Motivation

Imagine that you've to build a custom paragraph widget in order to perform some customizations in the form that could not be achieved by other methods.
FE:
You have a paragraph field with a cardinality of 5 and you want the editor has the five slots open in a time.

Proposed resolution:

Use a configuration item from the yaml that allows to get the paragraph widget and use the current paragraphs_embed as a fallback.
https://github.com/factorial-io/entity_scaffolder/blob/develop/Drush/EntityScaffolder/d7_1/templates/field/paragraphs/instance/feature.content.twig#L42

Run entity scaffolder after scaffolding whole project

It would be great if the entity scaffolder can run the scaffolding process after scaffolding the project. This will create the helper module and the 2 feature modules, so people can reuse/ adapt the text formats.

Translation context is not getting exported

Recently, when I tried using drush este to export strings for translation with context, it was completely ignored (strings were exported, but without any extra context). After digging deeper into the problem I've found we are using modified version of potx module, which has an issue with reading new way of arrays declaration ([] instead of array()). This was already resolved in new version of potx, but from what I see - it would be problematic to move to it at the moment. So in this case I would say a good option would be adapting the patch with a fix for newer version of potx to an existing one we use in ES. Link to patch - https://www.drupal.org/files/issues/2598910-20.patch

Call preprocess in parent themes for FPPs.

Movitation

Imagine a project where you share your codebase for multiple instalations.

In that project, you decide to use a parent theme and a subtheme for every instalation were you can customize the appearence for that specific installation.

In that case may be necessary to execute some preprocess for all subthemes in order to avoid redundant code.

Field widget settings

Entity reference field is missing additional widget_settings / type_settings.
Case with referencing the webform, we are not able to add additional settings like allow_clone, allow_existing, allow_new etc.

Number multi-valued fields.

Motivation

In some multi-valued fields is very useful having the count of the element.

Proposed solution

Add a number on the left of the field like the image:
Screenshot from 2019-03-22 18-24-54

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.