Difference between revisions of "Adding a link to the Front Page"
(→Top Menu) |
|||
Line 1: | Line 1: | ||
+ | [[Category:Configuration]] | ||
==Adding a Link to the Front Page== | ==Adding a Link to the Front Page== | ||
Revision as of 13:35, 8 February 2010
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