EPrints Technical Mailing List Archive
Message: #08092
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Limiting number of latest additions
- To: "Bradley J. via Eprints-tech" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Limiting number of latest additions
- From: zulkarnain <sizulku@yahoo.com>
- Date: Wed, 22 Jan 2020 10:04:30 +0000 (UTC)
Hi Justin,
I tried this following script:
<p id="fplatest"></p>
<script type="text/_javascript_">
new Ajax.Updater('fplatest', '/cgi/latest_tool',{parameters:{"mode":"fplatest","mainonly":"yes","n":"7"}});
</script>
thanks,
Zul
On Tuesday, January 21, 2020, 06:03:41 PM GMT+7, Bradley J. via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:
Try adding n=7 to the parameters, these are typically found in cfg/lang/en/static/index.xpage - look for the script block which calls cgi/latest_tool.
Eg
<div id="fplatest"/>
<script type="text/_javascript_">
new Ajax.Updater( 'fplatest', '/cgi/latest_tool', { parameters:"mode=fplatest&mainonly=yes;n=7"});
</script>
<p><a href="">More...</a></p>
Justin
On 21 Jan 2020, at 08:15, zulkarnain via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-techHi.
I'm running EPrints 3.4.1-rc2. I want to display the latest additions on my frontpage but only 7 entries. I still want users to be able to see all additions on "Latest Additions" menu. Is it possible to do this? if yes how?
thanks,Zul
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- Follow-Ups:
- Re: [EP-tech] Limiting number of latest additions
- From: zulkarnain <sizulku@yahoo.com>
- Re: [EP-tech] Limiting number of latest additions
- References:
- [EP-tech] Limiting number of latest additions
- From: zulkarnain <sizulku@yahoo.com>
- Re: [EP-tech] Limiting number of latest additions
- From: "Bradley J." <jb4@ecs.soton.ac.uk>
- Re: [EP-tech] Limiting number of latest additions
- From: zulkarnain <sizulku@yahoo.com>
- [EP-tech] Limiting number of latest additions
- Prev by Date: Re: [EP-tech] Limiting number of latest additions
- Next by Date: Re: [EP-tech] Limiting number of latest additions
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):