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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1466 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!