关闭

Modify Drupal entityreference_autocreate (ERA) module

该项目收到15 来自天才威客的竞标,平均竞标价格为$233 USD

为像这样的项目获取免费报价
雇主工作
项目预算
$30 - $250 USD
全部竞标
15
项目描述

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.

在寻找赚取金钱的机会?

  • 设定您的预算和时间框架
  • 大致描述您的建议方案
  • 为您的工作领取工资

雇用同样在该项目上竞标的威客

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