Difference between revisions of "Front Page Warning"

From EPrints Documentation
Jump to: navigation, search
Line 1: Line 1:
[[Category:Branding]]
+
When EPrints is initially installed you will see a front page warning like the following:
[[Category:Rubbish]]
 
=Front page warning=
 
  
Edit the file (using your favourite text editor e.g. vim):
+
Welcome to YOUR REPOSITORY NAME. Start customising this repository.
 +
 
 +
Edit the file with a text editor (e.g. Vim):
 
   
 
   
  /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/static/index.xpage
+
  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.
  
Remove all reference to the warning and information and replace with :
+
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.
  
  <div class="ep_toolbox" ><div class="ep_toolbox_content" >
+
  EPRINTS_PATH/bin/generate_static REPO_ID
#########
 
Your message here
 
#########
 
</div></div>
 
  
Don't forget to re-generate views see [[Getting_Started_with_EPrints_3 | Getting Started]]
+
To carry on configurating your ne repository see the [[Getting_Started_with_EPrints_3 | Getting Started]] guide.

Revision as of 11:56, 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 configurating your ne repository see the Getting Started guide.