Project assets module.
editAsset (assetID:String, vars:Vars, back:String):Void
Show asset and upload form.
Parameters:
asset
Asset type ID.
vars
Request variables. Need to have "id" variable to get asset ID.
back
Return page link.
inline registerAsset (asset:_Asset):Void
Registers an asset type. All asset types must have unique IDs.
Parameters:
asset
Asset type.
inline registerAssets (assets:Array<_Asset>):Void
Registers multiple asset types. All asset types must have unique IDs.
Parameters:
assets
Asset types array.