Difference between revisions of "Adding a link to the Front Page"

From EPrints Documentation
Jump to: navigation, search
(Added to Howto and Customisation categories)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
===Top Menu===
 
===Top Menu===
  
To add a link to the top menu you must edit the default.xml file in the configurtion directory.
+
To add a link to the top menu you must edit the default.xml file in the configuration directory.
  
 
  vi /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/templates/default.xml
 
  vi /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/templates/default.xml
Line 36: Line 36:
  
 
  /var/lib/eprints3/bin/generate_static yourarchivename
 
  /var/lib/eprints3/bin/generate_static yourarchivename
 +
 +
[[Category:Branding]] [[Category:Howto]] [[Category:Customisation]]

Latest revision as of 12:24, 21 January 2022

Adding a Link to the Front Page

Top Menu

To add a link to the top menu you must edit the default.xml file in the configuration directory.

vi /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/templates/default.xml

I have added a link to Browse by Person.

<ul class="ep_tm_menu"><li><a href="{$config{frontpage}}">Home</a></li>
 <li><a href="{$config{base_url}}/information.html">About</a></li>
 <li><a href="{$config{base_url}}/view/year">Browse by Year</a></li>
 <li><a href="{$config{base_url}}/view/subjects">Browse by Subject</a></li>
 <li><a href="{$config{base_url}}/view/people">Browse by Person</a></li></ul>

After editing, as the apache user run the command;

/var/lib/eprints3/bin/generate_static yourarchivename

Editing the Main Menu

To add a new menu, or edit a link in the main menu you must edit the index.xpage file :

vi /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/static/index.xpage

I have changed the Browse link to point at all views :

<div class="ep_toolbox"><div class="ep_toolbox_content" >
 <a href="{$config{base_url}}/view/">Browse Repository</a><br /><br />
 Browse the items in the repository by subject.
 </div></div>


After editing, as the apache user run the command;

/var/lib/eprints3/bin/generate_static yourarchivename