Embed View Shortcodes

Categories

Component ID

2680201

Component name

Embed View Shortcodes

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

797

Component created

Component changed

Component body

Embed view shortcodes is a module that allows users to embed views and block content into node body and blocks using simple syntax using Shortcode api.

This module is really helpful When you want to allow users to embed views or block into the text area on a page or block without granting them permission to use PHP.

This Module provide the feature to the admin to handle the acces of the execution of shortcode by text format permission.

Example if user role has the permission of accessing the text format of HTML then the user will able to use this feature of embed view shorcodes.

The syntax for embed view in multiple way are:

[view name="view name"][/view]

[view name="view name" display="display][/view]

[view name="view name" arg="argument"][/view]

[view name="view name" display="display name" arg="argument" ][/view]

The parameters are: view name, view display id, view arguments.

The syntax for embed block is [block id="block_id"][/block].

The parameter is block id.

Installation:

1- Copy the whole "embed_view_shortcodes" directory to your modules
2- Enable the module.

Requirement:

1- Shortcode

Configuration:

  1. Go to the admin/config/content/formats
  2. Configure the text format
  3. Check the Shortcode Option
  4. Enable Embed View Data shortcode option for using view shortcode
  5. Enable Embed Block Data shortcode option for using block shortcode

Similar modules:

Insert View
Insert Block