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

$manager->setPluralTitle inconsistency?


Go to End


676 Views

Avatar
Matty Balaam

Community Member, 74 Posts

5 November 2011 at 11:52pm

Hi,

I have been trying to change the title on the 'Add' button for uploads in ImageDataObjectManager. I had managed it for a data object using FileDataObjectManager, but whatever I tried it didn't work for ImageDOM

I had a look at the .ss templates and noticed the following difference:

FileDataObjectManager.ss

<span class="uploadlink"><img src="dataobject_manager/images/add.png" alt="" /><% _t('DataObjectManager.ADD','Add') %> $ButtonAddTitle</span>

ImageDataObjectManager.ss

<span class="uploadlink"><img src="dataobject_manager/images/add.png" alt="" /><% sprintf(_t('DataObjectManager.ADDITEM','Add %s',PR_MEDIUM,'Add [name]'),$AddTitle) %></span>

I've overridden the problem for now by coping the code from the top, but is this the reason that setPluralTitle doesn't work for me the same way?

Cheers.