Articles
Technical articles about PHP, Drupal, system architecture, and web development.
Adding DynamoDB Local to DDEV
Software Engineers build software to replace themselves
TimescaleDB with DDEV PostgreSQL
Start using these modern Git commands instead "git checkout"
Focus an input with Alpine.js
Record a New Relic deployment using Guzzle 7
A PHP script snippet to record a New Relic One deployment using Guzzle 7
A complete Drag and Drop file uploader with progressbar using Wire Drupal, Alpine.js and Tailwindcss
Drag and Drop file uploader with progressbar using Wire Drupal
Override default tailwindcss inline <code> tag styling
How to override style and remove the backticks around inline code added by the Tailwind CSS typography plugin
Live toggle switch component in Drupal with Wire
Create a Live toggle switch component in Drupal with Wire to change the Node status
Use database replica target in entity query
Database replica usage example in Drupal
Get the Content Entity of current route
Retrieve the Content Entity objects from Drupal's current route
How the Wire demo works
Hotwire with Drupal
Extend drupalMedia CKEditor5 plugin with additional attributes
A guide to adding additional toolbar items to drupalMedia object in CKEditor 5
Delete Git branch locally and remotely
Load Disqus Comments on demand/click
Improve page performance by loading Disqus on click
Get a list of fields by type
Get a list of fields by type weather it's entity reference, boolean, date and others in Drupal
Drupal error caused by CTools and Pathauto incopatibility: The context is not a valid context
Programmatically add attributes to Menu Link Content
How to add Menu Link Content attributes programmatically
Restrict Drupal route to be accessible only to authenticated user
Restrict non-authorized users access to route or how to allow only authenticated users to access a page
Check user for given roles
Check a user for a specific role in Drupal
Create an admin user with Drush
Add an entity property for the Node which can be used as Search API index field
Add theming suggestions to Custom Entities
Add JavaScript file/library and JavaScript setting in a renderable array by using #attached property
Drupal attach Js to form or renderable array
Convert a Plain Text field to a Formatted (Rich) one
Custom 500-level error page using Apache2
Lock/unlock a field
Create a string from a list of array values merged with comma and "and" as the last
Create a webform submit Handler
Delete a content type programmatically
Disable automatic translations import
Configure Git completion on Ubuntu
Configure git completion on Ubuntu
Entity reference computed field example
A custom Entity reference computed field example
Forced image style generation
Get all the fields of a certain field type
Generic way to get a Entity's bundle label
Force Search API To Re-index affected Commerce Entities/Nodes after "Discount" manipulations
How to create a new Selection Rule(Condition) for Panels
Helpful Mercurial examples
Get current's theme logo
How to change MySQL default port
How to make unpublished nodes "404 Not Found" instead of "Access Denied" for those without access
.htaccess rewrite rule to keep subdomains when redirecting to the same domain with a subpath
How to rename a Git branch
How to remove your Last name from Facebook
Privacy: a workaround guide to remove your Last name from Facebook
Implementation example of text_format form element on a custom admin page
Migrate entity's "changed" time
Limit the views results to current site language when using entity translation
Override Clientside Validation email implementation to support the old format
Programatically create a profile2 record on user insert example
Page Cache by cookies(or anything available in the HTTP Request)
Programmatically change the user's password
Programmatically create a text format
Programmatically delete a field
Programmatically enabled a payment method in commerce
Push existing repository to a different remote repository server saving the commits history with git
Recursively search the haystack for a specific key and return it's path
Reload a Drupal page after an Ajax form submit
Page Cache by cookies(or anything available in the HTTP Request) - D9
Render Plain text field type as HTML
Remove a Webform Submit Handler
Retrieve Drupal menu items
Sort on different date fields if one of it is empty(Views)
Stop browser asking for your location
How to deny by default and stop browser asking for your location
Use an EntityQueue order in a custom query
Solve missmatched Site UUID in Drupal
Stop spammers flooding your Google Calendar or how to get rid of the the events you didn't create
Verify, Define and Get Drupal admin paths
Add placeholders from field label tag if missing
Create a diff URL between two commits on github
Add homepage link to language switcher, when a Node doesn't have a translation
Allow media (module) tags in wysiwyg with ckeditor 3
Count the number of occurrences of a string in a VARCHAR field
Delete all the terms of specific taxonomy vocabulary
Create taxonomy tree programmatically including vocabulary creation
Custom Search API index condition in Drupal 7
Delete a local commits in Mercurial
Programmatically delete a field collection items
Delete GIT commits
Enforce file download link in Drupal 7
Display hidden directories and files in NetBeans
Fade views content on views ajax pager action
Error Code: 1728 Cannot load from mysql.proc. The table is probably corrupted
Generate a git patch for a commit
Disable, uninstall and re-install a module / schema with Drush and programmatically
Generating Passwords Using crypt(3)
Get Node's full path
Get all user's groups Drupal 7
Get maximum and minimum value from an array values in JS
How to add a tag to the HTML HEAD in Drupal 7
Generate a random alphanumeric strings
How to create a pseudo-field(field extras) in Drupal
How to Install nano on CentOS
Increase the phpMyAdmin Session Timeout
Example of how to increase phpMyAdmin Session Timeout
How to export MySQL data directly into CSV
Import / Export a database with mysql from terminal
How to delete Drupal Views programmatically
Migrate from different databases with Drupal module "Migrate"
Get the list of admin pages system path
Normalize spaces between words in PHP
Move the module hook execution weight to be the last in Drupal
Programmatically assign permissions to roles
Programmatic example how assign permissions to roles
Programmatically clear/reset cache for a specified Node
Programmatically delete a menu and all contained links
Programmatically Create and Enable a view mode for a entity
Programmatically flush certain imagecache preset
Programmatically create a nodequeue with subqueue in Drupal
Properly get entity field values
Remove non-utf8 characters from string
Reverse table head using views 3.x
Views