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.

Customising the CMS /

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

Show ID in Files&Images


Go to End
Reply


727 Views

Avatar
lx

Community Member, 83 Posts

9 October 2010 at 11:45pm

Hi,

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?

thanks