Thursday 26 August 2010 1:49:59 pm
There are usecases where this can make sense, a newsletter subscription AND unsusbcription form on one page for example. If want your forms to use custom templates, create and place them somewhere under templates/node/view/*, for example as myform1_embed.tpl. In the template that renders the multiform page fetch the two form objects. Then use something like this to display the forms.
{def
$myFormNode1=fetch( 'content', 'node', hash( 'node_id', 96 ) )
$myFormNode2=fetch( 'content', 'node', hash( 'node_id', 97 ) )
}
<h2>My first form</h2>
{node_view_gui content_node=$myFormNode1 view='myform1_embed'}
<h2>My second form</h2>
{node_view_gui content_node=$myFormNode2 view='myform2_embed' Let me know if this helped.
Best regards,
Patrick
|