EPrints Technical Mailing List Archive

Message: #08095


< 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


It's work now, I changed the max value to 5 (max => 5 in) in latest_tool.pl
Thank you very much for all your help guys! 

On Thursday, January 23, 2020, 03:02:27 PM GMT+7, zulkarnain via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:


it did not working, still showing 3 entries.

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&amp;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:

Hi.

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

*** 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/


--
Justin Bradley
Strategy & Technical Lead
EPrints Services

WAIS / ECS / University of Southampton
justin@soton.ac.uk / B32 1023







*** 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/