I'm looking for some tips how to achieve following functionality in Drupal 8.

I have a simple view where I list filds, nothing special. One of the fields is a custom text which is rendered as a button html element. Now, I want to assign a special action to this button, it is a automatic creation of new node.

Any help will be appresated.

  • What kind of action would you like to assign to this button? – user72672 Oct 10 '18 at 13:28
  • Automatically node creation of some type where I could fill up the field values with fields generated by the view. – JarJar Oct 10 '18 at 13:44

You can do this with the help of the Rules module. You'll probably want to create a Component (they don't have Events that trigger them, as opposed to full Rules) and connect them to your Views custom field.

Views Bulk Operations (VBO) is a better option though. It's also well integrated with Rules so you can use that instead of a Custom text Field. With VBO you get checkboxes for each Views row and a button for each action you want to perform on a Views row, so you can select more than one row at the same time.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.