Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS error: hardcoded CMS icon path does not handle '_resources' folder #19

Open
jules0x opened this issue Jul 23, 2019 · 4 comments
Open

Comments

@jules0x
Copy link
Contributor

jules0x commented Jul 23, 2019

private static $menu_icon = 'resources/vendor/littlegiant/silverstripe-singleobjectadmin/dist/images/singleobjectadmin.png';

@jules0x
Copy link
Contributor Author

jules0x commented Jul 23, 2019

Since SilverStripe 4.4.0 the resources folder can be '_resources' so as to free that URL segment for content pages. This approach is not compulsory, so the path could be either or...

https://docs.silverstripe.org/en/4/changelogs/4.4.0/#adopting-to-new-resources-directory

@jules0x
Copy link
Contributor Author

jules0x commented Jul 23, 2019

I'm able to override the static in yml. Not sure what the approach should be for a PR 🤔

LittleGiant\SingleObjectAdmin\SingleObjectAdmin:
  menu_icon: '_resources/vendor/littlegiant/silverstripe-singleobjectadmin/dist/images/singleobjectadmin.png'

@stevie-mayhew
Copy link
Contributor

@jules0x this should probably be done using the resource loader, and a vendor-expose in the composer.json.

Do you know how to do that - if not I can find some docs or get a PR done for you to review

@RoyalPulp
Copy link

Hey there!
isn't it possible to override the default $menu_icon by $menu_icon_class like I would do with other ModelAdmin entries in the menu?
thanks, Hendrik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants