Modify Drupal entityreference_autocreate (ERA) module

Este projeto recebeu 15 ofertas de freelancers talentosos com uma oferta média de preço de $233 USD.

Obtenha orçamentos gratuitos para um projeto como este
Orçamento do projeto
$30 - $250 USD
Total de Ofertas
Descrição do projeto

Modify Drupal entityreference_autocreate (ERA) module to autocreate a entity with the same title.

The ERA module's code (considering its usefulness) is very lightweight and very well documented.

Currently, ERA will check to see if a node exists depending on the name of the title. If title exist, ERA will NOT autocreate a new node.

The issue with this, in 'our use case' is that sometimes we DO WANT ERA to autocreate a new node with the same title.

We feel the solution is to let the user decide whether or not to autocreate the node, by clicking on a toggle button, aka switch.

So for this project:

Create a toggle button next to the ERA input box. Modify ERA to evaluate the toggle button.

We will also need for you to create a new 'data' attribute ie. 'data-era-toggle' on ERA's existing input selector.

This attribute is for a joint project. As we are also working on a views ui dialog (similar to the token ui dialog drupal admin has) in where the user can select from existing items and the nid is applied to the 'data' attribute.

Modify ERA to also get this data-era-toggle attribute, ie. if not empty && is_numeric, use this nid, in its evaluations. Currently ERA uses entity id retrieved from the autocomplete or the value in the input box to determine if the item exist. By supplying the nid, we can skip all that and target the nid perfectly. And if it's an empty value (no nid), let ERA do its normal validations.

The only details left is the js, which is simple click,focus,removeClass,addClass,etc.. The button styling we will post in later project, along with other styling requirements for other elements.

Habilidades requeridas

Querendo fazer dinheiro?

  • Defina seu orçamento e o prazo de entrega
  • Descreva sua proposta
  • Receba pelo seu trabalho

Contratar freelancers que também ofereça neste projeto

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online