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

Yeah I noticed my tags were incomplete :P thanks!
(by MechaLynx 11 Jul 2017 08:55, posts: 3)
That's pretty good! Just saw this, after receiving an edit notification today :)
(by leiger 11 Jul 2017 08:25, posts: 3)
Thanks for this new standard!
(by Helmut_pdorf 15 Jun 2017 11:36, posts: 3)
thank you for your help, I will continue to think on the issue.
(by Jsimmons17 06 Jun 2017 04:29, posts: 46)
I am affraid, without changing the script behind it this is not working. It makes sense to create...
(by Helmut_pdorf 05 Jun 2017 11:48, posts: 46)

Limit="2"

Yeah I noticed my tags were incomplete :P thanks!
(by MechaLynx 11 Jul 2017 08:55, posts: 3)
That's pretty good! Just saw this, after receiving an edit notification today :)
(by leiger 11 Jul 2017 08:25, posts: 3)

Limit="20"

Yeah I noticed my tags were incomplete :P thanks!
(by MechaLynx 11 Jul 2017 08:55, posts: 3)
That's pretty good! Just saw this, after receiving an edit notification today :)
(by leiger 11 Jul 2017 08:25, posts: 3)
Thanks for this new standard!
(by Helmut_pdorf 15 Jun 2017 11:36, posts: 3)
thank you for your help, I will continue to think on the issue.
(by Jsimmons17 06 Jun 2017 04:29, posts: 46)
I am affraid, without changing the script behind it this is not working. It makes sense to create...
(by Helmut_pdorf 05 Jun 2017 11:48, posts: 46)
Would it be possible to create 2 pages at once using this module? I'm trying to create a way for...
(by Jsimmons17 04 Jun 2017 22:59, posts: 46)
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)

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