Difference between revisions of "Front Page Warning"

From EPrints Documentation
Jump to: navigation, search
m
 
Line 28: Line 28:
 
  EPRINTS_PATH/bin/generate_static REPO_ID
 
  EPRINTS_PATH/bin/generate_static REPO_ID
  
To carry on configurating your ne repository see the [[Getting_Started_with_EPrints_3 | Getting Started]] guide.
+
To carry on configuring your ne repository see the [[Getting_Started_with_EPrints_3 | Getting Started]] guide.
  
 
[[Category:Branding]]
 
[[Category:Branding]]

Latest revision as of 11:58, 21 January 2022

When EPrints is initially installed you will see a front page warning like the following:

Welcome to YOUR REPOSITORY NAME. Start customising this repository.

Edit the file with a text editor (e.g. Vim):

EPRINTS_PATH/eprints3/archives/REPO_ID/cfg/lang/en/static/index.xpage

If this does not exist copy the file from the location below to the location above:

EPRINTS_PATH/flavours/pub_lib/cfg/lang/en/static/index.xpage

Then you need to delete the whole block that for the div with class ep_msg_message. This should look something like:

<div class="ep_msg_message">
  <div class="ep_msg_message_content">
    <div class="ep_msg_message_icon" style="width: 32px;">
      <img alt="Message" src="/style/images/message.png">
    </div>
    <div class="ep_msg_message_text">Welcome to Test Repository. <a rel="external" href="https://wiki.eprints.org/w/New_Repository" target="_blank">Start customising this repository</a>.</div>
  </div>
</div>

Alternatively, just change the text in the ep_msg_message_text for some other informational text you want to provide to those visiting your repository.

The page may automatically update, when you refresh the page in your web browser, if not you should run generate_static with the following command, replacing EPRINTS_PATH and REPO_ID as appropriate.

EPRINTS_PATH/bin/generate_static REPO_ID

To carry on configuring your ne repository see the Getting Started guide.