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

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: 5)
I don't know the SCP rules are for redacted text. Do you need it so it's unreadable text (like a...
(by Ed Johnson 05 Jul 2019 20:53, posts: 38)

Limit="2"

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)

Limit="20"

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: 5)
I don't know the SCP rules are for redacted text. Do you need it so it's unreadable text (like a...
(by Ed Johnson 05 Jul 2019 20:53, posts: 38)
How can I black out text. Im writing an SCP so I need some help.
(by DoubledSalmon 05 Jul 2019 03:08, posts: 38)
Thank you. //
(by Dr Ludenburg 02 Jul 2019 13:02, posts: 80)
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: 80)
So I did this, but it's not doing separate tabs A Simple Market blah blah...
(by Researcher Helms 11 Apr 2019 14:35, posts: 80)
Hi, I am using this snippet a lot. When enabling SSL encryption it doesn't work anymore though...
(by janbmgo 12 Dec 2018 21:32, posts: 21)
What if I want to the name of it to 'access file 5243578435-B' You get the idea, how would I...
(by agent costin 06 Nov 2018 23:09, posts: 38)
try it with a local moduile CSS - overwriting the style of the "element...
(by Helmut_pdorf 23 Oct 2018 16:17, posts: 38)
I'd like to put in bold the show / hide text, but can't find the correct synatx…
(by nikdek69 23 Oct 2018 10:40, posts: 38)
Just found this and it's great! How simple yet perfect And the autoplay feature is amazing
(by PressToDelete 01 Sep 2018 19:17, posts: 5)
Why isn't there a nice red button that says "Open New Tab"?
(by Flint Locke 29 Jun 2018 03:39, posts: 80)
Great! I think it's still a Wikidot bug though; there's no good reason why % should be invalid...
(by tsangk 05 Jan 2018 12:59, posts: 10)
That's got it. Thanks. I think it's still a Wikidot bug though; there's no good reason why %...
(by rurwin 05 Jan 2018 11:42, posts: 10)
Ah, dang. Didn't test that. I've just updated it to use escape(unescape()) — let me know if...
(by tsangk 04 Jan 2018 11:47, posts: 10)
Sorry, that's worse. The problem is that there are already bona-fide % characters in the URL...
(by rurwin 04 Jan 2018 10:18, posts: 10)
Wow. That was some pretty terrible code 😂 Gone back and made some changes. The modified version sh...
(by tsangk 04 Jan 2018 02:03, posts: 10)

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