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

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)

Limit="2"

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)

Limit="20"

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: 14)
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)
Is there a way to set table alignment without using float? I want to set all tables on my site to...
(by Death and Taxes 08 Jan 2016 04:08, posts: 89)
You can set the max-width field to something smaller than the image, or you can resize the image...
(by Timothy Foster 19 Dec 2015 02:50, posts: 2)
How do I make my image smaller?
(by valeriel1111 18 Dec 2015 19:36, posts: 2)
1. I am affraid, I believe there is only ONE mail module possible PER PAGE - but this is only an...
(by Helmut_pdorf 15 Dec 2015 07:16, posts: 68)

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