View more context


Mo
  1. SilverStripe\AssetAdmin\Controller\AssetAdmin:
  2. menu_title: 'Document Store'
Mo

Debuging LeftAndMain::menu_title() implies that the title is "Document Store"

Mo

but the CMS Menu hasn't changed and LeftAndMain::MainMenu() returns "Files" as the title

Mo

Ugh, apparently has to be done in a translation file

robbieaverill

i guess that makes sense. you should be able to do that at the project level i would've thought, e.g. app/lang/en.yml

robbieaverill

wait, it looks like you should be able to use a config prop too the way you've done it above

robbieaverill

ok yeah you're right, you need to change it both places

robbieaverill
  1. # app/_config/mysite.yml
  2. SilverStripe\AssetAdmin\Controller\AssetAdmin:
  3. menu_title: 'Document Store'
  4.  
  5. # app/lang/en.yml
  6. en:
  7. SilverStripe\AssetAdmin\Controller\AssetAdmin:
  8. MENUTITLE: 'Document Store'