MiniRecentPosts With Limit

By ErichSteinboeckErichSteinboeck

Description

Work in Progress …
This could work, but doesn't ..

If you'd like to allow users to interactively limit the number of displayed posts when using MiniRecentPosts use the below code.

Code

++ Recent Posts
[[size smaller]]Limit to \
[http://snippets.wikidot.com/code:minirecentposts-with-limit/limit/3 3]/\
[http://snippets.wikidot.com/code:minirecentposts-with-limit/limit/5 5]/\
[http://snippets.wikidot.com/code:minirecentposts-with-limit/limit/10 10]/\
[http://snippets.wikidot.com/code:minirecentposts-with-limit/limit/20 20]/\
[http://snippets.wikidot.com/code:minirecentposts-with-limit/limit/50 50] \
most recent posts[[/size]]
[[module MiniRecentPosts]]

In action

Recent Posts

Limit to 3/5/10/20/50 most recent posts

I copied one of the code blocks into my main page, assuming it would be a link. So now, as soon...
(by Dr Fenyang 13 Jul 2020 07:24, posts: 15)
[[include...
(by YeetiboiOfficial 11 Jul 2020 15:37, posts: 7)
same
(by 1590320cvd 08 Jul 2020 04:28, posts: 7)
Special Containment Procedures: scp-[REDACTED] is to be watched at all times and can't be...
(by dr geen 05 Jul 2020 21:17, posts: 3)
very useful!
(by Dr-Mark long 04 Jul 2020 15:18, posts: 1)

Limit="2"

I copied one of the code blocks into my main page, assuming it would be a link. So now, as soon...
(by Dr Fenyang 13 Jul 2020 07:24, posts: 15)
[[include...
(by YeetiboiOfficial 11 Jul 2020 15:37, posts: 7)

Limit="20"

I copied one of the code blocks into my main page, assuming it would be a link. So now, as soon...
(by Dr Fenyang 13 Jul 2020 07:24, posts: 15)
[[include...
(by YeetiboiOfficial 11 Jul 2020 15:37, posts: 7)
same
(by 1590320cvd 08 Jul 2020 04:28, posts: 7)
Special Containment Procedures: scp-[REDACTED] is to be watched at all times and can't be...
(by dr geen 05 Jul 2020 21:17, posts: 3)
very useful!
(by Dr-Mark long 04 Jul 2020 15:18, posts: 1)
This is really neat. Nice workNo really, this is great!! HTML rendering: This is really neat....
(by Detes Tit 01 Jun 2020 22:43, posts: 38)
Yes, it's an extremely interesting code. But is it necessary? It would be logical to use it for...
(by Literaller 24 May 2020 11:46, posts: 3)
不起作用啊
(by DukeChristiAN 11 May 2020 16:14, posts: 5)
This is not a snippet of Wikidot code to use ! This is a comercial for google modules to use in...
(by Helmut_pdorf 07 May 2020 12:16, posts: 2)
En la actualidad la ética de la información trata todo lo relacionado con el uso y mal uso de la...
(by GRUPO NKDA 06 May 2020 21:12, posts: 2)
Fantastic, I appreciate the work.
(by Biomatrix 02 May 2020 23:06, posts: 38)
You cen embed audio from soundcloud. You must only to delete all part...
(by roca-pl 01 May 2020 13:03, posts: 12)
Sorry. This is not working ・_・?
(by RTa_technology 21 Apr 2020 10:56, posts: 13)
???
这个CSS不可以改变链接颜色吗?
(by Dr-Mark long 21 Apr 2020 05:45, posts: 22)
北风那个吹~雪花那个飘~
(by Kevin_Peng 07 Apr 2020 02:37, posts: 3)
[[module CSS]] #page-content table.pretty{ border-collapse: collapse; border: #8596A9...
(by Marifer Zapata 23 Mar 2020 21:08, posts: 3)
da
(by sxwjW 19 Mar 2020 08:01, posts: 3)
Item #: SCP-5023 Object Class : Safe Special Containment Procedures: SCP-5023 Is to be Contained...
(by Mason Forester 03 Mar 2020 19:17, posts: 84)
<script type="text/javascript"> today = new Date(); BigDay = new...
(by danarra 01 Mar 2020 14:31, posts: 1)
all you can do is refresh
(by (account deleted) 22 Dec 2019 01:46, posts: 3)

Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by ErichSteinboeck

TOC's from many pages - 16 Feb 2012 01:47
Redirect: To - 16 Feb 2012 01:37
Module Listpages Tags - 16 Feb 2012 01:24
Module Feed Drilldown: Details Page - 16 Feb 2012 01:24
Module Feed Drilldown - 16 Feb 2012 01:24
Module Feed: Collapsible - 16 Feb 2012 01:23
Module Categories - 16 Feb 2012 01:23
ListPages: Horizontal? - 16 Feb 2012 01:20
Choose A Page! - 15 Feb 2012 00:32
Redirect: From (1st) - 01 Mar 2009 18:18
Redirect: From (2nd) - 01 Mar 2009 18:17


Rate this solution

If you think this solution is useful — rate it up!

rating: +2+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License