Hi,

I am using the module http://drupal.org/project/node_form_template to create the forms template files to create nodes.

So in my node-form.tpl.php file, I have for instance

print $field_targets;

to display a taxonomy CCK field.

But the suggested terms don't show up, I just have the description.
It works fine for the content types for which I don't use a template.

Do I need to add a variable to display the suggested terms too ?

Thank you very much ! (Awesome module by the way :) )

Comments

fourmi4x’s picture

It works with node-form.tpl.php
but not with node-form-mycontentype.tpl.php.

So I had a look in the module file, but I can't understand what I need to modify to make the hook work for this second template file, I guess it is in there :

function suggestedterms_form_alter(&$form, $form_state, $form_id) {
  if ((isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) && isset($form['taxonomy']['tags'])) {

I tried to replace $form_id by $form_ids but it doesn't change anything.
Do I need to delete a condition ? Or is it more serious and means these 2 modules are not compatible ?

bbinkovitz’s picture

Category: bug » feature
bbinkovitz’s picture

Version: 6.x-1.3 » 7.x-1.x-dev

All feature requests should now be against 7.x-1.x . Any patches that are committed should then be backported.

bbinkovitz’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Issue summary: View changes

This is fixed in the D7 branch. Needs backport.

bbinkovitz’s picture

I don't even know what I thought I fixed in the D7 branch, reading this again. I've never used the Node Form Template module and it doesn't appear to have a D7 release. I'll accept patches against the 6.x-1.x branch for this.