When in Edit View > Configure Field

The check box
"Link this field to its node -
This will override any other link you have set."
Does not appear in Edit View > Configure Field

Comments

lomo’s picture

Even with the current Dev version, it's still not working to get the links (stored in the database) to display anywhere, so I suspect that when that issue is worked out (and the Link module is even functional), this will work, too. In the meantime, if all you are using the Link field for is to provide a link for Views "link to node", you could do that with any text field (or the title field, etc) and it will work. Not everything is ready with Views, yet... but the "link this field to its node" is working. (Again, though, I couldn't even get Link fields to *display*, so I think getting them linked to their node is a secondary concern. ;-)

Hopefully now, with D7 in beta finally and changes to the API finally more or less frozen, we should be able to get this module working for us... This probably could be in core (as part of "Fields in Core") since it's such a common need.

dunkoh’s picture

I believe this is related - if not let me know and I'll open a new issue.

I recreated my site in d7 exactly as it was in d6 - which included a view that had these fields: a url and an image.
The URL is excluded from display, so to use as the image's link
In the view in d6 I had the url format set to URL, as link. This doesn't appear to be working in d7, but works if I set it to URL, as plain text.

daviesap’s picture

Hello -

I've noticed that the "Link this field to it's node" option is only available for the Title field. Is that expected behaviour?

Using D7 and the latest release of Views.

Andrew

fuse’s picture

dunkoh: if you use the "plain text link" as the URL behind the image, how do you set the target?

I would be great if the "_target" could be used separetly as a token.

jcfiala’s picture

Status: Active » Postponed (maintainer needs more info)

Look, "Link this field to its node" is something that views supplies, not something that link supplies, as far as I know.

URL, as link, should probably work now, though.

I need folks to re-test their problems with the alpha3 release and let me know what problems they're still having.

seanb’s picture

"I would be great if the '_target' could be used separetly as a token."

This definitley would be great! Is there any plan to add this?

dqd’s picture

Component: User interface » Miscellaneous
Status: Postponed (maintainer needs more info) » Closed (works as designed)

Link this field to its node

I've noticed that the "Link this field to it's node" option is only available for the Title field. Is that expected behaviour?

Using D7 and the latest release of Views.

Most of comments here do NOT relate to the link module. Please read your posts and the project info page again. This is a module for creating a separate custom field for links on content types to be stored in database.

To understand what the module is doing please use the latest 7.x-1.x-dev with Drupal 7 and activate it in the manage fields option under admin content types in the content type of your need. Then go to add/node and create new content of that type.

Now you will have another input field available to put a link in with some hidden features I only can advice to read the descriptions and the project info page carefully for to understand.

Thanks

giorgio79’s picture

I found a nice work around for the op issue:

Add url field and title field to View.

URL Field should come before title, and set to Exclude from Display.

For title field you can set rewrite output, and set it to the URL token, and also enable title field link to its node.

lunk rat’s picture

Is it the case that the feature "Link this field to its node" is no longer provided for Views 3 fields (other than the Title field)?

I understand how to build the link using rewrite, tokens, and other fields, but sometimes it's nice to just click "Link field to its node".

Someone please confirm for doc's sake that this feature is no longer in Views 3

lomo’s picture

Looks like you can also link an image to the related content (rather than to the original image) in a View, but not other fields besides the title. OTOH, it works as it should, IMHO, and it's not hard to implement if you do want a link "to a node". Bear in mind, now, that "content" is the new word for most such options, not "node", and I have to say I don't see a problem here. When I originally commented on this, it was about a not-yet-functional "link" field that couldn't be used in addition to the missing "link to node" (at the time) functionality. I think things work pretty well now.

squarecandy’s picture

+1 on #9
Understand the workarounds, but:
Is this no longer available in views 3? Sure made a lot of things easy in the past!

ramper’s picture

Comment #8:

That was clever (actually brilliant, considering my other attempts!). Thanks, giorgio79.

MatthijsG’s picture

After puzzling, i did the following for a calendar:

- define fields & hide them
- not hiding the last field, the title of the node.
- Check Link this field to the original piece of content
- Choose Rewrite results >> Check Rewrite the output of this field
- Enter the replacement Patterns

graham leach’s picture

Issue summary: View changes

Hmmm,

The Link this field to its node feature does NOT work with a Multi-Lingual Drupal 6, Ubercart 2 implementation.

The URL for the targets that feature the Link this field to its node work correctly where they are available, i.e.:

  • Content: Image
  • Node: Title

With these, I get what I want and translation works properly:

English:
http://holisticpethelp.com/products/nose-it-k-9-ball-flex-red

Chinese:
http://holisticpethelp.com/zh/products/nose-it-k-9-ball-flex-red

But where this option is NOT available and when trying to link the BODY of the content associated with this product manually, things break down:

A) Include Node: Path, Exclude from Display checked
B) Include Node: Link, Exclude from Display checked (just for safety)
C) Customize Node: Body to reference [path] when Output this field as a link is checked

Will give you the following URL linked to the Node: Body text:

http://holisticpethelp.com/zh/zh/products/nose-it-k-9-ball-flex-red

A) Where in the core code for VIEWS is this happening?
B) Can anyone suggest a fix?

UPDATE! HERE'S A WORKAROUND:

Add Node ID to selected fields
1) Add Node: Nid to selected fields
2) Re-position Node: Nid to top of fields

Configure and link desired display information (in my case Node: Body)
3) Check "Output this field as a link"
4) In Link path:, enter node/[nid]