EPrints Technical Mailing List Archive

Message: #02447


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Version 3.3.12 - changing the front page


Hi Malcolm,

The two highlighted ‘archive_name’s in your file:

The first is the <title> of the page (displayed in e.g. browser header bars/bookmarks).

The second is the title for the eprints logo image.

 

Try (logo to the left of the title):

<div class="ep_tm_site_logo">
    <a href="" title="{phrase(
'archive_name')}">
        <img alt="{phrase('archive_name')}" src="">

        <epc:phrase ref="archive_name"/>
    </a>
</div>

--------------------------------------

or (no logo):

<div class="ep_tm_site_logo">
    <a href="" title="{phrase(
'archive_name')}">
        <epc:phrase ref="
archive_name"/>
    </a>
</div>

 

- I hope I’ve understood your problem!

 

Cheers,

John

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 26 November 2013 11:09
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Version 3.3.12 - changing the front page

 

Hi,

Hi,

 

I want to put some text 'WestminsterResearch' on the top right of our home page.

I would expect my .../cfg/lang/en/templates/default.xml  having a mention for the phrase 'archive_name' would do the job, but it doesn't work and I'm having to do it by adding:

 

<div class="ep_tm_archivetitle">
<p>WestminsterResearch</p>
</div>

The problem I'm having is getting it in line with my logo on the left corner. Using the default.xml on my version 3.2.3 it works fine.

 

My xml abilty is below basic. Is there a problem with my phrases?

 

This is the top of my default.xml file:

 

<?xml version="1.0" standalone="no"?>
<!DOCTYPE html SYSTEM "entities.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epc="http://eprints.org/ep3/control">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title><epc:pin ref="title" textonly="yes"/> - <epc:phrase ref="
archive_name"/></title>
    <link rel="icon" href="" type="image/x-icon"/>
    <link rel="shortcut icon" href="" type="image/x-icon"/>
    <epc:pin ref="head"/>
  </head>
  <body>
    <epc:pin ref="pagetop"/>
    <div class="ep_tm_header ep_noprint">
      <div class="ep_tm_site_logo">
        <a href="" title="{phrase(
'archive_name')}">
          <img alt="{phrase('archive_name')}" src="">        </a>
      </div>

 

Thanks,

Malcolm.

The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW.

This message and its attachments are private and confidential. If you have received this message in error, please notify the sender and remove it and its attachments from your system.