<% Story.discussions %> |
macro renders a checkbox for enabling/disabling discussions
for backwards compatibility this macro also renders a hidden input
so that we can check if the checkbox is embedded in story/edit.skin |
Sourcecode in Story/macros.js:
1: function discussions_macro(param) { 2: if (!path.Site.preferences.getProperty("discussions")) 3: return; 4: if (param.as == "editor") { 5: var inputParam = this.createCheckBoxParam("discussions", param); 6: if ((req.data.publish || req.data.save) && !req.data.discussions) 7: delete inputParam.checked; 8: Html.checkBox(inputParam); 9: } else 10: res.write(this.discussions ? getMessage("generic.yes") : getMessage("generic.no")); 11: return; 12: } |