When I add an Add comment link-field it just outputs it as plain text, not as a link to the comment form.

In the field settings it says "Display the standard add comment link used on regular nodes, which will only display if the viewing user has access to add a comment.", but the viewing user has these rights (after all it wouldn't display at all if the viewing user hadn't these, no?).

Am I overlooking something in the field settings?

Comments

knalstaaf’s picture

Title: "Add comment link" is plain text » "Add comment link" is plain text (not a link)

Is this default behaviour?

earwax’s picture

I recall missing something like what you describe and it display only plain text - no link. Then I fiddled around and got the link to work. can you take a screen shot of your enter Views setting for this specific view?

knalstaaf’s picture

StatusFileSize
new168.85 KB
new122.59 KB

Here you go (attch).

I've expanded the Output this field as a link-settings as well, just in case the problem may be located there somewhere. As you'll notice, it's blank. Every setting is default, only the label has been modified.

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Take sure that your nodes actually allow to post comments.

knalstaaf’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new50.57 KB
new38.77 KB

The nodes allow comments, even from anonymous users. Still the link in the view "Post a comment" is displayed as plain text (between span-tags).

I'm using Display Suite, and the comments field is enabled in the "Manage display". I've disabled Display Suite and built a traditional display, but with no result. So that kind of eliminated DS as the possible cause.

I've attached the View in case it may clearify something, but I'm quite sure it's all default.

knalstaaf’s picture

Status: Postponed (maintainer needs more info) » Active

(I'm putting this back on "active"... I guess? Or is that not necessary after providing more info?)

knalstaaf’s picture

Status: Postponed (maintainer needs more info) » Active

I've set the theme to Bartik and the issue remains (so it's not an Omega/theming issue either).

knalstaaf’s picture

The link only appears when there's already a comment posted by someone.

Can I make it appear disregarding whether someone already commented or not?

Edit: yes, you can with this workaround:

  1. Add a "Path" field, check "Use absolute link (begins with http://)" in its rewrite settings, and exclude it from display.
  2. Add another field (no matter what kind, it's going to be rewritten)
  3. Check "Rewrite the output of this field" and enter "Add comment" in the text area.
  4. Check "Output this field as a link" and enter [path]#comment-form in the Link Path field. Also check the option "Use absolute path ".

(Source)

Cablestein’s picture

I encountered this today, it seems like a separate issue to me, anyone agree?

"Add a comment" link only appears when comments exist for the node.

We shouldn't have to do a re-write trick, otherwise there's no point in have a "Add Comment Link" field.

Cablestein’s picture

Issue summary: View changes

field

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)