How to invoke HS widget on node-edit.tpl.php?

volocuga - November 14, 2009 - 02:00
Project:Hierarchical Select
Version:6.x-3.x-dev
Component:Code
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed
Description

Hi Wim!

I use node-MYNODETYPE-edit.tpl.php for my node edit form. How can I show HS input form there?

The following code shows only HS widget which does not work:

<?php
print drupal_render($form['taxonomy'][1]); // where "1" is my taxonomy ID
?>

Every time I try to select a term I get the message "Received an invalid response from the server."

Please help!

#1

Wim Leers - November 14, 2009 - 14:24
Component:Code - Taxonomy» Code
Priority:normal» minor

AHAH-powered forms cannot work if you build them in the theme layer. You did not add HS in the theme layer, did you?

#2

Wim Leers - November 14, 2009 - 14:27
Status:active» postponed (maintainer needs more info)

#3

volocuga - November 14, 2009 - 18:36

Thanks for answer.

Yes,I just printed the code above. Could you tell me what additional steps should I do?
Sorry,but I am not a programmer :(

#4

trupal218 - November 24, 2009 - 06:08

subscribing

#5

Wim Leers - November 24, 2009 - 13:03
Status:postponed (maintainer needs more info)» fixed

Just create a module in which you create the form.

#6

System Message - December 8, 2009 - 13:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.