7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Custom text in button for DataObjectManager items
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: | 406 Views |
-
Custom text in button for DataObjectManager items

3 December 2010 at 2:35am
In the administrative area, there is a button that says: "Add Social Site" but I want it to say: "Add a Link for a Social Networking Site"
public function updateCMSFields(FieldSet &$fields) {
$m->setSourceID($this->owner->ID);
$fields->addFieldToTab("Root.FooterMenu", $m);$m = new SiteConfig_DataObjectManager(
$this->owner,
'SocialSite',
'SocialSite',
array('Link'=>'Link', 'Text'=>'Text', ),
'getCMSFields_forPopup'
);$m->setSourceID($this->owner->ID);
$fields->addFieldToTab("Root.SocialMenu", $m);}
-
Re: Custom text in button for DataObjectManager items

3 December 2010 at 3:50am
$m->setAddTitle("a Link for a Social Networking Site");
--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com
| 406 Views | ||
|
Page:
1
|
Go to Top |

