EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02606
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Random selection
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Random selection
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Thu, 6 Feb 2014 10:01:05 +0000
You might want to look at the ‘Kultur’ extension http://files.eprints.org/773/ – specifically the ‘slideshow’ part of the code that produces a random selection of items. Look at perl_lib/EPrints/Script/Kultur.pm – that writes stuff into the EPrints::Script::Compiled package. **this is a very good example of what to do if you want to extend epscript to do something fancy!** - You can then edit your index.xpage to include: <epc:print expr="kultur_slideshow(10)" /> to render a 10-image slideshow. The logic in the slideshow could also be used as a basis for random selection in e.g. an RSS feed. Hope that helps! John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Derek Lawrie
|
- References:
- [EP-tech] Random selection
- From: Derek Lawrie <d.lawrie@nua.ac.uk>
- [EP-tech] Random selection
- Prev by Date: [EP-tech] adding maschine depending javascript code to eprints
- Next by Date: [EP-tech] Re: adding maschine depending javascript code to eprints
- Previous by thread: [EP-tech] Random selection
- Next by thread: [EP-tech] adding maschine depending javascript code to eprints
- Index(es):