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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Item/Order Numbers for DataObjectManager Items


Go to End


2 Posts   1041 Views

Avatar
DeklinKelly

Community Member, 197 Posts

11 August 2011 at 1:39am

Edited: 11/08/2011 1:39am

In the administrative area, I want DataObjectManager item/order number to be listed in the first column.

This does NOT work:

array('Item #' => 'Item ' . $i++, 'Link'=>'Link', 'Text'=>'Text', )

		$obj = new SiteConfig_DataObjectManager( 
	         $this->owner,
		 'FooBarZooph',
		 'FooBarZooph', 
		 array('Link'=>'Link', 'Text'=>'Text', ),
		 'getCMSFields_forPopup'          
		 );
		$obj->setSourceID($this->owner->ID);
		$fields->addFieldToTab("Root.Content.FooBar", $obj); 

Avatar
UncleCheese

Forum Moderator, 4102 Posts

16 August 2011 at 1:35am

Did you try 'Pos' ?