Thank you SO MUCH for adding token support to this module. It got me 99% towards my needs using this module.

Would it be possible to have different token strings for each node type? (Example: I have an events website with two different node types -- short term events and long-term events. Short term events have multi-value date fields and long term events have a single value date field with start and end dates. I'd like to be able to tokenize the short term events nodes one way, and the long term events nodes with a formatted start-through-end date output.) I have other sites that have other specific examples of why type-based token strings would be beneficial too.

Thank you so much for this wonderful module!

Comments

chia’s picture

this is not build within the module. However you can do it with a little custom code.
One possible approach
do not select to show tweetbutton for your content type in admin page
and add this code in hook_nodeapi [op == view]

if ($node->type == 'your_content_type') {

  $options['text'] = "[your] [token] [message]"
  $node->content['tweetbutton'] = array();
    '#value'  => theme('tweetbutton_display', $node, $options),
    '#weight' => variable_get('tweetbutton_node_weight', -5),
  );
}
chia’s picture

Status: Active » Fixed

marking as fixed based on upon comment.

markdavidzahn’s picture

Status: Fixed » Active

I'm sorry, I'm not code-savvy. Where do I put this? Not familiar with hook_nodeapi.