Display explanation or submission guidelines help on form

Vote_Sizing_Steve - October 16, 2008 - 23:07
Project:Form Block
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:mikey_p
Status:active
Description

I've got some fairly useful instructions for users in my:

admin/content/node-type/student-survey >> Submission form settings >> Explanation or submission guidelines

... field ("This text will be displayed at the top of the submission form for this content type. It is useful for helping or instructing your users").

This field's contents appears on my form page (http://VoteSizing.org/node/add/student-survey), but not in the block that I created with Form Block (http://VoteSizing.org/book/What-to-Do-Vote-Sizing-Divisions/Vote-Sized-L...).

Is this a bug, normal behavior, or is there something wrong with my settings?

#1

Vote_Sizing_Steve - October 16, 2008 - 23:13
Title:Explanation or submission guidelines arrears on form, but not in form block.» Explanation or submission guidelines appears on form, but not in form block.

Sorry - typo - should be "appears", not arrears.

#2

nedjo - October 16, 2008 - 23:42
Title:Explanation or submission guidelines appears on form, but not in form block.» Display explanation or submission guidelines help on form

This could be done through code similar to what's in node_help().

In this case it would be something like this in formblock_get_block():

<?php
    $type_info
= node_get_types('type', $type);
   
$output = (!empty($type_info->help) ? '<p>'. filter_xss_admin($type_info->help) .'</p>' : '');
?>

I'd welcome a patch.

[edited the code block]

#3

ablankenstein - January 20, 2009 - 18:20

This can easily be done by printing the $help variable in the page.tpl.php
The thing i need is filling the $help variable for a specific form in a module (no hook_help isn't it)

#4

visualnotion - March 11, 2009 - 04:13

In Drupal 5, I was able to create a custom block.tpl.php file, based on the the block id and add in my copy above the block's $content variable.

I would think it would work in Drupal 6 as well.

#5

mikey_p - May 12, 2009 - 10:06
Assigned to:Anonymous» mikey_p

I'll try to add this as an option in the next few days.

#6

corona ronin - June 15, 2009 - 05:00

Has there been any progress on this issue? I'm looking for a way for the node form to show the help text when in a block.

Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.