By HFlame7 on
Hello,
On the node add form I am trying to add custom text under the vocabularies label. For example, for the "page" content type, it uses a vocabulary called "page categories." On the node add form (node/add/page) I want it to display some custom text that I will manually add right under the label of "Page Categories."
Anyone know how to do this?
Thanks!
Comments
?
?
You need to write a hook form_alter
You need to write a form_alter hook, Check this link:
http://drupal.org/node/651106
----------------------------------------------------------
G.A. Martin, Drupal Developer.
Thanks! I'll take a look into
Thanks! I'll take a look into it.
Help Text
Did you try setting the taxonomy vocabulary help text? You can find this under the Taxonomy | Edit Vocabulary under Help Text .
Scott
Another option
Although the hook_form_alter is the best way to do this you can probably do this using jQuery
.append()Thank you everyone for the
Thank you everyone for the new comments. I will continue to look into the answers that you all provided. Spovlot, I had actually forgotten about that, but it won't work for me though because I need to use some html tags instead of just plain text.
The help text can take HTML
The help text can take HTML tags (Manage fields section of the edit Content Type).
You are looking for something that should be a configurable aspect: that the help text appears under the field label or under the actual field.