Message of the day:
Welcome to Silverstripe | Current release: https://www.silverstripe.org/download | Community Forum: https://forum.silverstripe.org | Feature requests: https://forum.silverstripe.org/c/feature-ideas
Channel purpose:
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
CoC: https://goo.gl/KmfDU5
Archive: https://slackarchive.silverstripe.org
Messages:
125351
Also, on the whole _resources
folder topic, are there any known module conflicts with the _resources
folder name change? I understand that its the new standard to avoid clashes with Page urls but what if I never intend on using http://mysite.com/resources
as a page?
In silverstripe 4 is there a template variable for the resources folder? I know there was a fairly recent change to the resource folder name (to _resources) so I think it would be useful to have a template variable for it
@Meng Tong has joined the channel
Neat
you could iterate over $db fields in your extension and run a function like this on each field
public static function move_fields( FieldList $fields, string $fieldName, string $newTabName = 'Root.Main', string $insertBefore = null ): FieldList { $field = $fields->dataFieldByName($fieldName); $fields ->removeByName($fieldName) ->addFieldToTab($newTabName, $field, $insertBefore) ; return $fields; }
meh, I'll leave it for now