Closed (works as designed)
Project:
Link
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2010 at 14:30 UTC
Updated:
21 Sep 2015 at 12:31 UTC
Jump to comment: Most recent
Comments
Comment #1
lomo commentedEven 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.
Comment #2
dunkoh commentedI 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.
Comment #3
daviesap commentedHello -
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
Comment #4
fuse commenteddunkoh: 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.
Comment #5
jcfiala commentedLook, "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.
Comment #6
seanb"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?
Comment #7
dqdMost 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
Comment #8
giorgio79 commentedI 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.
Comment #9
lunk rat commentedIs 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
Comment #10
lomo commentedLooks 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.
Comment #11
squarecandy commented+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!
Comment #12
ramper commentedComment #8:
That was clever (actually brilliant, considering my other attempts!). Thanks, giorgio79.
Comment #13
MatthijsG commentedAfter 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
Comment #14
graham leach commentedHmmm,
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.:
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]