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?

Comments

Vote_Sizing_Steve’s picture

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.

nedjo’s picture

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():


    $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]

ablankenstein’s picture

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)

visualnotion’s picture

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.

mikey_p’s picture

Assigned: Unassigned » mikey_p

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

rc2020’s picture

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!

mikey_p’s picture

Status: Active » Fixed

Committed to Drupal 6 branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gozigzag’s picture

Status: Closed (fixed) » Active

This does not appear to be fixed. I first noticed using 6.x -1.0, but continued to be a problem for me when I tried upgrading to dev version 2010 Jul 11. To solve, I actually did something similar to suggestion in #4- but not ideal solution. Is there a way to patch this or get to something like in #2 --- $type_info->help.

mikey_p’s picture

The patch that went into the 6.x branch is virtually identical to the patch in #2. Did you check the option on the node type settings page to display the submission guidelines in a block?

trevorfoulk’s picture

has anybody made any progress on this issue?

mikey_p’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This feature is present on 8.x and 7.x versions, and 6.x is no longer supported.