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

of course - you can change the "category" to whatever category you need for a new page...
(by Helmut_pdorf 27 May 2017 16:18, posts: 2)
This just looks like the NewPage module creating pages in the category "Category". Not...
(by Jsimmons17 27 May 2017 14:26, posts: 2)
#header { height: 100px; } #header h1 a span{ display: none; } #header h2 { display:...
(by Dr David Brajkovic 27 May 2017 09:19, posts: 36)
No thanks! Fun to spam though :D
(by Battlesquid 09 May 2017 15:31, posts: 2)
Check under the "Advanced Use" header, there is a link to all of the chat's css, and...
(by Mai Selph 01 May 2017 21:56, posts: 5)

Limit="2"

of course - you can change the "category" to whatever category you need for a new page...
(by Helmut_pdorf 27 May 2017 16:18, posts: 2)
This just looks like the NewPage module creating pages in the category "Category". Not...
(by Jsimmons17 27 May 2017 14:26, posts: 2)

Limit="20"

of course - you can change the "category" to whatever category you need for a new page...
(by Helmut_pdorf 27 May 2017 16:18, posts: 2)
This just looks like the NewPage module creating pages in the category "Category". Not...
(by Jsimmons17 27 May 2017 14:26, posts: 2)
#header { height: 100px; } #header h1 a span{ display: none; } #header h2 { display:...
(by Dr David Brajkovic 27 May 2017 09:19, posts: 36)
No thanks! Fun to spam though :D
(by Battlesquid 09 May 2017 15:31, posts: 2)
Check under the "Advanced Use" header, there is a link to all of the chat's css, and...
(by Mai Selph 01 May 2017 21:56, posts: 5)
Erm, not sure if anybody sees this, but…is this customizable with CSS?
(by Battlesquid 01 May 2017 01:21, posts: 5)
[[html]] Insert any HTML code, including widgets and video or audio players [[/html]]
(by Nasran Tapet 17 Feb 2017 14:08, posts: 1)
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: 5)
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: 5)
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: 5)
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: 36)

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