[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[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 at 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="{$config{http_cgiurl}}/latest_tool">More...</a></p>
Justin
On 21 Jan 2020, at 08:15, zulkarnain via Eprints-tech <eprints-tech at 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: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C12eeb2c823954d0b2e3d08d79f227b81%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=7XS13Wy61Gs5eTKYgSPKUk%2Fd9djCS%2F%2BezT1MR5vqT%2Bg%3D&reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C12eeb2c823954d0b2e3d08d79f227b81%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=CHkMu6coXywdacbzxKAjuKN7ZqhbWXFm6WrxZjIs6bk%3D&reserved=0
*** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C12eeb2c823954d0b2e3d08d79f227b81%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=xrUtqTj6VWWBaOzaB8BAVUVkbiET09t2s7%2FofbbPaAU%3D&reserved=0
--
Justin Bradley
Strategy & Technical Lead
EPrints Services
WAIS / ECS /?University of Southamptonjustin at soton.ac.uk?/ B32 1023
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C12eeb2c823954d0b2e3d08d79f227b81%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=7XS13Wy61Gs5eTKYgSPKUk%2Fd9djCS%2F%2BezT1MR5vqT%2Bg%3D&reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C12eeb2c823954d0b2e3d08d79f227b81%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=CHkMu6coXywdacbzxKAjuKN7ZqhbWXFm6WrxZjIs6bk%3D&reserved=0
*** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C12eeb2c823954d0b2e3d08d79f227b81%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=xrUtqTj6VWWBaOzaB8BAVUVkbiET09t2s7%2FofbbPaAU%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200122/7759f5ec/attachment-0001.html