Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » $manager->setPluralTitle inconsistency?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 259 Views
  • Matty Balaam
    Community Member
    69 Posts

    $manager->setPluralTitle inconsistency? Link to this post


    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:


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


    <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?


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.