Hello everyone I have a few questions regarding the commenting module in
magnolia.
1. how does threaded discussion work? is it somehow possible to sort comments
into threads using freemarker or will I have to write a custom class to handle
them? I temporarily solved it using jquery - I keep the id of the message in
the "id" attribute and the inReplyTo value in custom "parent" attribute,
iterate through comment divs and append them to their rightful owners but I'd
much rather do this in the backend.
(code if anyone is interested)
freemarker:
[code]
...
[#assign msgInReplyTo=msg.inReplyTo!]
[#assign msgIsReply=msgInReplyTo?has_content]
...
[#if !msgIsReply]
<div id="${msg.@id}" class="comment">
[#else]
<div id="${msg.@id}" class="comment" parent="${msgInReplyTo}">
[/#if]
...
[/code]
jquery:
[code]
jQuery.each(jQuery("#comments div.comment"), function() {
uuid = jQuery(this).attr("parent");
jQuery("div[parent = "+uuid+"]").appendTo(jQuery("div#"+uuid))
});
[/code]
2. I used to have a simple load balancing setup - two public instances behind
an apache load balancer - when I needed it I just launched the second instance,
activated the content and added it to the load-balancer. Is there a simple way
to synchronize comments across multiple instances? Or should I setup the load
balancing on repository level? (I presume that's possible).
3. is there a way to moderate the comments from the author instance? or at
least to moderate them from inside of the webpage?
thanks for your replies I tried to search documentation for answers but the 4.5
documentation is a bit lacking.
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=262ee804-7d3d-4608-b52e-3b6cc414836c
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------