Hi,

well, I am having a problem that I am unable to solve, but I need to.
This problem brought me a lot of headaches, and I haven't found a solution yet; hope you can help me!

I created a link field attached to a taxonomy vocabulary, so that I can add a link to each of the taxonomy terms of that vocabulary. But These URLs should use the term name as their title, so I set up the field to use [term:name] as the link title. But it simply doesn't work: the token is never replaced, even if it exists (I checked this out with the devel module).

So I am starting thinking this is a bug of this module, but I am not sure about this; what do you think?
Could you please let me know how I could solve this problem? I have no problems writing some custom code if needed...

Thanks in advance, and I hope this message was understandable; I am not a native English speaker!

Comments

falcon03’s picture

Has anyone any good idea on how to solve this problem? I am really going crazy!
In fact, I don't think this is a token module problem, because using [term:name] with the path auto module works perfectly!
I look forward to ear your opinions!

falcon03’s picture

OK, no activity on this issue for weeks now. I have to say that I solved my problem using a workaround with views, but in my opinion this is an important issue that needs to be fixed as soon as possible to make this module much more flexible!

jcfiala’s picture

Sorry that no one has responded.

Unfortunately, no one's getting paid to maintain Link, and so when a bug comes up it can take a while for someone to get interested in a problem and try to fix it. I'll try to have a look at this sometime soon, but I'll admit I've been _Very_ busy so if anyone else wants to take a swing at it it's more than welcome. :)

One question, of course, is if you have the token module installed and enabled? You probably do, but I thought I'd ask.

jcfiala’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0
Status: Active » Closed (duplicate)

Hey, good news!

I think I just fixed this as part of #1047444: Token replacement supports node entity only.

Please download the 7.x-1.x-dev version of link and see if this has fixed your problem.

Let me know!

falcon03’s picture

Status: Closed (duplicate) » Active

no, unfortunately the problem is still there... Nothing changed.

BTW, I am reopening this issue for this reason.

jcfiala’s picture

Status: Active » Postponed (maintainer needs more info)

It's working fine for me.

I created a new vocabulary. I added a link field on the vocabulary with a static title of [term:name] and otherwise went with the defaults.

I then created a term, gave it a name, put in a url, and when I went around to view the term, it showed a link where the title of the link was the name of the term, and the url was the url I'd entered.

What, exactly, are you doing different from what I'm doing?

falcon03’s picture

Well, I am doing nothing different from what you've done. But when I visit the term page [term:name] is not replaced and I see this string instead of the name of the term shown in that page as the link static title.

I really don't understand: I've checked with the devel module and the [term:name] token is created and set with the appropriate value, so I don't know the reason why this issue happens only to my site...

If this can help, I am using drupal 7.14 at this time (I will update my site to drupal 7.15 in two or three days) and all the modules installed are up to date.

Maybe some other modules (such as token filter or hierarchical select, just to report the only modules installed on my website that "could interferer" with tokens and taxonomy) could cause this issue?

jcfiala’s picture

Hm. Well, it's true that my testbed for developing link is usually only a dozen or so modules, ones that either help development (like devel) or ones that are commonly used with fields (like views). As such, I'm not using a ton of different modules, and if a module you've got is interfering, that's not something I'm easily going to be able to help with.

First off, try re-downloading the 7.x-1.x-dev version of link. I did some other minor fixes over the weekend, mostly to do with corner cases, and it's possible that the newer version will fix the problem.... and I think one of these corner cases might apply to taxonomy terms.

One thought is that I do have the token module installed and enabled. Are you using that? If the latest and greatest link version hasn't fixed the problem, try installing and enabling token (briefly) if it isn't already enabled, and see if that solves the issue. I want the code to work without token, as tokens are core functionality, but the token module still has some helper functionality to make working with tokens easier.

If neither of these works, try hitting a few of these modules and their issue queues, and see if they have any issues about interfering with tokens, or even try (briefly) disabling a module and see if that helps. I realize that's a pain in the ass, though.