EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

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


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>

This give me only 3 entries, did I missed something?

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