Insert view: embed a view into a node

The Insert view module allows you to embed the result of a particular view into a node by means of a tag.

In order to use it, you have to:

  • Use the Views module,
  • Enable 'insert view filter' in an input format and use this input format anytime you need the Insert View functionality (you may have more than one input format using the 'insert view' filter). Performance note: because Insert View disables caching for any input formats using Insert View, it is recommended to not set an Insert View enabled input format as the system default unless you are prepared for the performance impact.
  • Enter an Insert View tag into a node's content. The syntax is described below. Additional information is provided in the module's README.txt.

Drupal 5 Insert View tags
[view:name of view] is replaced by the content listing, and
[view:name of view=x] limits the listing to a particular x of entries.
[view:name of view=x=arg1,arg2,arg3] limits the listing to x entries and passes arg1, arg2 and arg3 to the view.
[view:name of view==arg1] passes arg1 to the view and places no limits on the number of entries to display.
[view_pager:name of view=x] inserts a pager view listing x entries per page. (Note, x is required). NEW!
etc.

Drupal 6 Insert View tags
[view:name of view] is replaced by the content listing.
[view:name of view=name of display] invokes the view using the specified display (see README.TXT for more info).
[view:name of view=name of display=arg1,arg2,arg3] invokes the view using the specified display and passes arg1, arg2 and arg3 to the view.
[view:name of view==arg1] passes arg1 to the view and will use the "default" display set for the view.
[view_pager:name of view=x] DEPRECATED. These tags will continue to function, but the pager and limits overrides won't occur. Use a custom Views display instead.
etc.

Drupal 7 Insert View tags
If you go to:
Views -> (Your Custom View) -> (Your Custom Page)
in the URL of your browser, use the following values to create your view tag:
valid tag insert views

At the time of writing, these tags are not expanded when you use the printable version provided by the book module.

For an inside look at the module and a demo of its features you can view the Insert View Module Preview

Using an argument with Insert view

The [view:myview=maxitem=firstargument] form can be very useful. For example, if you have a site with the following structure (every node

Guide maintainers

mlsamuelson's picture