Collections functions
General functions
Render functions
Theme permission functions
Resource functions

Table: resource_type

Resource types, such as photo / video / case study. The choice of resource type will determine the metadata fields a resource has.

ColumnTypeNote
refint(11)Auto incrementing index
namevarchar(200)Resource type name.
allowed_extensionsTEXTList of allowed extensions for this resource type.
order_byint(11)Order defined by the adminstrators.
config_optionstextSupports separate configuration options for resources depending on resource type.
tab_namevarchar(50)Setting a tab name means that related resources of this type will be displayed in that tab along with the metadata.
push_metadataint(11)If set, the metadata for this resource will be displayed on the resource view page for any related resources.
inherit_global_fieldstinyint(1)Should resources of this type inherit the global fields?
coloursmallintColour used for map marker when using map view search results.
icontinytextFont Awesome class name for icon displayed in thumbnail search results.

Default contents are as follows.

refnameallowed_extensionsorder_byconfig_optionstab_namepush_metadatainherit_global_fieldscolouricon
1Photo1fas fa-image
2Document1fas fa-file-alt
3Video1fas fa-video
4Audio1fas fa-music

Please see the schema overview for context. This document was last updated on the 20th of May 2022 at 09:05 (Europe/London time).