How to move tag section below content in Drupal 6?

I have included taxonomies as a tag, and I would like the tag field to appear below the content when users edit the page. Where can I change the settings?

+3
source share
3 answers

For editing? You don’t need the code at all if you use the CCK module on your site.

Go to Admin> Content Types. Click "manage fields" on the type of content you want to edit, then drag the form of the taxonomy module under the body. Click "Save", you're done.

, CCK.

+3

hook_form_alter() node:

/**
 *  Implementation of hook_form_alter().
 */
function yourModule_form_alter(&$form, $form_state, $form_id) {
  // Is this a node edit form?
  if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] .'_node_form' == $form_id) {
    // Yes, adjust taxonomy weight to push it to bottom of form
    $form['taxonomy']['#weight'] = 42; // TODO: Find appropriate number by inspecting the other form element weights
  }
}

: bmann , , CCK , "admin > > .

+1

node.tpl.php /.

<div class="taxonomy"><?php print $terms?></div>

<div class="content"><?php print $content?></div>

.

, !

0

Source: https://habr.com/ru/post/1738130/


All Articles