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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

cms breadcrumbs customisation


Go to End


3 Posts   1053 Views

Avatar
Guy Van Bael

Community Member, 61 Posts

8 February 2013 at 2:18am

Hi,

I set up SS3 with a few gridfield objects. Works fine, but i was wondering if i can change what shows up in the cms breadcrums. Now it shows the ID of the record, but i'd like to change this into something more "human readable". I attached a screenshot.

Does anyone know if this is possible?

Thanks a lot.

Avatar
Devlin

Community Member, 344 Posts

8 February 2013 at 3:24am

You need a small wrapper function in your DataObject.

Something like:

function getTitle() {
	return $this->RijTitle;
}

Avatar
Guy Van Bael

Community Member, 61 Posts

8 February 2013 at 8:22pm

Works like a charm! Thanks for helping me out Devlin