1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Blog: Moving content to new tab removes Date, Author and Tags
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 606 Views |
-
Blog: Moving content to new tab removes Date, Author and Tags

28 July 2010 at 11:37am
This code moves "Content" to a new tab but it also removes the Date, Author and Tags.
$fields->removeFieldFromTab("Root.Content.Main","Content");
$fields->addFieldToTab("Root.Content.Zzz", new TextareaField("Content", _t("BlogEntry.CN", "Content"), 20)); -
Re: Blog: Moving content to new tab removes Date, Author and Tags

9 August 2010 at 12:39pm
This seems to work for me:
$fields->addFieldToTab('Root.Content.Zzz', $fields->datafieldByName('Content'));
| 606 Views | ||
|
Page:
1
|
Go to Top |


