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

Does't work. Show error, that Java brush not found and on the page I see ");" chars.
(by McStar 18 Jan 2017 17:11, posts: 15)
Thank you very much. As I talk with someone who wants to work out some different effects in his...
(by Greenson 30 Dec 2016 13:21, posts: 6)
Hello Greenson, As you said I don't think the built-in collapsible blocks don't support nesting...
(by leiger 28 Dec 2016 12:47, posts: 6)
As there's someone want to make a secondary collapsible block within an existed collapsible...
(by Greenson 28 Dec 2016 01:54, posts: 6)
Hope this works well!
(by JB Boykin 22 Nov 2016 20:09, posts: 18)

Limit="2"

Does't work. Show error, that Java brush not found and on the page I see ");" chars.
(by McStar 18 Jan 2017 17:11, posts: 15)
Thank you very much. As I talk with someone who wants to work out some different effects in his...
(by Greenson 30 Dec 2016 13:21, posts: 6)

Limit="20"

Does't work. Show error, that Java brush not found and on the page I see ");" chars.
(by McStar 18 Jan 2017 17:11, posts: 15)
Thank you very much. As I talk with someone who wants to work out some different effects in his...
(by Greenson 30 Dec 2016 13:21, posts: 6)
Hello Greenson, As you said I don't think the built-in collapsible blocks don't support nesting...
(by leiger 28 Dec 2016 12:47, posts: 6)
As there's someone want to make a secondary collapsible block within an existed collapsible...
(by Greenson 28 Dec 2016 01:54, posts: 6)
Hope this works well!
(by JB Boykin 22 Nov 2016 20:09, posts: 18)
I see, guess i should have taken the time to read the post. Thanks anyway!
(by Doctor Cymothoa 25 Oct 2016 18:40, posts: 3)
Hello, The instructions on how to implement this are found on this page. It works by creating a...
(by leiger 25 Oct 2016 02:14, posts: 3)
Seeing as nobody has said anything here, i thought i might say something, i have a few...
(by Doctor Cymothoa 24 Oct 2016 21:31, posts: 3)
Doesn't the SCP wiki have its own version of this, too? i think it was this: [[include...
(by Doctor Cymothoa 24 Oct 2016 21:06, posts: 44)
PICASA ID DEATH!!!
(by ks-robert 20 Oct 2016 10:20, posts: 31)
I cannot seethe collapsible block , wether on the sandbox template nor on your site..? I found...
(by Helmut_pdorf 10 Oct 2016 14:38, posts: 31)
When I was making a tutorial on how to make a Personal Sandbox Template, I used this snippet to...
(by Joshua Darby 09 Oct 2016 23:54, posts: 31)
oi
#header { height: 100px; } #header h1 a span{ display: none; } #header h2 { display:...
(by akiratoriyama 08 Oct 2016 22:02, posts: 35)
Is it possible to make a slider bar that opens up 2 seconds after it appears on screen? If so, I...
(by Sumoterminator 11 Sep 2016 05:56, posts: 31)
unfortunately, Google stopped serving those goodies. Maybe this snippets should be...
(by niederstadt 10 Sep 2016 13:11, posts: 27)
The default font-size is a bit to big for my taste… Is it possible to change it?
(by herenz 18 Mar 2016 19:46, posts: 15)
That is my question…
(by Helmut_pdorf 27 Jan 2016 05:56, posts: 1)
I meant in terms of just using the showto part
(by Joshua Darby 21 Jan 2016 05:10, posts: 20)
Yes, we are using this also on our community top bar menu: http://community.wikidot.com/nav:top
(by Helmut_pdorf 20 Jan 2016 08:01, posts: 20)
I have found that this works a lot better: [[include :snippets:alt-suo |unique=first...
(by Joshua Darby 19 Jan 2016 21:29, posts: 20)

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