Custom Settings (Properties)

Skip to end of metadata
Go to start of metadata

Custom Settings/Properties can be added programmatically to every asset. This is mostly used for plugins or something similar.

<?php

$asset = Asset::getById(2345);
$settings = $asset->getCustomSettings();
$settings["mySetting"] = "this is my value this can be everythin also an array or an object not only a string";
$asset->setCustomSettings($settings);
$asset->save();

?>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.