changedInput schema / properties / action / enum
Previous value: -[
- "update_template",
- "patch_template",
- "create_backup",
- "gblock_create",
- "menu_create",
- "menu_update",
- "menu_update_items",
- "mail_create_form",
- "mail_update_form",
- "mail_add_field",
- "mail_update_field",
- "mail_move_field",
- "mail_save_template",
- "page_add",
- "page_update"
-]New value: +[
+ "update_template",
+ "patch_template",
+ "create_backup",
+ "gblock_create",
+ "menu_create",
+ "menu_update",
+ "menu_update_items",
+ "mail_create_form",
+ "mail_update_form",
+ "mail_add_field",
+ "mail_update_field",
+ "mail_move_field",
+ "mail_save_template",
+ "page_add",
+ "page_update",
+ "informer_create",
+ "informer_update"
+]
changedInput schema / properties / action / oneOf
Previous value: -[
- {
- "const": "update_template",
- "description": "Replaces the whole template. After validation an automatic backup (rotated) is made; the save is refused if the backup fails, and the result carries backup.id. Required: module_id, template_id, html_content."
- },
- {
- "const": "patch_template",
- "description": "Replaces one exact fragment of a template with code_paste. Makes the same automatic backup as update_template. Required: module_id, template_id, code_search, code_paste."
- },
- {
- "const": "create_backup",
- "description": "Makes a manual template backup (never rotated; refused with LIMIT_REACHED when the limit is reached) and returns backup.id."
- },
- {
- "const": "gblock_create",
- "description": "Creates a global block (block id in id or gblock_id: Latin letters, cut to 10 and upper-cased). Without content the block is created empty. A block that already exists is refused (ALREADY_EXISTS). Required: id or gblock_id. Optional: content, pda."
- },
- {
- "const": "menu_create",
- "description": "Creates a menu. Required: title. Optional: layout."
- },
- {
- "const": "menu_update",
- "description": "Changes the title or layout of a menu. Required: menu_id. Optional: title, layout."
- },
- {
- "const": "menu_update_items",
- "description": "Replaces the items of a menu. The text of an item goes in title. Required: menu_id, items."
- },
- {
- "const": "mail_create_form",
- "description": "Creates a mail form. Required: mail_name, mail_emails. Optional: mail_rez."
- },
- {
- "const": "mail_update_form",
- "description": "Updates a mail form. Required: mail_form_id. Optional: mail_name, mail_emails, mail_rez."
- },
- {
- "const": "mail_add_field",
- "description": "Adds a field to a mail form. Required: mail_form_id, mail_field_type, mail_name. Optional: mail_required, mail_values."
- },
- {
- "const": "mail_update_field",
- "description": "Updates a mail form field. Required: mail_form_id, mail_field_id. Optional: mail_field_type, mail_name, mail_required, mail_values."
- },
- {
- "const": "mail_move_field",
- "description": "Moves a mail form field up or down. Required: mail_form_id, mail_field_id, mail_direction."
- },
- {
- "const": "mail_save_template",
- "description": "Saves the notification email template of a mail form. Required: mail_form_id, mail_tmpl."
- },
- {
- "const": "page_add",
- "description": "Creates a site page. Required: page_name. Optional: page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
- },
- {
- "const": "page_update",
- "description": "Updates a site page. Required: page_id. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
- }
-]New value: +[
+ {
+ "const": "update_template",
+ "description": "Replaces the whole template. After validation an automatic backup (rotated) is made; the save is refused if the backup fails, and the result carries backup.id. Required: module_id, template_id, html_content."
+ },
+ {
+ "const": "patch_template",
+ "description": "Replaces one exact fragment of a template with code_paste. Makes the same automatic backup as update_template. Required: module_id, template_id, code_search, code_paste."
+ },
+ {
+ "const": "create_backup",
+ "description": "Makes a manual template backup (never rotated; refused with LIMIT_REACHED when the limit is reached) and returns backup.id."
+ },
+ {
+ "const": "gblock_create",
+ "description": "Creates a global block (block id in id or gblock_id: Latin letters, cut to 10 and upper-cased). Without content the block is created empty. A block that already exists is refused (ALREADY_EXISTS). Required: id or gblock_id. Optional: content, pda."
+ },
+ {
+ "const": "menu_create",
+ "description": "Creates a menu. Required: title. Optional: layout."
+ },
+ {
+ "const": "menu_update",
+ "description": "Changes the title or layout of a menu. Required: menu_id. Optional: title, layout."
+ },
+ {
+ "const": "menu_update_items",
+ "description": "Replaces the items of a menu. The text of an item goes in title. Required: menu_id, items."
+ },
+ {
+ "const": "mail_create_form",
+ "description": "Creates a mail form. Required: mail_name, mail_emails. Optional: mail_rez."
+ },
+ {
+ "const": "mail_update_form",
+ "description": "Updates a mail form. Required: mail_form_id. Optional: mail_name, mail_emails, mail_rez."
+ },
+ {
+ "const": "mail_add_field",
+ "description": "Adds a field to a mail form. Required: mail_form_id, mail_field_type, mail_name. Optional: mail_required, mail_values."
+ },
+ {
+ "const": "mail_update_field",
+ "description": "Updates a mail form field. Required: mail_form_id, mail_field_id. Optional: mail_field_type, mail_name, mail_required, mail_values."
+ },
+ {
+ "const": "mail_move_field",
+ "description": "Moves a mail form field up or down. Required: mail_form_id, mail_field_id, mail_direction."
+ },
+ {
+ "const": "mail_save_template",
+ "description": "Saves the notification email template of a mail form. Required: mail_form_id, mail_tmpl."
+ },
+ {
+ "const": "page_add",
+ "description": "Creates a site page. Required: page_name. Optional: page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
+ },
+ {
+ "const": "page_update",
+ "description": "Updates a site page. Required: page_id. Optional: page_name, page_message, page_parent_id, page_pending, page_owntmpl, page_tmpl, page_ownurl, page_access_all, page_meta_title, page_meta_description, page_meta_keywords, page_other1, page_other2, page_other3, page_other4, page_other5."
+ },
+ {
+ "const": "informer_create",
+ "description": "Creates a news or blog informer and returns it as informer_get does; unset settings take the defaults of the control panel. The site has a limit of informers (limit of informer_list). The informer shows nothing until its code ($MYINF_<id>$) is put into a site template (patch_template or update_template, for example the main page or a global block); there its HTML is shown on the public site. On another site it is shown by <script src=\"script_url\"></script>. Required: informer_module. Optional: informer_data_type, informer_title, informer_template, informer_settings."
+ },
+ {
+ "const": "informer_update",
+ "description": "Changes a news or blog informer: only the given values change, and the change shows on every page with its code at once. The module and the data type stay as created, and a random sort cannot be changed to another one or back. An empty informer_template restores the default template. Returns the informer as informer_get does. An informer with manageable false (informer_list, informer_get) is refused. Required: informer_id. Optional: informer_title, informer_template, informer_settings."
+ }
+]
addedInput schema / properties / informer_data_type
Added value: +{
+ "description": "What a news or blog informer shows: entries (default), categories, or a calendar of the entries. Cannot be changed later.",
+ "enum": [
+ "entries",
+ "categories",
+ "calendar"
+ ],
+ "type": "string"
+}
addedInput schema / properties / informer_id
Added value: +{
+ "description": "Informer id from informer_list.",
+ "type": "number"
+}
addedInput schema / properties / informer_module
Added value: +{
+ "description": "Module of a new informer: news or blog; the module must be active on the site (modules_read active_mods). Cannot be changed later. Informers of other kinds are listed and read here, but they are created and changed in the site control panel.",
+ "enum": [
+ "news",
+ "blog"
+ ],
+ "type": "string"
+}
addedInput schema / properties / informer_settings
Added value: +{
+ "description": "Settings of a news or blog informer; a setting that is not given keeps its value, a new informer gets the defaults of the control panel. Entries: sort, max_entries, max_columns, categories, exclude_categories, entries, title_max_length, period, period_days, no_entries_msg. sort: date_asc, date_desc, rating_asc, rating_desc, views_asc, views_desc, comments_asc, comments_desc, random, title, modified_asc, modified_desc (date_desc by default). period: none, day, month, year, days (none by default; days uses period_days). Categories: max_columns, sections, categories, js_format, all_categories. Calendar: year, month. Settings of another data type are ignored. Settings read by informer_get may be copied here: its keys that are not settings (id, module, code, script_url, manageable, template_custom, template_codes, data_truncated, data_length, and data_type of a change) are skipped, and its title, template and, for a new informer, data_type are used when informer_title, informer_template and informer_data_type are not given (those parameters win); a template with template_custom false is the default one and is not copied.",
+ "properties": {
+ "all_categories": {
+ "description": "Categories data type with js_format: the whole list of categories with the sections; false by default.",
+ "type": "boolean"
+ },
+ "categories": {
+ "description": "Entries: ids of the categories whose entries are shown; categories data type: ids of the categories shown. An empty list (default) means all.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "entries": {
+ "description": "Entries: ids of the entries to show; an empty list (default) means no limit.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "exclude_categories": {
+ "description": "Entries: true shows the entries of all categories but those in categories; false by default.",
+ "type": "boolean"
+ },
+ "js_format": {
+ "description": "Categories data type: give the categories as a JavaScript array instead of HTML (false by default); such an informer has no template.",
+ "type": "boolean"
+ },
+ "max_columns": {
+ "description": "Entries and categories: number of columns, 0-20; 1 by default, 0 shows the records without a table.",
+ "type": "integer"
+ },
+ "max_entries": {
+ "description": "Entries: number of entries shown, from 1 to the limit of the site (300 by default); 10 by default, at most 50 with random.",
+ "type": "integer"
+ },
+ "month": {
+ "description": "Calendar: month 1-12, 0 (default) for the current one; set together with year.",
+ "type": "integer"
+ },
+ "no_entries_msg": {
+ "description": "Entries: text shown when the period has no entries, up to 70 characters; kept only with a period.",
+ "type": "string"
+ },
+ "period": {
+ "description": "Entries: show only the entries of the current day, month or year, or of the last period_days days; none (default) shows any.",
+ "enum": [
+ "none",
+ "day",
+ "month",
+ "year",
+ "days"
+ ],
+ "type": "string"
+ },
+ "period_days": {
+ "description": "Entries: days of the days period, 1-3650, 30 by default.",
+ "type": "integer"
+ },
+ "sections": {
+ "description": "Categories data type: ids of the sections whose categories are shown; an empty list (default) means all.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "sort": {
+ "description": "Entries: order of the entries, date_desc by default; title sorts by title, modified_* by the last change. random shows at most 50 entries, and an informer cannot switch between random and another order after it is created.",
+ "enum": [
+ "date_asc",
+ "date_desc",
+ "rating_asc",
+ "rating_desc",
+ "views_asc",
+ "views_desc",
+ "comments_asc",
+ "comments_desc",
+ "random",
+ "title",
+ "modified_asc",
+ "modified_desc"
+ ],
+ "type": "string"
+ },
+ "title_max_length": {
+ "description": "Entries: longer titles are cut to this length, 0-200; 0 (default) means no limit.",
+ "type": "integer"
+ },
+ "year": {
+ "description": "Calendar: year from 2000, 0 (default) for the current one; set together with month.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / informer_template
Added value: +{
+ "description": "Template of one record of the informer: HTML with the codes of template_codes from informer_get (like $TITLE$, $ENTRY_URL$) and conditions <?if($CODE$)?>...<?endif?>, up to 30000 characters by default. An empty string restores the default template. Calendar informers and categories with js_format have no template. The HTML is shown on the site wherever the code of the informer stands.",
+ "type": "string"
+}
addedInput schema / properties / informer_title
Added value: +{
+ "description": "Name of the informer in the control panel, up to 54 characters; a new informer gets a numbered name by default.",
+ "type": "string"
+}