Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2011 at 23:38 UTC
Updated:
19 Apr 2012 at 02:41 UTC
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
Comment #1
arpieb commentedMartijn,
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:
Comment #2
dave reidYou can write your own custom token for the [url:*] token type which was meant for this.