Image
Logo Created with Sketch.

Swapcard module

Body

October 2022

Recently contributed to Drupal.org. Enables API connections with Swapcard, with a plugin manager for implementing its various callbacks. Swapcard is a modern web platform for managing all kind of events and related activities.

The module contains base module (API implementation) Swapcard as well as some sort of ready-to-use Swapcard Content module that creates and keeps in sync nodes of several possible content types in Drupal with source in Swapcard app. This includes mapping all default Swapcard fields as well as relations between entities, as it is in Swapcard web app. Additional Swapcard Content Media module adds possibility to sync various Swapcard images in our content.

Videos

Advanced site user

Video file
Image

Swiper formatter module

Body

April 2022

Recently contributed to Drupal.org. Provides Drupal integration with the one of the most modern swiping/sliding libraries. Swiper is mobile first, layout and gestures wise, it provides great amount of options for designing your own widget and related events.

Videos

Site user

Description

Basic usage Examples

Four unique ways with two Field formatter plugins - Swiper images and Swiper markup as well as basic usage in Views with provided Swiper formatter style plugin. Includes go-over all the possible configurations, including a big number of Swiper's parameters and modules provided on config entity form from and info for site builders.

Video file

Advanced site user

Description

Advanced usage in Views examples

At least three different ways for using with Views, default one is covered in a previous video and here is two more: 1. Rendering swiper out of multiple value field (image in our example) from multiple nodes in sequential way; 2. Rendering swiper out of content view_mode with swiper field belonging to each of the items (i.e. nodes).

Video file
Image
Apache Solr logo

Apache Solr integration in Search API

Body

2020

A demonstration of Solr integration within Drupal Search API ecosystem as well as front-end solutions on top of that.

/* JavaScript factory */
/* PHP Drupal way */
Videos

Advanced site user

Video file
Image

MailChimp API integration

Body

2020

Implements PHP library for v3 of the MailChimp API and provides composite Field plugin with FieldFormatter and FieldWidget as well as Block plugin. From MailChimp API and via custom composite Element which holds configuration data for both, plugins retrieve all the data from remote, such as Audiences, Groups, Fields etc. and relations between these. Either by field (render in twig template for instance) or as a block assigned to any region, we are able to render a MailChimp subscription forms (dynamic instance of standard Drupal Form) which we previously "build" for functionality and UI in mentioned configuration on entity form (as a field) or block plugin form.

/* \Drupal\[module]\Form */
/* \Drupal\[module]\Element */
Videos

Site user

Video file

Developer

Video file

Upgrade Drupal 9 to 10 or 11

Basic stuff and Sources for now. To be continued...

Lenient
Code
# Install Composer Lenient for being able to place non-compatible packages.
# @see https://github.com/mglaman/composer-drupal-lenient
composer require mglaman/composer-drupal-lenient
# To allow a package to have a lenient Drupal core version constraint, you must add it to: extra.drupal-lenient.allowed-list
composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/token"]'
# Now you can require the module in question
composer require drupal/token:1.10.0
Rector
Code
# Make sure you are at the project's root. Then, get and copy rector.php
composer require --dev palantirnet/drupal-rector
cp vendor/palantirnet/drupal-rector/rector.php .
# Run check, in this example for a particular module. Remove dry run when ready. 
vendor/bin/rector process web/modules/contrib/token --dry-run