Tired of published and unpublished content looking the same? Give your editorial view an immediate upgrade! Learn how to use the Asset Injector module and a few lines of CSS to add a clear, visual indicator (like an orange border) to distinguish unpublished content on your site. Quick steps for a major workflow improvement!
Ditch the subscription model! Learn how to build your own ultra-fast, modern, and private VPN using a Virtual Private Server (VPS) and the cutting-edge WireGuard protocol. This guide shows you how to set up an on-demand solution perfect for ensuring complete privacy. Get the quick steps for total internet freedom and control!
Stale Cache Syndrome? 🤢 If your high-traffic Drupal site uses Varnish via the Advanced Varnish module, you might notice your cache isn't purging automatically after content is updated or deleted.
Learn how to write simple custom code using Drupal hooks (hook_node_update and hook_node_delete) to force instant cache invalidation (PURGE) requests to Varnish whenever a node is changed. This essential fix ensures your high-speed setup always delivers the freshest content to your users! 🚀
Learn how to write simple custom code using Drupal hooks (hook_node_update and hook_node_delete) to force instant cache invalidation (PURGE) requests to Varnish whenever a node is changed. This essential fix ensures your high-speed setup always delivers the freshest content to your users! 🚀
Problem: Your client needs a Views listing for the homepage that excludes any nodes currently being displayed in a menu. Out-of-the-box Views filters can't quite handle this specific logic.
Solution: Learn how to leverage hook_views_query_alter() to dynamically modify your Views query! This advanced Drupal technique allows you to perform a LEFT JOIN on the menu_link_content_data table and add a WHERE clause to filter out nodes that have an associated menu link, giving you precise control over your content listings.
Solution: Learn how to leverage hook_views_query_alter() to dynamically modify your Views query! This advanced Drupal technique allows you to perform a LEFT JOIN on the menu_link_content_data table and add a WHERE clause to filter out nodes that have an associated menu link, giving you precise control over your content listings.
Tired of writing verbose Drupal 8+ code just to load, save, or delete an entity? 😩 Streamline your development with a single, powerful helper function: entityManage().
This custom function acts as a versatile wrapper for all your entity operations (Create, Read, Update, Delete, and List). Load a single entity, update a taxonomy term by name, list all inactive users, or delete an entity by ID or properties—all with one clean line of code. Stop calling $entityTypeManager, $storage, loadByProperties, and save() repeatedly!
This custom function acts as a versatile wrapper for all your entity operations (Create, Read, Update, Delete, and List). Load a single entity, update a taxonomy term by name, list all inactive users, or delete an entity by ID or properties—all with one clean line of code. Stop calling $entityTypeManager, $storage, loadByProperties, and save() repeatedly!