Hi,
I have some fields like producturl. That gives a very long url.
I would very much like to be able to transform this to a tiny url/short url.
Would this be possible using a global token may be?

A token which takes a field and makes a tiny url and shows the tinyurl?

Thanks a lot in advance for your reply!
greetings,
Martijn

Comments

arpieb’s picture

Martijn,

This is probably outside the scope of the Token module, but could easily be accomplished using any of Drupal's myriad preprocessing or node view hooks in a custom module or theme in conjunction with functions defined in the Shorten URLs module. Try looking at:

dave reid’s picture

Status: Active » Fixed

You can write your own custom token for the [url:*] token type which was meant for this.

Status: Fixed » Closed (fixed)

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