Jump to content

Admin templates: slight modification


Adam Kiss
 Share

Recommended Posts

I was asked by my client to modify header of admin, so end-client will feel special :)

That got me thinking: is it possible to modify only a part of admin themes via 'admin-template', or is it better to replicate whole directory from 'wire' and change the parts I wish to change?

Link to comment
Share on other sites

I think the simplest thing is probably just to duplicate that admin-templates dir into your /site/ dir. But if you didn't want to do that, you could do any of these:

  • Duplicate just the file you want to change, put it in /site/templates-admin/ and then symlink to the others in /wire/templates-admin/
  • Create an 'autoload' module to intercept and modify the output of admin page renders.
  • Create an 'autoload' module to add a CSS ($config->styles) or JS ($config->scripts) file that makes the change you want.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...