I'm trying to get the 'Reply to this' toggle to default to closed, on discussions in a forum, i've found the 'default' settings in NewCommentForm.js, and changed _open: true, to have a default of false, but it's not taking effect.
How can i get these new default settings to come into effect? is it like the profiles layout where i have to make my network aware that it's been updated?
Can you give me a little bit more detail on what you previously done? While I see a form tag of dojoType="NewCommentForm", I haven't seen any references to NewCommentForm.js in code.
In what ways are you attempting to change the _open settings? Are you doing it via the standard JS hack in the tracking box?
The NewCommentForm.js gets called by xg.forum.topic.NewCommentForm, from a number of places.
In NewCommentForm.js there is a couple of lines;
16 /** Whether the form is open or closed (rolled up) */
17 _open: false,
Previously the _open: was set to true, i've changed it to false, along with _autoclose set to true, a couple of lines further down.
When the page gets 'compiled' the form which contains the comment_form_toggle has the params _open and _autoclose, both of which are set to the original defaults, and not my settings.
Do i need to make the comment_form aware that it has been updated?
Hmmm, better to go to the comment_form_toggle and change the _open param there. Go to widgets/forum/templates/topic/fragment_commentForm.php and edit line 34 to _open="false", that worked for me okay.