Reply New Topic
2020/2/11 16:52:31
#1
Offline
Quite a regular

default comments, notifications and permission setting ?

<p>How do i disable comments and notifications as default setting of a module preferences</p>

<p>and also set default permission of module when installing the module</p>

<p> </p>

<p>is this possible? any example i can refer to ?  </p>


2020/2/16 13:56:04
#2
Offline
Home away from home

Re: default comments, notifications and permission setting ?

At this point, the default is to allow all comments if the module has comments (in icms_version.php). Probably since the base assumption is that ImpressCMS and predecessor were community sites and that would be the most common choice.

Also, all notifications defined in icms_version.php will be enabled by default.

Neither of these are reading anything from the module at the time of install.

However - you could override those options after the module is installed with the install function for the module, which is called at the very end of the process.



Edited by skenow on 2020/2/19 18:10:12
_________________

Steve Twitter: @skenow Facebook: Steve Kenow


Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.