Difference between revisions of "Front Page Warning"

From EPrints Documentation
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
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=
+
Welcome to YOUR REPOSITORY NAME. Start customising this repository.
  
Edit the file (using your favourite text editor e.g. vim):
+
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
  
Remove all reference to the warning and information and replace with :
+
If this does not exist copy the file from the location below to the location above:
  
  <div class="ep_toolbox" ><div class="ep_toolbox_content" >
+
  EPRINTS_PATH/flavours/pub_lib/cfg/lang/en/static/index.xpage
#########
 
Your message here
 
#########
 
</div></div>
 
  
Don't forget to re-generate views see [[Getting_Started_with_EPrints_3 | Getting Started]]
+
Then you need to delete the whole block that for the div with class '''ep_msg_message'''.  This should look something like:
 +
 
 +
&lt;div class="ep_msg_message"&gt;
 +
  &lt;div class="ep_msg_message_content"&gt;
 +
    &lt;div class="ep_msg_message_icon" style="width: 32px;"&gt;
 +
      &lt;img alt="Message" src="/style/images/message.png"&gt;
 +
    &lt;/div&gt;
 +
    &lt;div class="ep_msg_message_text"&gt;Welcome to Test Repository. &lt;a rel="external" href="https://wiki.eprints.org/w/New_Repository" target="_blank"&gt;Start customising this repository&lt;/a&gt;.&lt;/div&gt;
 +
  &lt;/div&gt;
 +
&lt;/div&gt;
 +
 
 +
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_with_EPrints_3 | Getting Started]] guide.
 +
 
 +
[[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.