Active
Project:
Insert Block
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2009 at 17:03 UTC
Updated:
15 Mar 2011 at 20:24 UTC
I would like to be able to pass arguments to the block being called. It seems similar functionality is built into the Insert Views module and it also seems to be supported by module_invoke(). The biggest challenge for me would be correctly modifying the regex used by this module (_insert_block_substitute_tags()).
Comments
Comment #1
NoCoolNamesRemain commentedHere is what I have come up with (which is working for me). I would like someone to verify that the regular expresion does ONLY what I want.
Comment #2
nottaken commentedI just encountered a similar hurtle when creating a view displaying as a block, and the block needed a argument. The view needs has a argument for Node Hierarchy: Parent Node ID. I've exported my view and put it up as an example. I had to specify the default parent ID, but it would be ideal to have the parent id passed to through. Is this possible?
#view export
http://snipt.org/wnmt.
Comment #3
nancydruTry NoCoolNamesRemain's substitute code and post back here whether or not it works for you. That would help the maintainer know if it works.
Comment #4
nottaken commentedwith a little more research on this, I solved my problem. Not 100 percent related to this topic since I didn't use this code, but for what it's worth I just needed to do a views argument with "Node ID from URL" to pass the parent node id to the view.