Hi,
Yes CSS files (and everything in ./resources I guess) are in the JARs themselves, so a recomiple (or repackaging of the admininterface module at the least) seems necessary. But, if I understand your needs correctly, couldn't a simple CSS override do the job ?

You could include your own CSS file in your templates, as the last thing imported in the <head> section, a file you'd design to override properties / CSS classes you don't like. Or just to experiment, put directly inline at the end of your <head> in your template something like : <style type="text/css"> .mgnlControlBar { background-color: white; } </style>

I never tried this myself, but it seems reasonnable to think it'll work. And that's the best solution I can think of to avoid any modification of the JARs.

Hope this helps.
Guillaume.


Le 3 mai 07 à 12:49, Thomas Billich a écrit :

hello everyone,

I like to change the css of the green bars (mainbar, Edit, Delete, Move and New).


My First step was to look at the source code of a html-page in the authoring environment (Website ->right klick -> open page).

What I found was:
- a CSS link: <link rel="stylesheet" type="text/css" href="/ magnoliaAuthor/.resources/admin-css/admin-all.css" /> - all CSS class-names which I want to change like class="mgnlMainbar" and so on.

Second I searched in the magnoliaAuthor.war (file system) for the admin-all.css file. I was no able to find it. After a while I found a lot other things like images which are not in the file systems

The Next step was to search in the Magnolia sources-files for the admin-all.css and found it in: magnolia-3.0.2\magnolia-module-admininterface\src\main\resources \mgnl-resources\admin-css
this files includes other css-files:

@import url(list.css);
@import url(general.css);
@import url(controls.css);
@import url(tree.css);
@import url(functionbar.css);
@import url(dialogs.css);
@import url(adminCentral.css);
@import url(navigation.css);
@import url(pages.css);
@import url(table.css);

The CSS classes for the bars are in the "controls.css"

I think that everything which is linked to /.resources/........ is binary saved in the embedded Derby database (Repositories) and in the file system under magnoliaAuthor.war\repositories.

(see http://www.magnolia.info/wiki/Wiki.jsp? page=UsingMysqlWithMagnolia2.1.5)

How can I change the CSS of the green bars?

- One Solution would be to change the CSS in the source code and compile magnolia new. But I want to avoid this.

Is there any other way?

Regards,
Thomas





----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to