EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
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
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Editing abstract page
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Wed, 9 Oct 2013 17:13:22 +0100
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 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> 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 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> 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
|
- References:
- [EP-tech] Re: Editing abstract page
- From: Derek Lawrie <d.lawrie@nua.ac.uk>
- [EP-tech] Re: Editing abstract page
- Prev by Date: [EP-tech] Re: Editing abstract page
- Next by Date: [EP-tech] Allowing access to thumbnails of secure documents
- Previous by thread: [EP-tech] Re: Editing abstract page
- Next by thread: [EP-tech] boxes and views
- Index(es):