Jump to content

Recommended Posts

Posted

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?

Posted

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.
Posted

Ouch.

I just wasn't sure if simple copy&paste will work – in case that some of html/css is overloadable from /site/admin-templates/ but if not overloaded, it's generated from module or something.

Thanks Ryan

Posted

I like the overloading idea for some of these files. Will look at taking this approach in the future.

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
  • Recently Browsing   0 members

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