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

Ability to Create and Arbitrary Title for a DOM?


Go to End


3 Posts   955 Views

Avatar
ttyl

Community Member, 114 Posts

26 May 2010 at 6:39am

I have a data object I'm creating using model admin, and within that there is a data-object-manger to select a related object. my issue is that it automatically generates a title which isn't appropriate for the page and I'd like to replace it with something of my own choosing, and possibly a note as well. I have a picture that explains is better, but I don't see the image upload field for some reason?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 May 2010 at 6:42am

Are you talking about the text on the add button? You can use setAddTitle() for that.

Avatar
ttyl

Community Member, 114 Posts

28 May 2010 at 5:37am

Edited: 28/05/2010 6:45am

no, not on add. the dom appears below my normal text fields for the object, but the automatic title is 'persons' because it managed a 'person' object. but it looks weird so I want it to say 'people'.

I have another where a MMDOM is on it's own tab. it says 'medias' whereas I want it to say 'media'.