Comment in Panels

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by tfhavingfun on November 29, 2012 at 5:50am

Hi, I'm using Panels to customize my "Article" content type nodes.

In order to get a better control over css id/class, I decide to tear "Article" apart into entities/fields and combine them together again with Views and Panels. The Content part is easy, I can pull all the information I need with Views and set the css id/class individually.

When it comes to Comment, I can pull the relevant entities/fields with Views and add them to Panels page, but I have no idea how to make comments with larger depth indent. I guess I first have to separate parent comments and child-comments apart, and use CSS to style them?

I'm also using Panels Everywhere and Precision theme to customize my site's template.

I'm no expert in drupal, so if any one ever did this before or you know how to do this, pls help. Any suggestions are welcome and appreciated. Thank you very much.

Categories: ,

Comments

Hi... I think each time the

Posted by mixxmac on November 29, 2012 at 6:57am

Hi... I think each time the comments are nested they are wrapped in a

<

div class="indented"> so the following css handles the indents...

.indented {margin-left: 25px;}

Thanks for your input but...

Posted by tfhavingfun on November 29, 2012 at 7:29am

In normal cases, nested comments are wrapped in the ".indented" class. But in my case, I choose to pull comment author, date, comment body, reply/edit, ect using Views and add this View content pane into panel, so the ".indented" class will not be given by Drupal, and I can not seem to find a solution to make it work that way. Any way thank you very much for your reply!

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /