EPrints Technical Mailing List Archive

Message: #08090


< 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


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="" style="font-variant-ligatures: no-common-ligatures" class="">

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