A tour guide example Arrea Systems Fri, 07/16/2021 - 08:30 Drupal 9.2 has introduced a new tour framework replacing Joyride with Shepherd. Try it live.
]]>" />
In previous article, we have built a simple custom view from sales data. In this article we will show how to create a relationship with another table, add access control and a menu link. You can also watch the video with complete built.
]]>
Views is an integrated function from Drupal which allows to build content views from available data. Content views are any filtered data display in a form of table, list or grid.
]]>
If you use swiftmailer + simplenews, you may want to send html email with custom css.
To achieve that,you have to customise 2 twig templates.
The first template is the default template that is provided by swiftmailer: simplenews-newsletter-body.html.twig.
You can use this template to build your own email body with content you like to use. For example, in the template below, an hero image is inserted using table layout.
]]>Context
EK application has a module that store personal documents for user. When user account is deleted, those documents may be transferred to another account.
To achieve that, we need to alter the user account cancel form when building the form, validating and submitting it.
Let's review the 3 steps.
The form before altering it looks like this
We need to add a field to select another user account to which the document of the canceled account will be moved to.
To achieve that we Implements hook_form_alter() in MyModule.module:
]]>