HTML Comments Improve Experience Builder Previews in Drupal

XB
Drupal Starshot - Experience Builder Update + Next Steps / YouTube

Wim Leers reports on HTML comments in Experience Builder (XB) during week 30, covering infrastructure updates and refinements. The "Publish" button introduced earlier remains while server-side support for auto-saving entities is now in place. Recent developments include adding an SEO-focused media image field to the Page content entity type, refactoring Redux-integrated field widgets for improved UI integration, and addressing accurate previews using HTML comments instead of unreliable data attributes. The new Twig extension wraps Single Directory Components (SDCs) in comment tags to improve XB’s ability to match hovered or selected HTML to the component tree without affecting CSS or JavaScript behaviour. Additionally, XB now requires Drupal 11.1 or newer due to changes in block plugin validation while maintaining backward compatibility with Drupal 10.4. These updates contribute to XB’s long-term goal of achieving real-time previews with in-place editing.

Source Reference

Date of Publication

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Drupal Initiatives

Related People

Upcoming Events