New answers tagged

0

You can use these to get file name and file url respectively (Drupal 7.67 Entity API 1.9): [node:field-document:0:file] [node:field-document:0:file:url]


0

I created a sql query through the Views Rules module and it did the trick.


0

OK, I would then recommend Business Rules to build that kind of data comparison rule. 1- Create a first Variable "Value from Entity field" to store the original value of your field. 2- Create a second Variable "Value from Entity field" to store the current value of your field (i.e. the saved value after updating node) 3- Create an Action "Send an email" ...


0

Ok so here is another way to do it, if you dont want to do it with rules; <?php /** * Implements hook_form_FORM_ID_alter(). * * Alters the user registration form by adding a custom submit handler. */ function custom_user_insert(&$edit, $account, $category) { if (isset($account->is_new) && !empty($account->is_new)) { //...


0

The Rules module will allow you create new OG node after saving a new user account. Just do the following: Create your rule and add an "After saving new user account" event to it In the action section, select create a new entity In the value section, select node In the Content type, select the "your group" Fill the title as you need; you can do this using ...


0

I achieved it this way, with custom module and just those few lines in .module file. as @4k4 user suggested in the comment. <?php use Drupal\node\Entity\Node; function provider_module_user_insert(\Drupal\user\UserInterface $user) { if (($user->get('field_company_type')->value) == 'Provider') { $tid = 12; } elseif (($user->...


0

You didn't mention any errors, but for starters your group name should be: test group {{ user.uid }}


0

I dedicate a blogpost on how to add a custom WebformSubmitHandler to process the data. Read about it here: https://stefvanlooveren.me/blog/how-create-mailchimp-subscription-drupal-8-webform-module


1

This is very easy to do in D8 Rules. Here is an export of a Rule which does what you asked - when a new user is created, it creates a new node (of type article, as an example). It then sets the node author to be the new user. It then sets a field of the new node (the body field, in this case) to a value take from the user (the user's email address, in this ...


Top 50 recent answers are included