Sunday, 15 April 2012

php - How to display all taxonomy term fields when adding node in Drupal -



php - How to display all taxonomy term fields when adding node in Drupal -

i'm trying create form post advert in paper , want allow user select style of future post , show how printed. create taxonomy vocab. "style" name, sample image , max. characters type. next i'm creating field taxonomy term relation in advert content type.

now need show in adding form not radios or select titles title, sample image , other fields taxonomy.

i think need utilize hook_form_alter utilize mymodule_form_ad_node_form_alter(&$form, &$form_state, $form_id) can't understand how in drupal way can rest of taxonomy fields? in $form array tids , titles.

is possible not query db 1 time again setup existing query retrieve fields need? how can insert additional info form? other way #suffix #prefix on radios?

if drupal 7 can utilize entity reference field along entity reference view widget instead of term reference field. allow specify view utilize populate field options, , can create entity reference view display additional taxonomy term fields want display.

php drupal drupal-taxonomy

No comments:

Post a Comment