Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.11
Component:
node data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2010 at 15:43 UTC
Updated:
4 Nov 2016 at 02:58 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerThis can be done with #669636: Re-structure all links handlers to support advanced rendering of links
Comment #2
trentharlem commentedhttp://drupal.org/project/stringoverrides
Comment #3
El Bandito commentedI'm seeing a similar/the same problem. Specifically if I add the field "Node: Add comment link" to my display, set "Rewrite the output of this field" to "post a comment", then set Output this field as a link/LINK PATH: to "[[comments_link]" the output is the correct text "post a comment" but linked through to the rather strange "http://www.mysite.com/Add%20new%20comment%0A".
Is the implication of Dereine's reference to #669636 that this will not work without an upgrade to 6.X-3.0 ? I'm afraid the thread itself flies way over my head.
Thanks
El B
Comment #5
gmaximus commentedHi,
I got around this by re-writing the output of "Node: Add comment link" as follows:
This wasn't before searching high and low. Requires that you have "Node:Nid" in your view before "Node: add comment link" but you can easily exclude it from display :)
Guy
Comment #6
gmaximus commentedUpdate:
This didn't quite work locally, as the links pointed to http://localhost/comment/reply...... and not http://localhost/(drupal install folder)/comment/reply.... Although, once I push it up to production it would work fine...
So I changed the setting as follows:
1) I checked the box for "re-write the output of this field" and entered the anchor text (text for the link) i wanted...
2) I checked the box for "output this field as a link". I then entered "comment/reply/[nid]#comment-form" for the link path and entered some Alt text.
And hey presto.... Works for me locally and in production
Hope this help others....
Guy