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

[[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: 1)
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)

Limit="2"

[[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: 1)

Limit="20"

[[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: 1)
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)
code modified Title 🔼🔽 Date 🔼🔽 Updated 🔼🔽 Creator 🔼🔽
(by Melphyx 07 Dec 2019 08:05, posts: 1)
Thanks for this. I now can just use that instead of trying to get everything to work using copy...
(by (account deleted) 05 Dec 2019 14:09, posts: 11)
sorry, but how can i resize/force the video window to new height, width ?
(by bgegamer 30 Nov 2019 00:17, posts: 7)
thx !!!
(by bgegamer 30 Nov 2019 00:13, posts: 7)
Oh wow, such a simple mistake. Thanks.
(by YouOrMe 28 Nov 2019 08:16, posts: 84)
You're missing the keyword "tab" in your markup. Code [[tabview]] [[tab Before...
(by Ed Johnson 27 Nov 2019 23:41, posts: 84)
[[tabview]] [[Before Incident-XXXX-1]] blah blah blah [[/tab]] [[Incident-XXXX-1]] more...
(by YouOrMe 27 Nov 2019 23:06, posts: 84)
It keeps saying the ajax request failed when i try to send a message in them on my site. How do I...
(by Meatoad1 13 Nov 2019 22:09, posts: 6)
I looking for a code hide contents from anonymous visitor or non-registered user. But as well...
(by Melphyx 17 Sep 2019 18:58, posts: 42)
The easiest way to center an element is to set its margin to 0 auto as shown in the 2 examples...
(by Ed Johnson 14 Aug 2019 13:15, posts: 91)
thanks
(by Melphyx 14 Aug 2019 05:06, posts: 91)
Hi folks! I'm very new here, and have a couple of questions. Is there a way to make this image...
(by Norman Seversky 06 Aug 2019 17:24, posts: 6)
Awesome ! Thank you for sharing this code. I'm still learning wikidot, but it doesn't look that...
(by TroOops 31 Jul 2019 16:10, posts: 7)
Thank you. //
(by Dr Ludenburg 02 Jul 2019 13:02, posts: 84)
I'm not sure exactly what you're asking but if you want both tabs side-by-side, you need to wrap...
(by Ed Johnson 11 Apr 2019 20:39, posts: 84)

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