I have created a View (for /blog
). The blog page is just articles grouped together. Underneath each blog post I'd like "Comments (x
)" (x
= showing the number of comments).
That part is done, using Rewrite results > Output this field as a link. Link path = blog/[title]#comments
What I would like to do now is when there are no comments, have a HTML link "Comments (add
)" which goes to the comment form for that blog post. E.g. blog/[title]#comment-form
Problem:
I haven't been able to create the "Comment (add
)" HTML link using No results behavior > No results text (Is it possible?)
I've tried:
<a href="/blog/[title]#comment-form">add</a>
and many other alternatives. The link becomes
/blog/%3Ca%20href=
Am I on the right track? How do you recommend I go about this?