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.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Blog: Moving content to new tab removes Date, Author and Tags


Go to End


2 Posts   1532 Views

Avatar
DeklinKelly

Community Member, 197 Posts

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));

Avatar
QL Marketing

Community Member, 2 Posts

9 August 2010 at 12:39pm

This seems to work for me:

$fields->addFieldToTab('Root.Content.Zzz', $fields->datafieldByName('Content'));