[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Limiting number of latest additions
Try it like my example, see if that helps.
{parameters:"mode=fplatest&mainonly=yes;n=7"}
Justin
On 22 Jan 2020, at 10:04, zulkarnain via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:
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<mailto: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<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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=U31MxV6vHur5QJuB6E0h2c1UPw5%2Fd0TdWEQgj8IgOIk%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=PE613xnHT9XoBuj9V9c2km5AWnqyLPUec4kyUcMtqX0%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tp%2FlKXMYcVAbuzVcftAmCvOCJq%2B5BFoHl0zejLhmn1A%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=WJ6Sc1ovqLP5A0Ew9kMCijuOTCPhtLz8r2srVcf8vW8%3D&reserved=0>
WAIS / ECS / University of Southampton
justin at soton.ac.uk<mailto:justin at soton.ac.uk> / B32 1023
*** 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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=U31MxV6vHur5QJuB6E0h2c1UPw5%2Fd0TdWEQgj8IgOIk%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=PE613xnHT9XoBuj9V9c2km5AWnqyLPUec4kyUcMtqX0%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tp%2FlKXMYcVAbuzVcftAmCvOCJq%2B5BFoHl0zejLhmn1A%3D&reserved=0>
*** 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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=U31MxV6vHur5QJuB6E0h2c1UPw5%2Fd0TdWEQgj8IgOIk%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=PE613xnHT9XoBuj9V9c2km5AWnqyLPUec4kyUcMtqX0%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tp%2FlKXMYcVAbuzVcftAmCvOCJq%2B5BFoHl0zejLhmn1A%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%7Cae4a5feabc284e92257608d79f2434fc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=WJ6Sc1ovqLP5A0Ew9kMCijuOTCPhtLz8r2srVcf8vW8%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/20200122/bfc5047c/attachment-0001.html