Closed (fixed)
Project:
Shorten URLs
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2011 at 20:34 UTC
Updated:
7 Aug 2014 at 14:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Jackinloadup commentedPlease text and review ^_^
Comment #2
icecreamyou commentedThanks for the patch. Comments:
Other than that, patch looks good.
Comment #3
Jackinloadup commentedI used the alter hooks because we are modifying the systems existing url token. without the alters it didn't seem to work. I didn't test this very long as i found the alter hooks soon after.
Another option is to create a new token like [node:shorten_url] or something.
Thoughts?
Comment #4
icecreamyou commentedRight -- we don't want to override the URL token, we just want to provide the short URL as a new token. So naming it something other than "url" seems necessary since apparently D7 has a default "url" token.
Comment #5
Jackinloadup commentedany ideas on a name?
I will re submit the patch tomorrow (12 hours) if a name has been chosen.
Comment #6
icecreamyou commented"shorten_url" sounds fine to me.
Comment #7
dave reidRelated issue in Token module: #1212576: Add an [url:shortlink] and [url:canonical] token.
For this issue [node:short-url] seems a good choice. We prefer dashes in the token name where possible.
Comment #8
Jackinloadup commentedHere is a patch to add [node:short-url] via core hook_token_info and hook_tokens.
Comment #9
icecreamyou commentedThanks! Committed to dev.
Comment #10
Buckminster_Bond commentedGetting the following error message on dev...
Running D7.7 - all modules up to date apart from rules which is 7.2.0-beta3
I've looked at the code and tried a few changes, but am of no help!
Comment #11
icecreamyou commentedCommitted fix to dev.
Comment #12
Buckminster_Bond commentedAll good - thank you!
Comment #14
hanoii