Compatibility with Node Form Template
fourmi4x - November 2, 2009 - 11:27
| Project: | Suggested Terms |
| Version: | 6.x-1.3 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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
<?php
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 :) )

#1
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 ?