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.

General Questions /

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

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

cms breadcrumbs customisation


Reply


3 Posts   488 Views

Avatar
Guy Van Bael

Community Member, 35 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, 217 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, 35 Posts

8 February 2013 at 8:22pm

Works like a charm! Thanks for helping me out Devlin