hello everyone,
I installed the insert_blocks module correctly as well as created a new text format specifically for insert_blocks. I haven't been able to call out any blocks that I have created. Is there conflicting modules or something I am missing? Heres an example of what I'm trying to accomplish:

admin/structure/block/manage/block/32/configure

[block:block=32]

Comments

mlsamuelson’s picture

Have you verified you enabled the Insert Block filter for the input formats in which you want to use Insert Block tags? To do this, click the configure link for an input format at /admin/settings/filters and then enable the filter.

Ndesign’s picture

Status: Active » Closed (fixed)
Nick Robillard’s picture

I'm having issues too. I've verified that my input format has Insert Block checked off, and it works in one place, but not the other. As in, the block is embedded as expected in one field, but in another field, I just see the raw token text. I'll dive into the code and post my findings.

markosaurus’s picture

Same issue here - Nick - Did you find anything when investigating this? I'm getting raw token output too.

markosaurus’s picture

Nobody has any updates on this? I cannot get either this module or insert_views module to work either with Drupal 7.20 (latest version as of writing).

I'm assuming something has changed in the Drupal core to completely break this?

Digging into the module, it looks like there's an issue with the area of the module (or the API has changed around this area) where we try to load in the Block content.

print_r($block_content ); returns an empty array!

So tracking back, I see this;

$block: stdClass Object ( [module] => blocks [delta] => bites_block )

Looks like something goes wrong when we pass this out and try do _Block_render_blocks?

Anyone have any idea why?

Thanks,

Mark

markosaurus’s picture

It's nothing to do with the module, just thought I'd better post my findings in case anyone else needs to fix the same thing later.

THE MODULE IS NOT AT FAULT here. The problem lies as usual betweent he screen and keyboard (i.e. me.)

I was outputting into my node.tpl.php the value of the body and not the markup. So in effect what I was outputting was the pre-rendered version of the body field. The replacement of the filters does not happen at this point, so what I see is the placeholder, which is exactly what should happen.

The replacement does not happen until the actual markup is rendered so beware what you're outputting.]

Keep up the great work with the module guys!

Thanks,

Mark

Ndesign’s picture

Thanks Mark, i appreciate your findings and heads up on your output of tpl files.

markosaurus’s picture

Ndesign - Did you every get your issue sorted?

Ndesign’s picture

This issue is solved.

garek007’s picture

Issue summary: View changes

This post solved this for me! I needed to turn it on in the filters! Thanks! this module needs better documentation!