From reading other issue submissions:
- I made the view, but I tried with two standard views and nothing displays.
- I am not using any arguments
- I checked my template file and tried to first reset the view and a custom view of my own neither worked. I also noticed in the content template edit teaser/body that nothing had been created for the $item['view'] = null

This may be irrelevant, but I also tried the Insert View module without success. I have gotten the insert view to work on a different website, but not in this particular install. Also, I can view both the custom and standard view as an independent page just fine. Finally, all the versions are the latest revisions of views, cck, viewfield, and content template.

Can you help me out?

Comments

phoolish’s picture

I got a view to show on the page by insterting the php into the content template

foreach ((array)$field_body as $item) {
  print $item['view'];
}
foreach ((array)$field_bio_view as $item) {
  $viewName = $item['vname'];
} 
$daview = views_get_view($viewName);
print views_build_view('embed',$daview);

This is the crappy implementation... please show me the way. Thanks again.

bomarmonk’s picture

Hmmm. Does this module even work? I'm having the same issue. The view just doesn't show!

bomarmonk’s picture

In contemplate, I ended up creating something like this (oddly, the view only shows up if I keep the pager set to FALSE):

<div class="field-items">
    <?php foreach ((array)$field_help_text_or_explanation_ as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  </div>

<div class="field-items">
    <?php foreach ((array)$field_view_of_files as $item) { ?>
      <div class="field-item">
<?php 
$view = views_get_view($item);
print views_build_view('embed', $view, $view_args, FALSE, $limit);
 } ?>
  </div>
</div>
socialnicheguru’s picture

thanks for this. viewfield is not working for me either when it comes to passing arguments.

darren oh’s picture

Status: Active » Closed (won't fix)

There is currently no maintainer for this version.