Hi, thanks for the module.

Ive created a view, added Field: Add comment link

But im trying to change the link from add new comment to something else, e.g. post a reply.

If i try to rewrite the out put of the field there is no link there, unless I use the replacement toke, but then I get the add new comment as a link, and all other text normal.

If I try to rewrite the output as a link its the same case.

So how can I just change the text from add new comment to post a reply.

Thanks for any suggestions or help

Comments

dawehner’s picture

Status: Active » Closed (duplicate)
trentharlem’s picture

El Bandito’s picture

I'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

gmaximus’s picture

Hi,

I got around this by re-writing the output of "Node: Add comment link" as follows:

<a href="/comment/reply/[nid]#comment-form" title="Whatever you want">Whatever you want</a>

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

gmaximus’s picture

Update:

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