Closed (fixed)
Project:
Insert Block
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2011 at 16:43 UTC
Updated:
21 May 2014 at 16:30 UTC
Jump to comment: Most recent
Comments
Comment #1
mlsamuelson commentedHave 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.
Comment #2
Ndesign commentedComment #3
Nick Robillard commentedI'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.
Comment #4
markosaurus commentedSame issue here - Nick - Did you find anything when investigating this? I'm getting raw token output too.
Comment #5
markosaurus commentedNobody 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
Comment #6
markosaurus commentedIt'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
Comment #7
Ndesign commentedThanks Mark, i appreciate your findings and heads up on your output of tpl files.
Comment #8
markosaurus commentedNdesign - Did you every get your issue sorted?
Comment #9
Ndesign commentedThis issue is solved.
Comment #10
garek007 commentedThis post solved this for me! I needed to turn it on in the filters! Thanks! this module needs better documentation!