EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03557
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Different templates for abstract pages
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Different templates for abstract pages
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Tue, 21 Oct 2014 15:26:06 +0000
John, or anyone else feeling inspired I'm clearly missing something - when I try to do this (in 3.3.10), having modified eprint_render.pl I get an error on the browse page and in the error log ------------------------------------------------------------------ ---------------- EPrints System Error ---------------------------- ------------------------------------------------------------------ Error. Template not loaded. Language: en Template ID: my_template ------------------------------------------------------------------ I've created a template file (copy of summary_page.xml) in .../archives/ARCHIVE_ID/cfg/citations/eprints/my_template.xml Have I created it in the wrong place, or failed to register it somewhere? Thanks in frustration Alan -----Original Message----- From: Alan.Stiles [mailto:alan.stiles@open.ac.uk] Sent: 10 October 2014 14:00 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: Different templates for abstract pages Excellent work John, That is likely to be very relevant to me in the near future - might save me fighting with trying to update the default citation and summary_page citation within a plugin! Cheers! Alan -----Original Message----- From: John Salter [mailto:J.Salter@leeds.ac.uk] Sent: 10 October 2014 11:48 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Different templates for abstract pages Hi, Yesterday I discovered that EPrints has an easy way to control which template is used to render the summary page/abstract page of an item. There isn't any mention of this in the code or documentation - but I think it's a really neat bit of functionality. I've written it up briefly here: http://wiki.eprints.org/w/Abstract_page_template - basically you just return an extra value from the 'eprint_render' function. Hopefully this will be useful to someone somewhere! Cheers, John *** 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/ *** EPrints developers Forum: http://forum.eprints.org/ -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority. *** 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/ *** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] Different templates for abstract pages
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: Different templates for abstract pages
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Different templates for abstract pages
- Prev by Date: [EP-tech] search not found
- Next by Date: [EP-tech] Re: Different templates for abstract pages
- Previous by thread: [EP-tech] Re: Different templates for abstract pages
- Next by thread: [EP-tech] Re: Different templates for abstract pages
- Index(es):