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

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 Ryan-Griffieth-Gisa 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: 83)

Limit="2"

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 Ryan-Griffieth-Gisa 05 Dec 2019 14:09, posts: 11)

Limit="20"

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 Ryan-Griffieth-Gisa 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: 83)
You're missing the keyword "tab" in your markup. Code [[tabview]] [[tab Before...
(by Ed Johnson 27 Nov 2019 23:41, posts: 83)
[[tabview]] [[Before Incident-XXXX-1]] blah blah blah [[/tab]] [[Incident-XXXX-1]] more...
(by YouOrMe 27 Nov 2019 23:06, posts: 83)
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)
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 (account deleted) 05 Jul 2019 03:08, posts: 38)
Thank you. //
(by Dr Ludenburg 02 Jul 2019 13:02, posts: 83)
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: 83)
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: 83)
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)

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