module(..., package.seeall) NODE = { prototype="@Collection" } NODE.child_uid_format = "%d" NODE.save_hook = "forums.save_discussion" NODE.fields = [[ author = {1.3} creation_time = {1.4} activity_time = {1.5} activity_node = {1.6} ]] NODE.edit_ui = [[ local origContent = content reset() prototype = {1.0, "hidden", div_class="hidden"} title = {1.1, "text_field"} content = origContent content[1] = 1.2 ]] NODE.admin_edit_ui = [[ disc_section = {1.410, "div_start", id="disc_section", closed="true"} author = {1.412, "text_field"} creation_time = {1.413, "text_field"} activity_time = {1.414, "text_field"} activity_node = {1.415, "text_field"} disc_section_end = {1.416, "div_end"} ]] NODE.child_proto = "@Comment" NODE.child_defaults = [=[ new = [[ prototype = "@Comment" title = "New Reply" actions = 'save="collections.save_new"' ]] ]=] NODE.html_content = [=[