Well, Discuss link is easy to theme, but the thing I'd like to theme are the comments displayed under the text in a node.
They are outputed in "div id=comments" which is nested under "div class="content". I'd like to have them outside this content class, like a separate class. I use Acquia marina and the current output is:
div class=meta
div class=content
div class=links
div class=terms
As mentioned, comments are in this content class. Discuss this link is nested in links class. I need to move comments and "Discuss this" link under this "terms" class and that is, at least I think so, impossible this way.
Comments
Comment #1
AlexisWilke commentedlion123,
Ah! Yes... The comments themselves are themed with one of the following functions:
I'm not too sure that I could make it specific to Discuss This! I guess I could re-implement the same themes and call the comment themes by default...
At the end, it calls another theme called comment_wrapper() as follow:
And as you can see, I just added a div with the class "discussthis" (should be there within 12h). If that is enough, then we're good. Otherwise, I will add themes for Discuss This! that you can overload in your theme. (isn't that sentence crystal clear?!)
Thank you.
Alexis
Comment #2
lion123 commentedThank you. It's easier to theme it now, but I still can't pull it out of the "content" class.
Here is the theme code in node.tpl.php:
Is there a way I can control "discussthis" class from here? Can i put them after "terms" class or between "links" and "terms"?
And just a small notice for a simple change :) It would be more logical to sort comments that are displayed in a node as "newest first". Because when you collect many posts, there is no sense in displaying first comments.
Thank you once more.
Comment #3
AlexisWilke commentedGood idea...
I mapped my development on to the Core and they actually attach the comments to the content block:
(see the $output .= comment_render(...) call)
As far as I know, all we have to do is put the Discuss This! comment in another array parameter which is then transform in a theme variable... I'll have to investigate to make sure that's doable.
Thank you.
Alexis
Comment #4
dom. commentedModule maintainer has changed. I'm closing this issue after years of inactivity, please open a new issue if needed.
Comment #5
dom. commentedModule maintainer has changed. I'm closing this issue after years of inactivity, please open a new issue if needed.