Adam Kiss Posted June 10, 2011 Share Posted June 10, 2011 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 More sharing options...
ryan Posted June 10, 2011 Share Posted June 10, 2011 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 More sharing options...
Adam Kiss Posted June 10, 2011 Author Share Posted June 10, 2011 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 Link to comment Share on other sites More sharing options...
ryan Posted June 10, 2011 Share Posted June 10, 2011 I like the overloading idea for some of these files. Will look at taking this approach in the future. Link to comment Share on other sites More sharing options...
Adam Kiss Posted June 10, 2011 Author Share Posted June 10, 2011 that wasn't idea... nevermind, do what you feel will be good, you were right so far Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now