This project is not covered by Drupal’s security advisory policy.
A simple module to show blocks in a field. It can take any block and put it inside a node. This makes it easier to put relevant content before or after the node body and before the comments. This allows some theming that couldn't be done if the blocks are outside of a node, e.g. float.
Technically this module is just a text field formatter. It'll invoke the corresponding blocks specified in the text field and output. If the block is a Views block, arguments can be passed too!
Add a long enough, say length 255, text field to the desired content type. Set the display of the text field to Block2Field. On node edit page, choose which block to output in the node by typing in cache?title?module/delta/args where:
- cache? (optional)
- BLOCK_NO_CACHE? (default)
per role per page
- BLOCK_CACHE_PER_USER?BLOCK_CACHE_PER_PAGE? per user per page
- (Note: Views' block arguments, if any, are used as a part of cache id too)
- title? (optional) can be <none>? to hide the title
- module/delta module name and delta of a block
- /args (optional) Views' block arguments
All block settings on the admin page or Views's Block settings are not used. Caching and title can be changed in the text field.
Make sure to enable "Content Permissions" module and set the text field with Block2Field formatter to be only editable by administrators.
- forum/1 for the "New forum topics" block
- BLOCK_CACHE_PER_ROLE?forum/1 the same block with per role cache
- New discussions?forum/1 the same block with "New discussions" as the title
- BLOCK_CACHE_PER_ROLE?New discussions?forum/1 the same block with title and cache
- views/hello-block_1 for block block_1 from hello Views
- views/hello-block_1/arg1/arg2/argn pass arguments to a Views block
- BLOCK_CACHE_PER_USER?views/hello-block_1/arg1/argn pass arguments to a Views block with per user cache
- Semantic CCK: adjust HTML tags produced by fields. Wonderful!!
- Similar By Terms: shows a list of similar nodes in a block. Works great with Block2Field.
This module is sponsored by ball.in.th, of course. hahah.
- Maintenance status: Unknown
- Development status: Unknown
- Module categories: Content Construction Kit (CCK)
- Reported installs: 4 sites currently report using this module. View usage statistics.
- Downloads: 2,335
- Last modified: 27 November 2014
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.