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

DataObjectManager: Change Text in Add Button


Go to End


3 Posts   1588 Views

Avatar
DeklinKelly

Community Member, 197 Posts

24 July 2010 at 1:38am

I have a DataObjectManager item named: "Top278x90AdItem"

The button to add items reads: "Add Top278x90 Ad Item"

How can I make it read: "Add Banner (278x90)"

Avatar
UncleCheese

Forum Moderator, 4102 Posts

24 July 2010 at 1:56am

$yourDOM->setAddTitle("Some Text");

Avatar
DeklinKelly

Community Member, 197 Posts

24 July 2010 at 2:08am

Perfect, thanks!