Hi.

I installed this module and everything works with the default template:

<div class="node-form">
  <div class="standard">
    <?php print $standard; ?>
  </div>
  <?php print $admin; ?>
  <?php print $buttons; ?>
</div>

But when I swap it with my custom template (css and markup removed):

<div class="node-form">
    <div class="standard">
        <?php print $form_ids; ?>
        <?php print $title; ?>
        <?php print $field_prosjekttekst; ?>
        <?php print $taxonomy; ?>
        <?php print $menu; ?>
        <?php print $field_kontaktinfo; ?>
        <?php print $field_kontaktpersoner; ?>
        <?php print $nodesubscribe; ?>
        <?php print $node_notify_time; ?>
        <?php print $notifications_content; ?>
        <?php print $attachments; ?>
        <?php print $book; ?>
        <?php print $print; ?>
        <?php print $revision_information; ?>
        <?php print $path; ?>
        <?php print $comment_settings; ?>
        <?php print $scheduler_settings; ?>
        <?php print $admin; ?>
    </div>
    <?php print $buttons; ?>
</div>

Certain fields, AJAX / AHAH seems to be the common denominator, doesn't work. All the fields show up and everything looks identical, but when I try to add a node with the node_reference field I get an error:

An HTTP error 0 occurred. 
/fas/content/js_add_more/prosjekt/field_kontaktpersoner

When I try to select my catagory using the hierarchical select module field I get another error:

Received an invalid response from the server.

Seeing as everything works with the default template I'm certain this isn't the modules fault, but rather me not printing the correct variables. I'm just not sure what I'm missing. :)

Btw, this is one of the most awesome modules I've used for Drupal. It should be part of core. Theming forms should have been this easy all along.

Cheers,
TwiiK

Comments

twiik’s picture

Assigned: Unassigned » twiik
Status: Active » Fixed

Found the problem by comparing every variable in $standard with my variables.

It was $hs_form_build_id variable, which I assume is coming from the hierarchical select module judging from the first two letters, that caused all the problems.

Everything works perfectly now. :)

Status: Fixed » Closed (fixed)

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