Orchardcore: it's possible to add extra css ,js file to admin them?

Created on 27 Jul 2019  路  5Comments  路  Source: OrchardCMS/OrchardCore

How can I add extra CSS or js file in admin theme?
I don鈥檛 want to create a new admin theme.

documentation

Most helpful comment

TODO: Create a guide on how to create a custom admin theme.

All 5 comments

Every .js file that are added in the /Assets/js folder of TheAdmin theme will be bundled by the gulp pipeline. Though if you want to customize some admin views you will also require to modify the TheAdmin theme. I strongly suggest that you create a new Admin theme by copying the TheAdmin theme and renaming it for doing this. Else you will run into merge conflicts if we change anything the the TheAdmin theme. Knowing that you are using OC as a Nuget package I think that this will be the most relevant way for doing this.

so i have to create new admin them.

Just for infos in your theme manifest you will need the admin tag and you can specify that your theme is based on TheAdmin theme so that you don't need to override again all the views.

...
Tags = new [] { "admin" },
BaseTheme = "TheAdmin"
...

TODO: Create a guide on how to create a custom admin theme.

See #5380 issue to create an admin theme

Was this page helpful?
0 / 5 - 0 ratings

Related issues

randaratceridian picture randaratceridian  路  3Comments

kevinchalet picture kevinchalet  路  4Comments

aghili371 picture aghili371  路  3Comments

ns8482e picture ns8482e  路  4Comments

hishamco picture hishamco  路  3Comments