I've set up a site using CCK, Contemplate, Views, and Insert Views. If I add a view into a node using Insert Views (using its [view:viewname] input format) the text isn't properly parsed into a view if Contemplate is enabled (leaving the raw [view:viewname] text instead. If I disable Contemplate, the view is properly rendered within the node.

Any ideas?

Comments

jjeff’s picture

Are you being sure to use the $field_yourfield['view'] attribute rather than $field_yourfield['value']??

The 'value' version will not get filtered.

dnorman’s picture

It's using the default code in the contemplate template for the content type:

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

However, changing it to:

<?php print $field_abstract['view']; ?>

results in the same non-rendering of the insert_views input format.

fadeout32’s picture

Hi Anyone able to chase this up? I have the same problem and submitted it to insert_views project http://drupal.org/node/92703.

Any guidance or advice on an alternative method of approaching this, would also be much appreciated.

fadeout32’s picture

Here is the answer: http://drupal.org/node/47417

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

Is this problem still occurring?

jrglasgow’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I will assume that this problem has been fixed since there hasn't been any response.