Do you like to have a slider on the home tiddler (or default tiddlers: means when you open TW or refresh your TW in browser) to show the latest created tiddlers (e.g. change in last seven days)?
add your new Home tiddler to default Tiddlers, so when you open your TW, you see this tiddler
NOTE: You can add this script to any tiddler like the one you use now as your home tiddler. Make sure you have installed Shiraz on you TW.
Remarks:
the script uses Shiraz slider macro to show the content on demand
the status is set to open to see the content of slider on open TW, you can set status to closed and manually open the slider on demand!
the text in src parameter is a list-links macro with a filter to show all tiddlers are not system tiddlers and created in last seven days! change it to what ever you like! e.g. change to modified,…
I have created a similar functionality with standard tiddlywiki. it does not set a limit for how old are the most recent post but for the number of posts to be displayed (from all those selected by the filter, that you could modify like that of the examples of the previous post, and you can select your filter from a dropdown list (a parameter in my case, but you could easily have it for à whole filter).
Here it is in a single standard tiddler.
<$vars modif="[get[modified]]">
!!! les {{!!max}} changes from younger to older within <tt>//{{!!beg}}//</tt>
<nav>
<label>maximum number of articles for display
<$select field=max default=10>
<$list filter="5 10 20 50 100 1000" variable=limit>
<option value=<<limit>>><<limit>></option>
</$list>
</$select>
</label>
<label>prefix for selecting tiddlers
<$select field=beg default=10>
<$list filter="$:/user/ $:/user/eva/ $:/user/eva/data/" variable=beg>
<option value=<<beg>>><<beg>></option>
</$list>
</$select>
</label>
</nav>
<ul>
<$list variable=art filter="[prefix{!!beg}sortsub:date<modif>reverse[]limit{!!max}]">
<li><$view tiddler=<<art>> field=modified format=date template="0DD-0MM-YYYY 0hh:0mm:0ss"/> : <$link to=<<art>>/> ;</li>
</$list>
</ul>
</$vars>
@jypre thanks for sharing this. Could you make it a little more flexible documenting how to add prefixes or edit it. I tried “!prefix[$:/]” in an attempt to list all “non-system tiddlers”. Ideally you could edit the above code in your post to reflect this, and perhaps we (@Mohammad or you?) can then delete @EricShulman and My replies once they have being incorporated. This simplifying this “How to” thread.
@Sts You have to change my code too. One simple way to do it is to have a hash of your filters and have its keys as the value of the droplist. Then in the code, you’ll get the filter from the hashtable via the key given by the droplist.
in tw, an handy hashtable is a dictionary tiddler!
See my example: You have a list on top of it. Just use it to fill your drop down list, and everything else is about the same. You know how to do it and I know you know that.
PS : any way to avoid those nasty picures when I set a fair smiley in text? :o) I like this one as it much like : -) but does not get translated!
Something like this can replace the list-links macro in the original post. It would find all non-system tiddlers starting with U, created in last 365 days, with most recently created tiddlers listed first.