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 \
[https://snippets.obscurative.ru/code:minirecentposts-with-limit/limit/3 3]/\
[https://snippets.obscurative.ru/code:minirecentposts-with-limit/limit/5 5]/\
[https://snippets.obscurative.ru/code:minirecentposts-with-limit/limit/10 10]/\
[https://snippets.obscurative.ru/code:minirecentposts-with-limit/limit/20 20]/\
[https://snippets.obscurative.ru/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

You can change link color. CSS Code: /* unseleted link */ .yui-navset ul.yui-nav li a,...
(by Dreamy_Waves 12 Feb 2024 11:10, posts: 23)
This code will output to html code:(2 tabs) <div class="yui-navset"> <ul...
(by Dreamy_Waves 12 Feb 2024 11:01, posts: 3)
hm
(by Holyee2336 23 Dec 2023 14:32, posts: 22)
I moved this to deleted:code:scp-239-2:savius-the-unintended-metamorphosis-2 - if you need the...
(by Helmut_pdorf 21 Dec 2023 12:53, posts: 2)
Do not use SNIPPETS SITE as your sandbox. Go to: https://scp-sandbox-3.wikidot.com The page...
(by Senioriousc 20 Dec 2023 17:02, posts: 2)

Limit="2"

You can change link color. CSS Code: /* unseleted link */ .yui-navset ul.yui-nav li a,...
(by Dreamy_Waves 12 Feb 2024 11:10, posts: 23)
This code will output to html code:(2 tabs) <div class="yui-navset"> <ul...
(by Dreamy_Waves 12 Feb 2024 11:01, posts: 3)

Limit="20"

You can change link color. CSS Code: /* unseleted link */ .yui-navset ul.yui-nav li a,...
(by Dreamy_Waves 12 Feb 2024 11:10, posts: 23)
This code will output to html code:(2 tabs) <div class="yui-navset"> <ul...
(by Dreamy_Waves 12 Feb 2024 11:01, posts: 3)
hm
(by Holyee2336 23 Dec 2023 14:32, posts: 22)
I moved this to deleted:code:scp-239-2:savius-the-unintended-metamorphosis-2 - if you need the...
(by Helmut_pdorf 21 Dec 2023 12:53, posts: 2)
Do not use SNIPPETS SITE as your sandbox. Go to: https://scp-sandbox-3.wikidot.com The page...
(by Senioriousc 20 Dec 2023 17:02, posts: 2)
such thing can happen, BUT: this is the wrong site to write some snippet "code:page" I...
(by Helmut_pdorf 19 Dec 2023 14:16, posts: 2)
Im sorr if it bad. This is my first SCP that i made so please don't send hate
(by Dr Iresor Dore 19 Dec 2023 10:05, posts: 2)

(by Donut777 08 Dec 2023 15:13, posts: 2)
I do not think this is possible with the file image on local C: drive …
(by Helmut_pdorf 06 Dec 2023 17:26, posts: 38)
#header { height: 100px; } #header h1 a span{ display: none; } #header h2 { display:...
(by YoMatthew 05 Dec 2023 22:43, posts: 38)
If you would have tried the all-tags button you would see other tabview...
(by Helmut_pdorf 10 Oct 2023 17:30, posts: 3)
scp candy looks like a teenage girl with a lollipop in their mouth if you remove the lollipop or...
(by DrVeryBrightLight 30 Sep 2023 01:06, posts: 3)
In the "page options" at the right bottom of a wiki page - if the admin have allowed it...
(by Helmut_pdorf 01 Aug 2023 17:51, posts: 2)
非常好的代码 甚至全中)
(by H_W 09 Jul 2023 12:23, posts: 3)
See also https://wikidot-proxy.obscurative.ru/doc-wiki-syntax:foldable-list
(by Helmut_pdorf 08 Jul 2023 15:05, posts: 21)
how do you use it
(by De4thN0V4 08 Jul 2023 12:13, posts: 21)
Do not forget to shift the inhclude statement/line to the left side of the line! To show an...
(by Helmut_pdorf 22 Jun 2023 10:43, posts: 3)
hey I'm trying to use it but i'm not sure how because I'm quite new, i put it in sandbox but it...
(by gio_guy 21 Jun 2023 21:49, posts: 3)
用着挺好啊,终于知道维基上的那些人是怎么做的了 加分!
(by whitemoon434 01 Jun 2023 12:31, posts: 3)
This works well and I do not understand what you want to change… the color ( background,...
(by Helmut_pdorf 29 Mar 2023 15:32, posts: 88)

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