How to use NPM Rest API to get audit (npm audit) result
Introduction Npm has a tool called: npm audit which reports if your packages or…
April 12, 2020
In our previous post, where we saw How to configure comments module
In this post, we will see how we can use Rules module to get email notification for each comment posted.
That is it. Now, when someone write a comment. You will get an email notification. Rules is very powerful and handy module. It has lot of workflows, and you can configure email notification for a number of workflows.
Important to note that, this module is not having good documentation. And to add tokens or the variables in the mail, traditional tokens will not work. You need to use twig conventions.
See examples:
{% raw %}
{{ node.title }}
{% endraw %}
{% raw %}
{{ comment.entity_id.entity | entity_url }}
{% endraw %}
{% raw %}
New comment posted at {{ comment.entity_id.entity | entity_url }}
{% endraw %}
Hope it helps. Thanks for reading…
Introduction Npm has a tool called: npm audit which reports if your packages or…
Introduction You already have a content type with one or more fields in it…
Introduction You have a running kubernetes setup, and have a webservice (exposed…
See the code below: The output will be 4 columns separated by comma. You can…
Introduction There were few files that I need to take backup from a machine that…
This will take backup of your passed database name, to the passed folder. It…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…