Ore no Drupal
This is a tech blog of Acret Inc.
We will irregularly post contents related to web development and operation, with a focus on Drupal technology.
-
2026/02/06
In the Drupal ecosystem, we often find ourselves needing to manipulate strings or data directly within a template. While it’s tempting to throw logic into a .theme file or a hook_preprocess_node, this often leads to "code bloat" and makes templates harder to read.<br />
<br />
-
2026/01/09
Drupal offers a powerful content moderation system, but for editorial teams to work efficiently, dashboards must reflect the most recent changes made by editors. When they do not, reviewers may miss important updates, see outdated statuses, or struggle to understand what content needs attention next. This can create confusion in approval workflows and reduce confidence in the publishing process.<br />
<br />
At the heart of the issue is a simple distinction: the version currently shown on the website is not always the same as the newest version being reviewed internally. In Drupal, those two versions can exist at the same time, and a well-designed dashboard needs to focus on the latest revision rather than only the live published one.
-
2025/12/05
To keep the site more secure and organized, the site builder must be able to set up the permissions and roles properly and different parts of the Drupal site. In Drupal Development, user access is controlled using the system of roles and permissions. These two features of Drupal work together to determine what a user is allowed to see or do-whether that's creating content, editing pages, or even handling administrative tasks like updating the views, menus, etc. In this article, we'll be discussing how roles and permissions function, how they relate to each other, and some practical tips for setting them up the right way.