Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module allows us to sort the elements of a field which has the select list
widget.
Usage
For example:
We have a field called Months, which is a "List (text)" field with the "Select list" widget. In the "Allowed values list" for this field we have the following values:
The Block Inject Module Provides an Input Filter that you can add to any of your Input Formats. Once enabled, the filter allows you to inject (insert) any Custom Block into the content at the end of a predefined number of paragraph.
The module is an out of the box solutions for inserting Custom Blocks (Like Adsense Ad) into the content(article) automagically at the end of a specified paragraph (say 2nd para) in all articles.
-- REQUIREMENTS --
Filter Module, which is available in Drupal Core.
-- INSTALLATION --
* Download and Install the Module
-- CONFIGURATION --
* Edit any of your Input Format (say Full HTML)
* Enable "Block Inject" filter
* In the configuration form of the filter, provide below details:
1) The Custom Block which has to be inserted
2) The tag after which the Block has to be injected
You can choose to inject the block after the close of Nth
tag, or
tag or a New Line
3) The value of N (The number of the paragraph after which you wish to insert)
-- TROUBLESHOOTING --
* If you have other filters enabled along with Block Inject filter, observe how are changing the output. It is recommended to place Block Inject Fiter on top of all other filters
* Beware than though your actual content does not have any
The Block Inject module allows for regions to be created and injected in the middle of chosen node types.
You can create any number of regions to inject as well as select as many node types you would like these regions to be injected in. The blocks you assign to these regions will then appear in the middle of the body field of these node types if the number of paragraphs is bigger than 2.