0

I am using the linked field module to try to display a particular field as a link on a content page (I am not working within a View). The field is a select list with associated urls in the key. For example, the Value "Accounting Department" may have a key of "/drupal/accounting". I want the link to show "Accounting Department" but map the link to what is in the key. If I map to the field with this module, it tries to go to "/drupal/Accounting Department". Has anyone else attempted something like this or is there another module that will allow this?

1 Answer 1

1

You need to configure the "token" view mode for the content type in question.

First, ensure you're set up to configure the "tokens" view mode separately from your other view modes.

  1. Click to go to the "default" view mode: enter image description here

  2. Near the bottom, click "Custom display settings" and check "tokens", then save. enter image description here

  3. Now you will see "Tokens" in your list of view modes to configure: enter image description here

Go to that page, find the field that contains the key you want and, in the drop-down in the format column, change it to "key".

8
  • Tried that. If I change it to "Key", it does link in the proper page but the link then displays the key as well. So in this case, it visibly shows "/drupal/accounting". Is it supposed to have a different behavior? Commented Sep 4, 2015 at 19:55
  • @BigEMPin It does that even if you have the format on the "Full Content" view mode for that field set to "default" (not "key")?
    – Aaron
    Commented Sep 4, 2015 at 19:58
  • If it is set to the default, it does the exact opposite. It will display the value, but will also link to the value instead of the key. Commented Sep 4, 2015 at 20:04
  • What view mode are you trying to get this to work for? You need to set your view modes such that you can configure your "tokens" view mode separately from your "full content" view mode.
    – Aaron
    Commented Sep 4, 2015 at 20:05
  • @BigEMPin I've updated my answer to show you how to configure the view mode for tokens separately from the default view mode.
    – Aaron
    Commented Sep 4, 2015 at 20:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.