-
It appears that OrchardCore.Application.Cms.Targets includes the following themes:
I have my own themes and never expect to use these yet they clutter up the "Admin > Design > Themes" page. Is there any way to remove them and/or hide them from the admin site? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Don't reference them from your web app |
Beta Was this translation helpful? Give feedback.
-
Use https://www.nuget.org/packages/OrchardCore.Application.Cms.Core.Targets Instead |
Beta Was this translation helpful? Give feedback.
-
Oops I thought he don't want to see his own themes for now ;) |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks, using the "core" version works! I was worried about the difference and if I'd be removing some other feature I might want but it seems it is just the themes and some translations. For others who may be interested, if you expand OrchardCore.Application.Cms.Targets under the Dependencies node in the VS editor, it includes OrchardCore.Application.Cms.Core.Targets as well as the five themes and OrchardCore.Translations.All. Switching to OrchardCore.Application.Cms.Core.Targets solves the problem above and stops a ton of translations from showing up that I didn't need. That was actually the next problem I was going to work on, getting rid of the Localization folder with all its subfolders and .po files (there's 1,559 Files, 19 Folders, and it takes 27.7 MB). I really didn't want to check that into version control knowing I wasn't going to use it. While using the core targets doesn't ger rid of the Localization folder itself, it does stop all the subfolders and files from showing up. Thanks again! |
Beta Was this translation helpful? Give feedback.
Use https://www.nuget.org/packages/OrchardCore.Application.Cms.Core.Targets Instead