[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[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&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<mailto: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: http://www.eprints.org/tech.php/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7Cc064864a1dfe4dd9217c08d79e613db0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=bvnzyl8xf3c7s9UC7csKJpWt%2FlUMolEWacPmUZwKY18%3D&reserved=0>
*** EPrints community wiki: http://wiki.eprints.org/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7Cc064864a1dfe4dd9217c08d79e613db0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Fh7e6mvxe%2B44NyNu6e4X25JNR%2FpBTjZE%2B7YvrZrgFfs%3D&reserved=0>
*** EPrints developers Forum: http://forum.eprints.org/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7Cc064864a1dfe4dd9217c08d79e613db0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=DSPjPNoBXkVA9cI%2By6%2F%2BD%2BfS%2Fj21ZY32sX%2BRkq4F3pw%3D&reserved=0>
--
Justin Bradley
Strategy & Technical Lead
EPrints Services<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.org%2F&data=01%7C01%7C%7Cc064864a1dfe4dd9217c08d79e613db0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=j4swtOMHmPrSokIhrmjzK9w1P5QprxWi%2BFVyWrXInG8%3D&reserved=0>
WAIS / ECS / University of Southampton
justin at soton.ac.uk<mailto:justin at soton.ac.uk> / B32 1023
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200121/68dadd1a/attachment-0001.html