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

Why isn't there a nice red button that says "Open New Tab"?
(by Flint Locke 29 Jun 2018 03:39, posts: 77)
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)

Limit="2"

Why isn't there a nice red button that says "Open New Tab"?
(by Flint Locke 29 Jun 2018 03:39, posts: 77)
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)

Limit="20"

Why isn't there a nice red button that says "Open New Tab"?
(by Flint Locke 29 Jun 2018 03:39, posts: 77)
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)
I have used this to create comment pages in a forum build: [[span...
(by rurwin 03 Jan 2018 16:04, posts: 10)
header header header 67 иван дф 78 cell-content cell-content cell-content
(by Nasran Tapet 20 Dec 2017 09:02, posts: 5)
rrr
[[include :snippets:todo:_list]]
(by Nasran Tapet 20 Dec 2017 08:58, posts: 1)
I have only the special style settings on...
(by Helmut_pdorf 04 Sep 2017 15:19, posts: 33)
Is there any way to change the color of the collapsible?
(by Jennkryst 04 Sep 2017 14:11, posts: 33)
So I took a look at http://try.wikidot.com/color-tab-testing Not blue, finally green! Except for...
(by Mai Selph 03 Sep 2017 09:22, posts: 77)
Nor can I link to the specific test page I've been using. - the reason is the...
(by Helmut_pdorf 03 Sep 2017 06:51, posts: 77)
A somewhat new problem has arisen; I am not sure how to change all of the fields in the tabs. Nor...
(by Jennkryst 03 Sep 2017 05:00, posts: 77)
In trying to create an example to show you where I am having issues with the code, I discovered...
(by Jennkryst 03 Sep 2017 04:05, posts: 77)
Which community do you mean? http://community.wikidot.com/ is our community and on the forum you...
(by Helmut_pdorf 02 Sep 2017 18:15, posts: 77)
It helps a bit; I only need to change it on the one page. The problem is that I can't seem to get...
(by Jennkryst 02 Sep 2017 18:10, posts: 77)
You can use this CSS code on the top of any page - working for this page only ! - or on the...
(by Helmut_pdorf 02 Sep 2017 12:26, posts: 77)
I keep seeing this, but I do not quite understand what that means. Or how to do it. A step by...
(by Jennkryst 02 Sep 2017 06:37, posts: 77)
Yeah I noticed my tags were incomplete :P thanks!
(by MechaLynx 11 Jul 2017 08:55, 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