[EP-tech] Re: Branding on EPrints 3.3.6

Malcolm Bodger M.Bodger at westminster.ac.uk
Mon Apr 30 15:38:22 BST 2012


Hi Tim,

I have in my templates file:

  <body>
    <epc:pin ref="pagetop"/>
    <div class="ep_tm_header ep_noprint">
      <div class="ep_tm_site_logo">
        <a href="{$config{frontpage}}" title="{phrase('archive_name')}">
          <img alt="{phrase('archive_name')}" src="{$config{rel_path}}{$config{site_logo}}"/>
        </a>
      </div>

But it did not display the archive name.

Sebastien suggested adding:
<div class="ep_tm_archivetitle_box"><a class="ep_tm_archivetitle" href="{$config{frontpage}}"><epc:phrase ref="archive_name"/></a></div>

This does work:
http://isls-eprints-31.wmin.ac.uk/

But, while WestminsterResearch is on the right, where I want it, but it's placed a line below the University of Westminster logo. I'm not sure if I need to replace ep_tm_archivetitle_box, or what I should put in zzz_local.css

Thanks,
Malcolm.


________________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] on behalf of Tim Brody [tdb2 at ecs.soton.ac.uk]
Sent: 30 April 2012 11:23
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Branding on EPrints 3.3.6

On Fri, 2012-04-27 at 12:21 +0000, Malcolm Bodger wrote:
> In my /templates/default.xml the <head> section appears to be for the
>  section below the menu bar. I want to add my archive name to the top
>  right above the menu bar, which I can do if I edit the index.xpage,
>  but I'm not sure how to give it the correct font and colour, so I
>  thought using the default.xml might be easier, but sadly no.
>
> Malcolm.

Hi,

Does this Wiki page help?
http://wiki.eprints.org/w/API:EPrints/Apache/Template

Presumably you want to put something like this inside <body> in the
template:

<body>
<div id="ep_tm_archive_name"><epc:phrase ref="archive_name"/></div>

Which you can style with:
#ep_tm_archive_name {
font-size: 150%;
}

Note! There have been bugs in the directory scanning order in the past,
which may mean your local (archives/...) changes aren't taking effect.
Regardless, if you create a local version you must restart the Web
server for it to take effect.

The load order (or should be) is here:
http://wiki.eprints.org/w/API:EPrints/Repository#template_dirs

/Tim.
__________________________
> From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] on behalf of Ian Stuart [Ian.Stuart at ed.ac.uk]
> Sent: 27 April 2012 11:33
> To: eprints-tech at ecs.soton.ac.uk
> Subject: [EP-tech] Re: Branding on EPrints 3.3.6
>
> I suspect that 3.3 is different to 3.2, and the documentation I wrote
> was from working on my 3.2 archives.
>
> Perhaps someone in the EPrints team can clarify (and annotate the
> wiki/documentation as appropriate)
>
>
> On 27/04/12 11:26, Malcolm Bodger wrote:
> > Hi Matthäus,
> >
> > Thanks for this.
> > The documentation says to put it in the /templates/default.xml file, which is where I have it, but it appears to make no difference.
> >
> > Thanks.
> > Regards,
> > Malcolm.
> >
> >
> > ________________________________________
> > From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] on behalf of Matthäus Zylka [zylkam at uni-koeln.de]
> > Sent: 25 April 2012 09:15
> > To: eprints-tech at ecs.soton.ac.uk
> > Subject: [EP-tech] Re: Branding on EPrints 3.3.6
> >
> > Hi Malcom,
> >
> > you'll have to edit the
> > ../<archive_name>/cfg/lang/en/static/index.xpage File and use the
> > <epc:phrase ref="archive_name" />  phrase for the archive name.
> >
> > I recommend you to read through the following wiki pages:
> >
> > - http://wiki.eprints.org/w/Branding_with_confidence
> > - http://wiki.eprints.org/w/Branding,_the_next_level
> >
> > Cheers,
> > Matthäus
> >
> > 2012/4/20 Malcolm Bodger<M.Bodger at westminster.ac.uk>:
> >> Hi,
> >>
> >>
> >>
> >> I'm trying to place the archive_name on the top of my page above the menu
> >> bar and I've tried editing the template/default.xml and the zzz_local.ccs,
> >> but makes no difference. Can anyone tell me the correct file to edit to
> >> place some simple text, or the phrase archive_name, in the empty space above
> >> the menue bar?
>
>
> --
>
> Ian Stuart.
> Developer: ORI, RJ-Broker, and OpenDepot.org
> Bibliographics and Multimedia Service Delivery team,
> EDINA,
> The University of Edinburgh.
>
> http://edina.ac.uk/
>
> This email was sent via the University of Edinburgh.
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> 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.
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
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.




More information about the Eprints-tech mailing list