Улучшенный или дополненный джот, от автора JOCO
modxcms.com/forums/index.php/topic,39256.0.html
Jot + Events
В джот добавлены некоторые события Jot. Так что разработчики могут добавлять свои коды событий Jot
событий:
onBeforeConfiguration- Before processing parameters
onBeforeRunActions -Before executing Jot active actions such as «publish», «edit», etc
onRunActions -After executing Jot active actions such as «publish», «edit», etc
onConfiguration -After processing and validating parameters
onFirstRun -On creating tables and default data
onSubscriptionCheck -On checking for subscriptions
onDeleteComment -On deleting a comment
onGetCommentFields -On getting all data for a comment
onSaveComment -On inserting or update comment
onGetSubscriptions -On getting subscribers
onGetUserInfo -On getting user data
onBeforeNotify -Right before runnig mail() to notify users
onBeforeSubscribe -Before inserting data into `jot_subscriptions` table
onBeforeUnsubscribe -Before deleting data from `jot_subscriptions` table
onValidateFormFieldFail -Jot uses Regex to validate form fields and returns error message when there is no match. This function runs there in a loop of validation inputs.
onBeforePOSTProcess -While processing form values from $_POST array
onProcessForm -Right before returning processed form data
onBeforeProcessPassiveActions -Before executing Jot passive actions such as «count-comments»
onProcessPassiveActions After executing Jot passive actions
onBeforeGetCommentCount Right before calculating comment count
onBeforeGetComments After creating SQL query and before execute SQL command
onGetComments After -executing SQL command to get comments
onReturnOutput After- Processing all comment data to display
onSetDefaultOutput -On setting dafult output
Есть такая функция:
Подписаться могут гости сайта, которые не являются членами сайта. Гости будут уведомлены через свою электронную почту о новых комментариях.
Мне надо немного другое. Чтоб можно было отправлять уведомления, на эл.почту указанную в ТВ в документе… то есть организован каталог, есть страница фирмы с емайлом, надо чтоб на этот емайл приходили уведомления с новыми комментариями.
Как это лучше сделать?
Автору подобный вопрос задавали, но обещал в будущем подумать…
modxcms.com/forums/index.php/topic,39256.msg254837.html#msg254837