EPrints Technical Mailing List Archive

Message: #02266


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

[EP-tech] Re: Editing abstract page


Hi Derek,

No thickness – you’re just going through the same motions all of us have over the years :o)

 

There’s two things you mixed slightly in your question:

An xpage – this is a static content page, that gets rendered with a template – look in: ~/archives/ARCHIVEID/cfg/lang/en/static/

 

A template is an XML document, but not an xpage.

If you want to use a different template for the static webpages, I’d copy your existing template to: ~/archives/ARCHIVEID/cfg/lang/en/templates/static.xml

 

And in e.g. ~/archives/ARCHIVEID/cfg/lang/en/static/contact.xpage

add: <xpage:template>static</xpage:template>

 

When adding a new template, you have to restart apache to pick it up. After it knows it’s there, it will reload it when it changes.

 

For completeness (and copied from ~/perl_lib/EPrints/Repository.pm):

The directories searched are:

        archives/[archiveid]/cfg/lang/[langid]/templates/

        archives/[archiveid]/cfg/templates/

        archives/[archiveid]/cfg/themes/[themeid]/lang/[langid]/templates/

        archives/[archiveid]/cfg/themes/[themeid]/templates/

        lib/themes/[themeid]/templates/

        lib/lang/[langid]/templates/

        lib/templates/

 

You can create a new theme (good if you want a lot of different images/css/etc for your new pages) – see these examples:

http://bazaar.eprints.org/118/

http://bazaar.eprints.org/232/

 

Cheers,

John

 

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Derek Lawrie
Sent: 09 October 2013 14:56
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: Editing abstract page

 

 

Thanks John,

I'm looking creating different templates for the static pages as you suggest, but from the wiki page I don't really understand what I create.

Am I right in thinking that I would create an xml (xpage) for 'about' (for example) and put it into the directory structure like this

archives/[archiveid]/cfg/themes/[themeid]/lang/[langid]/templates/

And it would automatically pick that up?

 

Thanks again sorry for being a bit thick with this.

 

Derek

 

 

 

From: John Salter <J.Salter@leeds.ac.uk>
Reply-To: Eprints <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, October 9, 2013 9:54 AM
To: Eprints <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Re: Editing abstract page

 

Hi,

I think what you might want to do is have your default template used for the system-generated (i.e. abstract, view) pages and then use a different template for the static pages.

Take a look at: http://wiki.eprints.org/w/Template_Format,

Adding an <xpage:template> elemet might help.

 

You can also specify a template specific to a view – see http://wiki.eprints.org/w/Views.pl

 

Having said that, you may well be able to do something in the ~/archives/ARCHIVEID/cfg/cfg.d/eprint_render.pl file - $session->get_repository->…something, but I’m not quite sure what (search for template in  ~/perl_lib/EPrints/Repository.pm).

 

For the thumbnails, more recent versions of EPrints should allow this.

 

HTH,

John

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Derek Lawrie
Sent: 09 October 2013 08:55
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: Editing abstract page

 

 

I'm presuming I have to edit the "pin" output (<epc:pin ref="page"/>) to be able to customize the output of an abstract (or any dynamic page), but I don't know if this is a good idea? 

Should I avoid editing the pins?

 

Thanks

Derek

 

From: Derek Lawrie <d.lawrie@nua.ac.uk>
Reply-To: Eprints <eprints-tech@ecs.soton.ac.uk>
Date: Tuesday, October 8, 2013 3:35 PM
To: Eprints <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Editing abstract page

 

 

Hi

Still trying to get my head around the structure of ePrints.

If I want to edit the template for only abstract pages, how would I go about that?

Can I just create an "abstract" page (xpage?) in my template?

It is currently using my template on all pages, which is cool, just would like to lay things out slightly differently on a couple of pages.

I understand the static pages and editing their page content, but would be more interested in uniquely styling the abstract currently.

Also is it possible to pull thumbnails into the abstract without a plugin like Kultur?

 

Many thanks

Derek


Rated top Specialist Arts Institution in the UK (National Student Survey 2013) and best Specialist Institution in Art and Design (Complete University Guide 2014)

Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University.

This email and any files sent with it are intended only for the named recipient and may be confidential. If you are not the named recipient please email the sender immediately then delete this message. You should not disclose the content, distribute or retain any copies of this message.


Norwich University of the Arts,
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Tel: 01603 610561
Fax: 01603 615728
www.nua.ac.uk

NUA Business Limited
Registered office:
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Registered in England & Wales number 3001912


Rated top Specialist Arts Institution in the UK (National Student Survey 2013) and best Specialist Institution in Art and Design (Complete University Guide 2014)

Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University.

This email and any files sent with it are intended only for the named recipient and may be confidential. If you are not the named recipient please email the sender immediately then delete this message. You should not disclose the content, distribute or retain any copies of this message.


Norwich University of the Arts,
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Tel: 01603 610561
Fax: 01603 615728
www.nua.ac.uk

NUA Business Limited
Registered office:
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Registered in England & Wales number 3001912


Rated top Specialist Arts Institution in the UK (National Student Survey 2013) and best Specialist Institution in Art and Design (Complete University Guide 2014)

Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University.

This email and any files sent with it are intended only for the named recipient and may be confidential. If you are not the named recipient please email the sender immediately then delete this message. You should not disclose the content, distribute or retain any copies of this message.


Norwich University of the Arts,
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Tel: 01603 610561
Fax: 01603 615728
www.nua.ac.uk

NUA Business Limited
Registered office:
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Registered in England & Wales number 3001912