Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Show ID in Files&Images

Go to End



Community Member, 83 Posts

9 October 2010 at 11:45pm


I wanted to show the ID of each File under the files&images tab.
A single line in cms/code/AssetTableField.php helped:

function __construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
// adds an ID column         
$fieldList = array_merge(array("ID" => "ID"), $fieldList);
parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin);

But this isnt a very good solution because it makes changes within the cms/ -folder.
Does anyone know a way, without changing systemcode?