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"
Oportunitati de Investitii pentru cetatenii Republicii Moldova
Ghid complet de investitii pentru cetatenii din Moldova. Afla cum sa investesti in P2P, actiuni, ETF-uri si VMS. Oportunitati de investitii accesibile si sfaturi pentru incepatori.
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
Configure Git completion on Ubuntu
Configure git completion on Ubuntu
Add an entity property for the Node which can be used as Search API index field
Convert a Plain Text field to a Formatted (Rich) one
Add JavaScript file/library and JavaScript setting in a renderable array by using #attached property
Drupal attach Js to form or renderable array
Create an admin user with Drush
Create a webform submit Handler
Custom 500-level error page using Apache2
Create a string from a list of array values merged with comma and "and" as the last
Delete a content type programmatically
Add theming suggestions to Custom Entities
Lock/unlock a field
Disable automatic translations import
Entity reference computed field example
A custom Entity reference computed field example
Forced image style generation
Generic way to get a Entity's bundle label
Get current's theme logo
Force Search API To Re-index affected Commerce Entities/Nodes after "Discount" manipulations
Get all the fields of a certain field type
Helpful Mercurial examples
How to create a new Selection Rule(Condition) for Panels
How to change MySQL default port
How to rename a Git branch
.htaccess rewrite rule to keep subdomains when redirecting to the same domain with a subpath
Implementation example of text_format form element on a custom admin page
Limit the views results to current site language when using entity translation
Migrate entity's "changed" time
Page Cache by cookies(or anything available in the HTTP Request)
Override Clientside Validation email implementation to support the old format
How to make unpublished nodes "404 Not Found" instead of "Access Denied" for those without access
Programatically create a profile2 record on user insert example
Page Cache by cookies(or anything available in the HTTP Request) - D9
How to remove your Last name from Facebook
Privacy: a workaround guide to remove your Last name from Facebook
Programmatically delete a field
Programmatically create a text format
Programmatically change the user's password
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
Remove a Webform Submit Handler
Render Plain text field type as HTML
Reload a Drupal page after an Ajax form submit
Retrieve Drupal menu items
Solve missmatched Site UUID in Drupal
Stop browser asking for your location
How to deny by default and stop browser asking for your location
Stop spammers flooding your Google Calendar or how to get rid of the the events you didn't create
Sort on different date fields if one of it is empty(Views)
Use an EntityQueue order in a custom query
Verify, Define and Get Drupal admin paths
Add placeholders from field label tag if missing
Count the number of occurrences of a string in a VARCHAR field
Add homepage link to language switcher, when a Node doesn't have a translation
Allow media (module) tags in wysiwyg with ckeditor 3
Custom Search API index condition in Drupal 7
Create a diff URL between two commits on github
Delete all the terms of specific taxonomy vocabulary
Delete a local commits in Mercurial
Create taxonomy tree programmatically including vocabulary creation
Disable, uninstall and re-install a module / schema with Drush and programmatically
Delete GIT commits
Display hidden directories and files in NetBeans
Generate a random alphanumeric strings
Programmatically delete a field collection items
Error Code: 1728 Cannot load from mysql.proc. The table is probably corrupted
Enforce file download link in Drupal 7
Fade views content on views ajax pager action
Generating Passwords Using crypt(3)
Generate a git patch for a commit
Get all user's groups Drupal 7
Get Node's full path
How to add a tag to the HTML HEAD in Drupal 7
How to create a pseudo-field(field extras) in Drupal
How to delete Drupal Views programmatically
How to export MySQL data directly into CSV
How to Install nano on CentOS
Get maximum and minimum value from an array values in JS
Import / Export a database with mysql from terminal
Increase the phpMyAdmin Session Timeout
Example of how to increase phpMyAdmin Session Timeout
Get the list of admin pages system path
Migrate from different databases with Drupal module "Migrate"
Move the module hook execution weight to be the last in Drupal
Normalize spaces between words in PHP
Programmatically assign permissions to roles
Programmatic example how assign permissions to roles
Programmatically clear/reset cache for a specified Node
Programmatically create a nodequeue with subqueue in Drupal
Programmatically delete a menu and all contained links
Programmatically Create and Enable a view mode for a entity
Properly get entity field values
Programmatically flush certain imagecache preset
Restart mysql server
Reverse table head using views 3.x
Views