Is there any way to insert a view in the body field of a node?

Something similar to the insert module for inserting images in the body field.

  • Do you want a button like "insert php"? – Tyler Durden Jul 6 '12 at 10:50
  • I thought of a select list to select the view, then place the cursor in the body and click a button to insert the view. Similar to the insert module for images. – chefnelone Jul 6 '12 at 10:59

I've found this module Insert View

I haven't tried yet. Let me know if it fits your request.

I found this as well Views Reference I tested both and I think the second is more appropriated for you.

| improve this answer | |
  $viewName = 'view_name_here';
  print views_embed_view($viewName);
| improve this answer | |

also you may create chainable tokens that will replace a token with view output

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.