Has anyone had any luck moving the URL field to the Main tab? I tried it about a month ago with no luck. i am pretty familiar with customizing the CMS tabs in the past, but cannot seem to get this particular field to move correctly. any tips would be appreciated.
What about something like below? I didn't try that, this is based on code that moves tabs around, so it might fail :)
$segment = $fields->fieldByName('Root')->fieldByName('Content')->fieldByName('Metadata')->fieldByName('URLSegment'); $fields->removeFieldFromTab('Root.Content.Metadata', 'URLSegment'); $fields->addFieldToTab('Root.Content.Main', $segment);
thanks for idea - but this method did not work. anyone else have any insight/experience with moving this Field to the Main tab?
This works for me:
$fields->removeFieldFromTab('Root.Content.Metadata', 'URL'); $fields->addFieldToTab("Root.Content.Main", new TextField('URLSegment','URL'));
You might need to update the script, it uses the id of the input element which may have changed after you moved it.
either edit it or better still, block the requirement and add your own updated version of the script (in your getCMSFields).
This is based on v2.4.0.