I want to put a small form in the sidebar of my site - I need this ....module... but I don't understand the help text . Can someone tell me step by step how to configure this module

this is what is say -

To enable adding of a form to a node,

select the option "Enable data entry from a block" in the admin configuration page ?? where is this ??
for a given content type.

Visit the block administration page and enable/configure the block for the form.???

thanks

Comments

danielb’s picture

I don't know what modules you are talking about, but in Drupal 5 pasting the following code in a block (PHP input) will put the form in, might work in D6 too, just change the nid number to the form's nid.

<?php

$nid = '26';  // the Node ID to display

if (user_access('administer nodes')) {
  print '<div id="tabs-wrapper" class="clear-block"><ul class="tabs primary">';
}
$bnode = node_load($nid);
if (!is_object($bnode)) {
  drupal_set_message('Error: Cannot find node \''.$bnode.'\' for inclusion in block. ', 'error');
}
if ($bnode->title): print '<h3'. ($tabs ? ' class="with-tabs title"' : ' class="title"') .'>'. $bnode->title .'</h3>'; endif;
if (user_access('administer nodes')){
  print "<li class='active'>".l(t('View'), $_GET['q'], array('class' => 'active'), NULL, NULL, FALSE, FALSE)."</li>";
  print "<li>".l(t('Edit'), 'node/'.$nid.'/edit', array(), 'destination='.$_GET['q'], NULL, FALSE, FALSE)."</li>";
  print "<li>".l(t('Go To Page'), 'node/'.$nid, array(), NULL, NULL, FALSE, FALSE)."</li>";
  print "<li>".l(t('Results'), 'node/'.$nid.'/results', array(), NULL, NULL, FALSE, FALSE)."</li>";
  print '</ul></div>';
}
print node_view($bnode, FALSE, TRUE);
?>