Block Sections
Component ID
1359088
Component name
Block Sections
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1790
Component created
Component changed
Component body
Block Sections allows blocks to display different content depending the current path. This way there is no need to create multiple custom blocks in order to vary the content of them.
Example use case: Advertising
A possible use case for this module is when a block contains advertisements. With Block Sections the ads can be specifically targeted for different sections of the website:
- Show Ad 1 in section "Info pages"
- Show Ad 2 in section "Articles & Blogs"
- Show Ad 3 in section "Products"
Then the sections may be defined by their paths:
- Section "Info pages":
<front>, about, contact/* - Section "Articles & Blogs":
articles/*, blog/post/* - Section "Products":
products/*
Usage
- Install the module
- Add sections in
admin/structure/block-sections - Add section blocks in
admin/structure/block("Add section block" link) - In the block configuration there is a content field for every section added in step 2
Credits
This module was sponsored and developed by Soprano Brain Alliance.
