Why adding new Tab in the ways I put below always adds tab as a child of Content Tab? How can I add tab in the root (near Content, Settings and History)?
$fields->addFieldToTab('Root', new Tab('ProductPhotos3', _t('ProductPage.ProductPhotos', 'Product Photos')));
$fields->addFieldToTab('Root.ProductPhotos3', new UploadField("ProductPhotos", _t("ProductPage.ProductPhotos", "Product Photos 3")));
or only second line also adding tab as a child of Content:
$fields->addFieldToTab('Root.ProductPhotos3', new UploadField("ProductPhotos", _t("ProductPage.ProductPhotos", "Product Photos 3")));
What is extra suprising for me that the code below cases that tab is NOT created and UploadField is generated inside Content tab.
Could anyone clarify the case to me?
$fields->addFieldToTab('Root.Main', new Tab('ProductPhotos3', _t('ProductPage.ProductPhotos', 'Product Photos')));
$fields->addFieldToTab('Root.Main.ProductPhotos3', new UploadField("ProductPhotos", _t("ProductPage.ProductPhotos", "Product Photos 3")));
To be more precise I attached the screen below. What I'd like to achieve is having the tab showed with red arrow in the place where is the blue one: