Resource functions
- get_resource_field_data
- create_resource
- delete_resource
- copy_resource
- get_resource_log
- update_resource_type
- get_resource_path
- get_resource_data
- get_alternative_files
- get_resource_types
- add_alternative_file
- delete_alternative_file
- upload_file
- upload_file_by_url
- upload_multipart
- get_related_resources
- resource_log_last_rows
- replace_resource_file
- get_resource_all_image_sizes
- put_resource_data
- update_related_resource
- relate_all_resources
- get_edit_access
- get_resource_access
- resource_file_readonly
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
toggle_active_state_for_nodes
Toggle nodes' active state. For more information, see the "Deactivating nodes" section for fixed list fields.
Available from version 10.4+.
Requires permission k.
Variable | Description | Data type | Default |
---|---|---|---|
$refs | List of node IDs | array (json encoded) | N/A |
Response
Returns the affected nodes' active state (including empty list) and 403 HTTP status if not authorised.
Note: affected nodes can be a bigger list than the one input for category trees because disabling a parent will propagate to all children.
Examples
Disabling two options - 263,264:
[ 263 => 0, 264 => 0 ]
Disabling a category tree parent option - 279:
[ 279 => 0, # Option A (parent) 285 => 0 # Option A.1 (child) ]
Re-activating a category tree parent option - 279:
[ 279 => 1 ]