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.

Customising the CMS /

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

Customizing ModelAdmin filter labels


Go to End


3 Posts   1249 Views

Avatar
sherlack

Community Member, 10 Posts

9 July 2015 at 9:44am

Hi,

I need to change the filters labels text for one of my admin areas in the cms. How i could do that?

Screenshot:
https://www.dropbox.com/s/s16rogd423oyp4a/filter_labels.jpg?dl=0

Avatar
Devlin

Community Member, 344 Posts

9 July 2015 at 7:43pm

class MyModel extends DataObject {
	private static $db = array(
		'Foo' => 'Varchar(128)',
	);
	public static $searchable_fields = array(
		'Foo' => array(
			'title' => 'Bar',
		),
	);
}

Avatar
sherlack

Community Member, 10 Posts

22 July 2015 at 6:31am

Thank You Devlin!