Suppose we want to use a different layout/blocks in front page. I know there is a page visibility restriction feature in block configuration, and also
Page Manager and
Panelsmodules exist, but what's the downside of this solution?
- Define a specific region
- Place some blocks in this this region
- Render this region only in
The above solution has some advantages: front-page blocks are listed separately from other blocks, no need to configure each block to be in
<front> page (preventing a O(n) task), using native UI to arrange the blocks.
- hooks like
hook_preprocess_blockwill not be called for a block not being rendered.