Events
(note: this list is incomplete and still in development)
Modules: comment item items webuser structure block feed product products contact breadcrumbs files media browser metatags website nvweb
Module: comment
Event | Parameters array | Description |
---|---|---|
edit | comment naviforms navibars |
When editing a comment in the application |
before_insert | comment | Before inserting a new comment into database |
after_insert | comment | After each new comment inserted into database |
reply_extra_fields | html (as reference) | Add extra fields when displaying a comment reply form |
save |
comment (class) | After inserting or updating a comment |
delete |
comment (class) | After deleting a comment |
Module: item (Element)
Event | Parameters array | Description |
---|---|---|
save | item | After inserting or updating a content item |
delete |
item | After deleting an item |
Module: items (Elements function)
Event | Parameters array | Description |
---|---|---|
edit | item naviforms navibars |
When editing a content item in the application. |
Module: webuser
Event | Parameters array | Description |
---|---|---|
sign_in |
webuser (object) |
After webuser has authenticated or returned to a website where he allowed an extended session cookie |
edit | webuser (object) navibars (object reference) naviforms (object reference) |
When editing a webuser in Navigate CMS. |
save | webuser (object) | After creating or updating a webuser into database. |
delete | webuser (object) | After a webuser has been deleted from database. |
vote | status (boolean/string) webuser_vote_id (int) webuser (int) object (string) object_id (int) value (int) replace (boolean) |
After processing a vote sent by a webuser |
Module: structure (Structure)
Event | Parameters array | Description |
---|---|---|
edit | item naviforms navibars |
When editing a structure entry (category) in the application |
save |
structure (class) | After inserting or updating a structure entry |
delete |
structure (class) | After deleting a structure entry |
Module: block
Event | Parameters array | Description |
---|---|---|
save |
block (class) | After inserting or updating a block |
delete |
block (class) | After deleting a block |
Module: feed
Event | Parameters array | Description |
---|---|---|
save |
feed (class) | After inserting or updating a feed |
delete |
feed (class) | After deleting a feed |
Module: product
Event | Parameters array | Description |
---|---|---|
save |
product (class) | After inserting or updating a product |
delete |
product (class) | After deleting a product |
Module: products (function)
Event | Parameters array | Description |
---|---|---|
edit | product naviforms navibars |
When editing a product in the application |
Module: contact
Event | Parameters array | Description |
---|---|---|
after_sending | sent (boolean) message (text) |
After trying to send a message |
before_sending |
subject message emails files vars |
Before trying to send a message Return an array with ["error" => "something"] to prevent sending the message |
Module: breadcrumbs
Event | Parameters array | Description |
---|---|---|
hierarchy |
hierarchy (array, by reference) |
The ordered array of category IDs that will be shown in breadcrumbs. The hierarchy parameter is passed by reference, so you can modify it to append or remove categories. |
Module: files
Event | Parameters array | Description |
---|---|---|
actions |
navibars (object, by reference) |
Add options into the "Extra" button of the actions bar |
contextmenu |
actions (array, by reference) |
Add options to files contextmenu (have to be <li> tags, we recommend adding a style "padding-left: 3px;"). |
Module: media_browser
Event | Parameters array | Description |
---|---|---|
contextmenu |
actions (array, by reference) |
Add options to each file contextmenu (have to be <li> tags, we recommend adding a style "padding-left: 3px;"). |
Module: metatags
Event | Parameters array | Description |
---|---|---|
render |
out (html text, by reference) |
Before placing the generated metatags on page. |
Module: website
Event | Parameters array | Description |
---|---|---|
save |
website (class) | After inserting or updating a website |
delete |
website (class) | After deleting a website |
cron | (empty) | When executing the website "cron" (once a minute between visits) |
Module: nvweb
Event | Parameters array | Description |
---|---|---|
before_output | (empty) | Before sending the generated page to the browser (use global variables to make changes) |
find_route |
route | Called if a requested path has not been found; useful for extension custom paths. Return null or a "nv_paths" row object. |
Do you need a module/event not listed in this page? Tell us!
0 Comments