2

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.

2
  • Do you want a button like "insert php"? Jul 6, 2012 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, 2012 at 10:59

3 Answers 3

4

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.

0
2
<?php
  $viewName = 'view_name_here';
  print views_embed_view($viewName);
?>
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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