Adding a link to the Front Page

From EPrints Documentation
Revision as of 09:52, 14 December 2006 by Neilmarj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

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

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 :

<a href="{$config{base_url}}/view/">Browse Repository</a>

Browse the items in the repository by subject.


After editing, as the apache user run the command;

/var/lib/eprints3/bin/generate_static yourarchivename