how to pass parameters to blocks in templates?

x

Joined: 2005-09-22
Posts: 3
Posted: Thu, 2005-09-22 14:46

I've been trying to figure out how to sprinkle random blocks into my hacked templates. I have figured out this much:

{g->block type='imageblock.ImageBlock' class='gbBlock'}

However, i can't figure out how to pass the parameters. The "Tpl Reference", very vague in all cases, it especially vague in this regards...

I've tried various things (all just wild stabs in the dark), including grepping all of the code for examples (but finding no explicit ones)...

It is no doubt extremely simple when one knows how to do it... can someone give us an example? (Maybe even add it to the Tpl Reference.)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-22 15:18
 
x

Joined: 2005-09-22
Posts: 3
Posted: Thu, 2005-09-22 17:33

That works. Thanks.