By robhamm on
For the front page on a new site, I have set a panel with two views showing. The top panel shows a view set of full nodes sorted by title, with only one node showing at a time. The bottom panel shows comments sorted by title of the node they are in response to.
I am trying to find a way to restrict the comments shown in my lower pane to only those for the post displayed in my top pane.
Other solutions that provide the same end result are also welcome. Views and Panels just seemed the most logical way to go with this.
Thanks!
Comments
Just to clarify, I DID try
Just to clarify, I DID try the node comments option in Panels, and got the following error:
* warning: Missing argument 2 for _comment_get_display_setting(), called in C:\wamp\www\CopyofComic64\sites\all\modules\panels\content_types\node_comments.inc on line 62 and defined in C:\wamp\www\CopyofComic64\modules\comment\comment.module on line 1878.
* warning: Missing argument 2 for _comment_get_display_setting(), called in C:\wamp\www\CopyofComic64\sites\all\modules\panels\content_types\node_comments.inc on line 63 and defined in C:\wamp\www\CopyofComic64\modules\comment\comment.module on line 1878.
* warning: Missing argument 2 for _comment_get_display_setting(), called in C:\wamp\www\CopyofComic64\sites\all\modules\panels\content_types\node_comments.inc on line 64 and defined in C:\wamp\www\CopyofComic64\modules\comment\comment.module on line 1878.
Rob Hamm
http://www.sage-comics.com
You may use the same
You may use the same settings for both views (same filters), but one will display the node and the second its comments.
http://inTribu.com
Nope...
Doh! I'll do so. Thanks.Thanks, but...
Perhaps I'm doing something wrong here. I've tried both creating a new display for the one view and setting it to display the comments fields, and creating another view with the same filters, but no love either way. I can only seem to get a set number of comments, regardless of whether they are for that particular node or not (although of course they are ordered by node title).
To further explain--This is a webcomic, and so displays only one node on the front page--The current comic--of content type Comic and taxonomy term All Comics --Comicname. The comics are sorted by title, which begins with the date. This is so that they can be kept in order even though they may not always be uploaded sequentially.
I'm digging through the API stuff, but apparently I'm not getting it. I know there's got to be a way to do this, but I'm stumped.
If worse comes to worst, I can just wait for Panels 2 to be finished--Obviously this isn't life or death here. I just keep thinking that I must be missing something simple (as usual).
Rob Hamm
http://www.sage-comics.com
Hello. If you are showing
Hello.
If you are showing only one node at a time and you are using a view to do this, then you can add to the fields list: 'Comment: Comment' or just the comment count or any other field for that matter.
Right now I can see this node:
Is that the one?
Also, I can see a list of comics on top of that one, is that another block?
Also, I strongly recommend using path auto, it helps maintain a more search engine friendly environment.
http://inTribu.com
Ah, that's actually a
Ah, that's actually a different site--and while I'd try your advice (which I appreciate), looks like exactly what I want has been built into the most recent release of views.
Thanks again for jumping in to help!
Rob Hamm
http://www.sage-comics.com
Great, I hope the new views
Great, I hope the new views module will give you what you need.
Let us know if you need any further help.
http://inTribu.com