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.

Blog Module /

Discuss the Blog Module.

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

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


Reply


2 Posts   859 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'));