Difference between revisions of "Adding a link to the Front Page"
Line 9: | Line 9: | ||
I have added a link to Browse by Person. | I have added a link to Browse by Person. | ||
− | <ul class="ep_tm_menu"><li><a href="{$config{frontpage}}">Home</a></li> | + | <nowiki><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}}/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/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/subjects">Browse by Subject</a></li> | ||
− | <li><a href="{$config{base_url}}/view/people">Browse by Person</a></li></ul> | + | <li><a href="{$config{base_url}}/view/people">Browse by Person</a></li></ul></nowiki> |
After editing, as the apache user run the command; | After editing, as the apache user run the command; | ||
Line 27: | Line 27: | ||
I have changed the Browse link to point at all views : | I have changed the Browse link to point at all views : | ||
− | <div class="ep_toolbox"><div class="ep_toolbox_content" > | + | <nowiki><div class="ep_toolbox"><div class="ep_toolbox_content" > |
<a href="{$config{base_url}}/view/">Browse Repository</a><br /><br /> | <a href="{$config{base_url}}/view/">Browse Repository</a><br /><br /> | ||
Browse the items in the repository by subject. | Browse the items in the repository by subject. | ||
− | </div></div> | + | </div></div></nowiki> |
Revision as of 09:53, 14 December 2006
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 configurtion 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