Drupal Planet

Debugging why a block doesn't display

Recently I was tying myself in knots trying to work out why certain blocks weren't displaying. Long story short, the problem ended up coming from a custom condition plugin that didn't cover for enough use cases.

I ended up tracking down the problem by debugging my way through the block condition logic. In BlockRepository::getVisibleBlocksPerRegion() it checks the access logic for each block

Tags: 

Grouping Simple Sitemap by content type

The XML sitemap standard has been around for almost 20 years and serves as a great way of keeping Google and other search engines up to date on what content is changing on a website. Thanks to the world of open source, sites which use Drupal have tools to automatically generate the files based upon the site's content, e.g. Simple Sitemap, instead of having to manually create them.

Tags: 

Status update on my Drupal contribution efforts

Thought I'd give a quick update on my personal contribution efforts, given I'm involved in so many different projects.

Metatag for Drupal 7

The Drupal 7 version of Metatag is pretty darned solid at this point. Some tests were added recently that will make sure the output works correctly for all tests, so the next release might be the last for a while. Speaking of which, I'm planning to do a bug fix release on December 31st.

Tags: 

Pages

Subscribe to Drupal Planet