I think I must be missing something simple. I'm trying to use this module to insert a view in the body field. However, once published, all I see is [view:myView] instead of the actual view.

I have added an extra field to the page content type. Might this alteration cause the module not to work?

Thanks.

Comments

mlsamuelson’s picture

I have added an extra field to the page content type. Might this alteration cause the module not to work?

It should work in that scenario. Try something like this [view:tracker] (using a view that comes with views module). Any luck?

What other contributed modules are you using? Any that may act on how your nodes render?

gnosis’s picture

We're using CCK to alter the fields...could that be messing things up? Also, we have Token (5.x-1.9) installed in support of pathauto. I know Token uses a similar syntax to the [view:whatever] syntax...might be a clue.

nevets’s picture

May be a silly question but have you enabled the filter? You would need to enable it under "Administer" » "Site configuration" » "Input Formats", you will need to configure each of the input formats that you want to make the filter available for.

sjancich’s picture

Yes, we've got the filter enabled....

erikhopp’s picture

mlsamuelson’s picture

I'm guessing http://drupal.org/node/170921#comment-309074 is related.

Check your theme and see if you're using a standard theme variables.

And let us know what you find, if you would be so kind... :)

sjancich’s picture

I am using variables, including $body = $node->content['body']['#value'], in my tpl.php file. I was able to get the views filter to work using erikhop's patch.

mlsamuelson’s picture

Status: Active » Fixed

This should work now, as recently committed patches (see http://drupal.org/node/224987 and http://drupal.org/node/180042) make Insert View a true filter module (ie. it now does its work via hook_filter() rather than hook_nodeapi()).

I'm marking this issue as fixed. But please open it up again if you find that's not the case.

mlsamuelson

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.