WHFSFolder::UpdateMetadata (open)
Update the metadata for this whfs object. Throws on invalid data.
Syntax
LOADLIB "mod::system/lib/internal/whfs/objects.whlib";
MACRO UpdateMetadata(RECORD newmetadata, RECORD options)Parameters
RECORD newmetadataNew metadata. All cells are optional.
creationdateCreationdate for this object (datetime)
dataData of the file (blob, files only)
descriptionDescription of the object (string, max 2048 characters)
externallinkURL this file links to (string, files only)
filelinkId of object this file links to (integer, files only)
indexdocId of indexdocument of this folder (integer, folders only, must link to file within this folder)
keywordsKeywords (string, max 1024 characters)
modificationdateModificationdate for this object (datetime)
nameName of this object (string, must check ok with IsValidWHFSName);
orderingRelative ordering vs other objects in the parent folder (integer)
publishWhether this file is published. Ignored for non-publishable file types. (boolean, files only)
publishedPublication status of this file is published (integer, files only)
titleTitle of the object (string, max 256 characters)
typeId of the type of this object (integer)
RECORD optionsOptions
BOOLEAN setindexIf TRUE, make this file the index of its parent folder
Description
Modification date and modified by are updated when the data or type of a file is updated. Auto-detects and updates type, title, description and keywords if not specified when replacing a 0-byte file.