Difference between revisions of "Branding.pl"

From EPrints Documentation
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
{{cfgd}}
 
{{cfgd}}
  
Branding.pl is where your site logo is defined. By default the site logo appears in in the top right hand corner of your template. You can change where it appears by modifying your repository style sheet or by changing your repository [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/lang/en/templates | template]].
+
'''branding.pl''' is where your site logo is defined. By default the site logo appears in in the top right hand corner of your template. You can change where it appears by modifying your repository style sheet or by changing your repository [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/lang/en/templates | template]].
  
 
You can also set a repository theme. This a set of styles which change the look and feel of your repository.
 
You can also set a repository theme. This a set of styles which change the look and feel of your repository.
  
 
==Example==
 
==Example==
 +
<pre>
 
# Replace this with your logo, or just replace the file in
 
# Replace this with your logo, or just replace the file in
 
# cfg/static/images and run generate_static
 
# cfg/static/images and run generate_static
Line 17: Line 18:
  
 
# $c->{theme} = "green"
 
# $c->{theme} = "green"
 +
</pre>

Latest revision as of 12:03, 27 January 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Back to cfg.d

branding.pl is where your site logo is defined. By default the site logo appears in in the top right hand corner of your template. You can change where it appears by modifying your repository style sheet or by changing your repository template.

You can also set a repository theme. This a set of styles which change the look and feel of your repository.

Example

# Replace this with your logo, or just replace the file in
# cfg/static/images and run generate_static

$c->{site_logo} = "/images/sitelogo.gif";

# A theme overrides some of the styles and images used by
# eprints. A theme must exist as a directory in 
# /opt/eprints3/lib/themes

# $c->{theme} = "green"