Difference between revisions of "Web Interface Style and Images"

From EPrints Documentation
Jump to: navigation, search
(Style Sheet Changes)
(Added to Howto and Customisation categories)
 
(One intermediate revision by one other user not shown)
Line 27: Line 27:
  
 
Images will now be copied into the html directory.
 
Images will now be copied into the html directory.
 +
 +
[[Category:Manual]] [[Category:Howto]] [[Category:Customisation]]

Latest revision as of 12:13, 21 January 2022

Template changes

All changes to the main template (all the stuff that goes around the main content) should be made to the file /path/to/eprints3/archives/yourarchivename/cfg/lang/en/templates/default.xml, and updated using the generate_static command. Changes made in the html directory will be overwritten.

When modifications are completed, as the user apache execute;

/path/to/eprints3/bin/generate_static yourarchivename

Style Sheet Changes

All changes to style sheet setting should be made in the directory /var/lib/eprints3/archives/yourarchivename/cfg/static/style/auto, and updated using the generate_static command. Changes made in the html directory will be overwritten.

Style sheets are processed alphabetically, eprints has a local stlye sheet setup called zzz_local.css, any changes can be made in this file, and settings from previous css files will be over writen with values in this file. I use the EditCSS function in Firefox to configure my stlye sheets and copy the modifications directly into this file.

When modifications are completed, as the user apache execute;

/var/lib/eprints3/bin/generate_static yourarchivename

Image Changes

Here's where I cheat! I have taken the original files and changed the colour re-saving as the original file name. This can be a little confusing as some of the files contain the colour in the title. Changed files should be saved into the directory : /var/lib/eprints3/archives/yourarchivename/cfg/static/style/images, changes made in the html directory will be overwritten by the generate_static command.

The Site Logo can be replaced be overwritting the sitelogo.gif in /var/lib/eprints3/archives/yourarchivename/cfg/static/images/sitelogo.gif

Copy edited images to above directories, as user apache run the command;

/var/lib/eprints3/bin/generate_static yourarchivename

Images will now be copied into the html directory.