We propose a comprehensive suite of management tools for small companies and above.
This solution is built on latest Drupal release which make it ideal for small entreprises and start-up. With EK management you can organize your work and focus on your business development. We provide also a live demo showing all application features for evaluation, documentation and open source codes. Contact us for our cloud solution.
Compliance and quality audit cycles management platform designed for mobility.
U-audit is designed to easily implement compliance and quality audits within any organization.
Simple to setup for any survey type and KPI; easy and friendly to use for any organization; online information sharing for better and faster daily management decisions.
In this article, we will see how we built custom blocks in EK management tools suite with a sample basic block in a module called 'mymodule' used for demo. It can be used to display multiple content, static or dynamic as in the example above.
Create the block script
First we will create a script that will display some content within a block. the script file will be called MyBlock.php and is placed in /mymodule/src/Plugin/Block/.
* Contains \Drupal\mymodule\Plugin\Block\MyBlock.
* Provides a 'Custom module widget' .
* id = "my_block",
* admin_label = @Translation("My custom block"),
* category = @Translation("mymodule Widgets")
Our back-office management solution is now running on version Drupal 8.2.3. The live demo is updated with the latest version.
It has been a long run since the project was initiated while Drupal 8 was still under alpha stage. And there is still plenty of work to do.
One objective is to make a full distribution package including most of the current functionalities available in the demo version. Our main issue with this target is the lack of resources and time. Thus if any of Drupalists are enthusiastic about business process solutions and would like to contribute, they are welcome.
In previous article we explained how we installed the Swift Mailer module and its dependencies.
In this second part, let's see how we configure and implement it to use in our modules to send formated HTML mail with attachment.
First you will need to have Mail system module installed already. There is no particular issue or difficulty here.
1) Configure Swift Mailer
In Swift Mailer configuration (/admin/config/swiftmailer/transport) , we select the following options:
In a previous post from 2015, we described usage of Swift Mailer module to send HTML mail and mail with attachment. At this time, the module was not yet available for Drupal 8.
There is now a version alpha1 available. Let's go through installation process.
Because it has been rather tedious for us, we will try to explain the flow of the process as much as possible to help you save time.
The prerequisite is the installation of composer.
In our case we installed first on Windows inside a folder named F:\Program Files\composer2\.
The installation exe for Windows can be found here.
In Drupal 8 there is a Tour module in core that is very useful when it comes to web applications. In EK management tools we target professional users with small to medium scale companies. They usually have limited resources and time to spend on back office trainings. This is where the Tour module is very convenient to introduce functionalities to users who can quickly grasp the functions available to manage their back office.
We use the Tour functionality in our pages to guide users in their daily tasks like for instance in the form to create a new invoice or project page:
With Drupal 8 there is a very easy and practical way to add this custom view as a configuration that will be installed with the module.
1) extract the configuration data
Navigate to "/admin/config/development/configuration/single/export".
On this page, select configuration type 'view' and configuration name 'My module list' that was created earlier.
2) create configuration install file
You will obtain from the above export a list of configuration data that you can copy and paste into a file called for instance "views.view.mymodule-list.yml";
Simply place this file into the install folder :