Hi,

I have checked the "term" content type in the settings but when I edit a term, I don't see any box where to add a page title for the term.

Is it normal?

I need to edit the page title of the forum pages.

sorry for my poor english

Thank you.

Comments

nicholasthompson’s picture

Status: Active » Postponed

Unfortunately it is not possible.... Yet...

I am working on solving this.

Unfortunately, Drupal does not have a hook for interception of term loading.

If you're using Views I am working on a patch for it with that there #176985: Support For Views

nicholasthompson’s picture

Status: Postponed » Closed (duplicate)

Marking this as duplicate... Reason?

I believe that a combination of fixes for:

... along with Taxonomy Enhancer will solve this...

murz’s picture

Thank's! We help me to solve my problem with page titles for terms!

jenlampton’s picture

Category: support » feature

Can you look at what the nodewords module did for changing meta content on taxonomy pages? You're essentially doing the same thing... (personally believe it should be the same module... but I digress...)

/**
 * Implementation of hook_form_alter().
 */
function nodewords_form_alter($form_id, &$form) {
...
  elseif ($form_id == 'taxonomy_form_vocabulary') {
    $type = 'vocabulary';
    $id = $form['vid']['#value'];
    $form['submit']['#weight'] = 45;
    $form['delete']['#weight'] = 50;
  }
  elseif ($form_id == 'taxonomy_form_term') {
    $type = 'term';
    $id = $form['tid']['#value'];
    $form['submit']['#weight'] = 45;
    $form['delete']['#weight'] = 50;
  }
...
}
/**
 * Implementation of hook_taxonomy().
 */
function nodewords_taxonomy($op, $type, $object = NULL) {
  if ($type == 'term') {
    $id = $object['tid'];
  }
  elseif ($type == 'vocabulary') {
    $id = $object['vid'];
  }
  else {
    return;
  }

  switch ($op) {
    case 'delete':
      if (user_access('edit meta tags')) {
        _nodewords_delete($type, $id);
      }
      break;

    case 'insert':
    case 'update':
      if (isset($object['nodewords']) && user_access('edit meta tags')) {
        _nodewords_set($type, $id, $object['nodewords']);
      }
      break;
  }
}

function nodewords_get($type = NULL, $ids = NULL, $filtered = TRUE) {
...
// Pages with more than one node/term/vocabulary/...
  if ($type == 'term') {
    if (isset($tags['keywords'])) {
      $terms = array($tags['keywords']);
    }
    else {
      $terms = array();
    }
    foreach ($ids as $id) {
      $term = taxonomy_get_term($id);
      if ($term) {
        $terms[] = $term->name;
      }
    }
    if (count($terms)) {
      $tags['keywords'] = implode(',', $terms);
    }
  }

  // Prepare tags for output
  $tags = _nodewords_prepare($type, $ids, $tags, $filtered);

  return $tags;
}

also check out _nodewords_detect_type_and_ids()
Jen

jenlampton’s picture

Title: Is it possible to edit a term page title? » Request for Taxonomy Integration
Status: Closed (duplicate) » Active

whoops forgot to change the status back :-)

michelemeek’s picture

I'm interested in making this work as well...

Michele

jenlampton’s picture

Michele,

I just did a complete re-write of the module and it's working on my dev site. Want to try to upgrade a site to this new version before I post it on here, but I'll try to get to it tomorrow.

Jen

jenlampton’s picture

Assigned: Unassigned » jenlampton
Status: Active » Needs review
StatusFileSize
new10.32 KB
new2.3 KB
new13.24 KB

I have included both panels and taxonomy integration in these changes. Here is a tar of the updated module, along with patches for both files changed.

Please note, this new version of page_title INCLUDES SCHEMA CHANGES so you must run update.php after upgrading.

Jen

summit’s picture

Hi,

Will this thorough patch be committed?
Thanks in advance for considering this!

greetings,
Martijn

jenlampton’s picture

Martijn,

I believe it needs a lot of work - I'm still ironing out the bugs myself. Plus, I just stumbled across http://drupal.org/node/176985#comment-736836 which contains a similar schema update - so I'll probably rework the above code to play nice with what Nicholas has done.

Jen

jenlampton’s picture

StatusFileSize
new13.23 KB

Here's a set of the most recent changes, I'm sure there will be more...

mrgoltra’s picture

subscribing

nicholasthompson’s picture

Version: 5.x-2.0-alpha6 » 5.x-2.x-dev

I'm cleaning up the module for its first official release. I will then roll a patch with this code against what I have to see how we can progress with this.

jenlampton’s picture

@ nicholasThompson
That sounds great, I got really busy and haven't had time to work on this since then anyway. Re-rolling against 2.0 sounds like the way to go.
Thanks,
Jen

jenlampton’s picture

StatusFileSize
new4.77 KB

Ok, I just added the changes for taxonomy into the 2.0 branch. It's working on my dev site but I'll need help testing. Please test this patch (it's against head, i think) and let me know if there's anything I missed.

Jen

wflorian’s picture

+subscribe - I will test the patch on a dev site and get back soon.

mindgarden’s picture

Can does this mean Page Titles module will work with Panels 2?

Can someone explain to us mere mortals how to install the patch?

summit’s picture

Panels is going to Panel 3..Panels 2 will not go out of alpha phase as I understand.
Please support Panels 3 please!

Greetings,
Martijn
www.trekking-world.com

Jean-Philippe Fleury’s picture

subscribing

AgentD’s picture

subscribing

nicholasthompson’s picture

Status: Needs review » Fixed

This feature (or a version of it) has gone into DRUPAL-5--2 and DRUPAL-6--2.

I'm doing some final tidying & testing before I tag it.

Panel & Views integration are more complicated than they sound due to the arguments in the URL. That will need research.

wflorian’s picture

Sounds really great. Looking forward to the Panels & Views Integration!

Status: Fixed » Closed (fixed)

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

summit’s picture

Version: 5.x-2.x-dev » 6.x-2.x-dev

Hi, I am not able to get this working. How can I see this is working.
I am on 6.x-2.x-dev (2009-Mei-08)?
Thanks for bringing panels/views support into scope!

Greetings,
Martijn

nicholasthompson’s picture

There should be a "Page Title" field inside the Advanced Options fieldset on the term edit page...

summit’s picture

Hi Nicolas, Sorry I am not seeing the "Page Title" field in the 6.2 dev of the 8th of may 2009.
Sorry to report this, may be a mistake on my part.
Greetings,
Martijn

Neutric’s picture

Status: Closed (fixed) » Active

I have the same problem as Summit.

Neutric’s picture

Status: Active » Closed (fixed)

Sorry, didn' saw this: http://drupal.org/node/464006