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

oh flashfile…
(by Morishous 13 Mar 2021 13:11, posts: 5)
siren head I will see your face your sirens are metal and arms so long and legs so long to pole...
(by xander dyer 10 Mar 2021 15:26, posts: 4)
[[tabview]] [[first attempt of doing an scp]] Item #: SCP-5217 Object Class: Euclid Special...
(by Potato Farm 03 Mar 2021 10:10, posts: 85)
? ? ? ?
(by Helmut_pdorf 18 Feb 2021 16:04, posts: 9)
Thank you great job helped me out.
(by NUKER13764 18 Feb 2021 15:34, posts: 39)

Limit="2"

oh flashfile…
(by Morishous 13 Mar 2021 13:11, posts: 5)
siren head I will see your face your sirens are metal and arms so long and legs so long to pole...
(by xander dyer 10 Mar 2021 15:26, posts: 4)

Limit="20"

oh flashfile…
(by Morishous 13 Mar 2021 13:11, posts: 5)
siren head I will see your face your sirens are metal and arms so long and legs so long to pole...
(by xander dyer 10 Mar 2021 15:26, posts: 4)
[[tabview]] [[first attempt of doing an scp]] Item #: SCP-5217 Object Class: Euclid Special...
(by Potato Farm 03 Mar 2021 10:10, posts: 85)
? ? ? ?
(by Helmut_pdorf 18 Feb 2021 16:04, posts: 9)
Thank you great job helped me out.
(by NUKER13764 18 Feb 2021 15:34, posts: 39)
[[include :scp-wiki:theme:black-highlighter-theme]] [[include :scp-wiki:theme:ouroborous-theme]]
(by Merhabalar 13 Feb 2021 18:48, posts: 9)
Thank you! I will continue to work hard to create good syntax like this.
(by RTa_sub 01 Jan 2021 16:30, posts: 3)
As major web browsers remove support for flash, users wishing to embed audio should not use this...
(by aismallard 22 Dec 2020 23:10, posts: 13)
Fuhnghshuhn Na-oh Non Wrkeeng
(by Joriffik 13 Dec 2020 17:30, posts: 38)
Fungshuhn Non Wrkeeng
(by Joriffik 13 Dec 2020 17:29, posts: 38)
Sorry, no match for the embedded content.
(by FakeProGaming YT 09 Dec 2020 16:01, posts: 3)
...
(by FakeProGaming YT 09 Dec 2020 10:03, posts: 10)
[[include :snippets:sorted-listpages-list | scp-9999-tr site=SITENAME |...
(by FakeProGaming YT 09 Dec 2020 09:55, posts: 2)
Sorry, no match for the embedded content.
(by FakeProGaming YT 09 Dec 2020 09:14, posts: 2)
Rock Foto
(by FakeProGaming YT 09 Dec 2020 09:01, posts: 9)
Great ! I have learned again some new technic ..
(by Helmut_pdorf 02 Dec 2020 10:17, posts: 8)
WOW ! I needed time to understand … Great solution and well done!
(by Helmut_pdorf 02 Dec 2020 10:14, posts: 3)
+ Log Level 3 Access - Log Level 3 Access <Begin...
(by retroplasma1 19 Nov 2020 19:27, posts: 10)
+ Show whatever - Log Level 3 Access <Begin Log> Belmont:...
(by retroplasma1 19 Nov 2020 19:26, posts: 10)
+ Show whatever - Hide whatever Whatever text to show/hide.
(by retroplasma1 19 Nov 2020 19:24, posts: 10)

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