How to change a node field value according to this note comment field value?

Hi

I’m a beginner using Drupal 8.

I’d like to make a module to change a field of node for a type of node when someone comment with a comment field value on this node. Like:

Node field is: field_node_state (text type field, default value is “open”)
Comment field is: field_comment_state (text type field)

If someone comment on a node with field_comment_state field value: “Closed”. Then this node’s field_node_state will be changed to “this ticket is closed” from the default value “open”

Someone can tell me how to do that?

Let's discuss the D8.x version update system ,...

It appears that Drupal 8.x cannot be updated from 8.x.x to 8.x.x version without command line interface (CLI) access.

This sad state of affairs exists in part because numerous contrib modules in D8 require the use of CLI installation and maintenance using the CLI composer utility and the CLI drush utility for installation and updating.

The following drupal.org documentation also includes clues that D8 is essentially impossible for site builders to update without CLI access.

Show specific submenu and mark specific item as active when front page or specific node type is opened

My front page is basically a view that lists teasers of node type article. How can I show a specific submenu and mark one item in this submenu as active (+ its parent) when

1) the front page is opened or

2) any article is opened?

I know 2) can be done with the module "Context Active Trail" and "Context UI", but I want to do it without a module and I think the module can't do 1) anyway.

Updating a single field value in Drupal 8

What is/are the proper way(s) to update a single entity field value in D8?

In D7 there was...
https://www.drupal.org/docs/7/api/entity-api/entity-metadata-wrappers

What would be the substitute in D8? Thank you.

My first module Date Reminder for Drupal 8

Hello,

I'm a newbie. This is the first module I've tried to write. It is basically a D8 version of Date Reminder. I'm taking it in baby steps. Step one is to cause it to run when cron runs using hook_cron. That works. Step two is to generate a simple email using hook_mail then there is hook_mail_send to deal with.

Absolute URL in newsletter email

Latest Drupal 8.2.4 version, simple newsletter, SMTP mailer, EVA, Relative to Absolute Filter with all text formats set to convert to absolute.

I have created a few views that display on my newsletter content type as fields. While viewing a newsletter I created on the website all links are showing up as absolutes. When I email the newsletter all links arrive as Relative. Not sure what I'm doing wrong.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x