Hi,

I would like to be able to use the tokens in the node-body instead of the nodetitle.
Could this be possible please?

Thanks in advance for your reply!

Greetings,
Martijn

Comments

fago’s picture

Status: Active » Closed (won't fix)

Hm, it's possible but I not plan to implement this. Doesn't seem to be required often either.

summit’s picture

Status: Closed (won't fix) » Active

Hi,
I still need this requirement, anyone else interested in this?
greetings,
Martijn

fago’s picture

Status: Active » Closed (won't fix)

I don't plan to add this to the module.

pkej’s picture

Try out http://drupal.org/project/reptag and if it doesn't support tokens, ask them to add token support

I read through some log messages (searched for "token") and it seems the module reptag has token support.

Let me know if it solves your problems.

giorgosk’s picture

A solution can be achieved with http://drupal.org/project/computed_field
but it needs a little custom coding

summit’s picture

Hi Giorgos,

Could you display here the custom coding please?
Thanks a lot in advance!

greetings,
Martijn

giorgosk’s picture

I have not done it
but I know it can be done

look for snippets/example code here
http://drupal.org/node/149228

kendouglass’s picture

Here is what I use to get a 10 word title:

<?php
$limit = 10;
$text = $node->body;
$text = strip_tags($text);
      $words = str_word_count($text, 2);
      $pos = array_keys($words);
      if (count($words) > $limit) {
          $text = substr( $text, 0, $pos[$limit]);
          $text = trim( $text );
          $text = rtrim( $text, '.' );
          $text = trim( $text ) . '...';
      }
return  $text;
?>

Check "Evaluate PHP in pattern"
Works for me in Drupal 6.20.
This is from: http://drupal.org/node/283830