robbieaverill

i think an enhancement issue would be a good idea - the ability to configure whether elements are added to the start or end of the list (when not using the inline add button between elements)

robbieaverill

np, i'm gonna have a quick play and see if i can formulate a PR

robbieaverill

https://github.com/silverstripe/silverstripe-admin/issues/911

Show 1 attachment(s)
robbieaverill

SS 4

I want to deep link to a GridField item's Settings tab (for example). Allegedly you used to be able to do this by appending #Root_Settings to the URL for it (maybe in SS3?), which would detect the anchor in the URL and automatically set it as the active tab.

This doesn't work in SS 4.4.x - there's a todo example https://github.com/silverstripe/silverstripe-framework/blob/4/src/Security/Group.php#L231-L237|here which indicates that it didn't work when that comment was written either.

At some stage this jQuery UI interface is probably going to be React driven anyway, but this might be a nice quick win addition in the meantime.

Hide attachment content
robbieaverill

does anyone know a trick to auto link to a specific tab in a GridFieldDetailForm? i feel like adding #Root_Tabname to the URL should auto select it, but it doesn't, and i found this which indicates it doesn't work: https://github.com/silverstripe/silverstripe-framework/blob/4/src/Security/Group.php#L231-L237

Show 1 attachment(s)
src/Security/Group.php:231-237

                    sprintf(
                        '<a href="%s" class="add-role">%s</a>',
                        SecurityAdmin::singleton()->Link('show/root#Root_Roles'),
                        // TODO This should include #Root_Roles to switch directly to the tab,
                        // but tabstrip.js doesn't display tabs when directly adressed through a URL pragma
                        _t('SilverStripe\\Security\\Group.RolesAddEditLink', 'Manage roles')
                    ) .
Hide attachment content
robbieaverill

Would it fix your problem though? Could be a useful API to surface in DBDatetime though anyway