7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Override pluralTitle in DOM
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1401 Views |
-
Override pluralTitle in DOM

30 July 2009 at 7:47am Last edited: 30 July 2009 7:49am
Hi,
I tried several variations in my DataObject wich calls DOM, to change the $pluralTitle.
Although there is a function:
public function PluralTitle()
{
return $this->pluralTitle ? $this->pluralTitle : $this->AddTitle()."en";
}It always take the AddTitle to generate a plural name.
It is posible to change the AddTitle with:class MyDataObject extends DataObject {
static $singular_name = 'singular_name';
}in my DataObject, but I found no way to alter the plural_name in the same way like eg:
static $plural_name = 'plural_name';
What am i missing?
| 1401 Views | ||
|
Page:
1
|
Go to Top |

