On Sunday, July 6, 2014 10:33:01 PM UTC-7, Jimmy Liew wrote:
>
> I would like to create something like "
> http://tiddlywiki.com/#Latest:Latest"; which it looks like an
> accountability board or pin-board to me. Can anyone guide me on how to do
> it?
>
I assume that what you want is to keep the same layout and appearance as
the [[Latest]] tiddler, but use your own tiddlers to provide the content.
First, start by looking at the *source* of the [[Latest]] tiddler. I've
pasted it here for convenience:
The latest news, articles, resources and examples.
<$list filter="[tag[articles]] [tag[examples]] [tag[resources]]
+[!sort[modified]limit[7]]">
! <$link><$view field="title"/>
!!! <$text text={{!!url}}/>
Updated <$view field="modified" format=
"relativedate"/>
<$transclude/>
note: the original source is actually double-spaced, with a blank line
between each line of source. Those lines are important, but I removed them
from the pasted code above for compactness in this message.
To create your own "accountability board", you might only need to focus on
one line from the above source.
<$list filter="[tag[articles]] [tag[examples]] [tag[resources]]
+[!sort[modified]limit[7]]">
This line selects all tiddlers tagged with "articles", "examples", or
"resources", and then sorts in descending order by modification date (i.e.,
newest first), and limits the results to 7 tiddlers. To select your own
content tiddlers, you could simply change the tags within this line
(adding/removing individual tag selection syntax, i.e,. "[tag[...]]"), as
well as changing (or even removing) the "limit[...]" syntax to allow for a
different number of items to be displayed.
The remainder of the [[Latest]] definition (everything in between the
<$list ...> and ) is used to generate the output for each tiddler
that is selected by the filter.
In the above code, the output begins with a 'wrapper' element using CSS
class "tw-link-info-item" to provide the styling for the individual item.
Next, a link to the source tiddler for the item is displayed, followed by an
external link to any "url" field defined in that tiddler. Then, a
"tw-subtitle" element is output, containing the tiddler's modification
information (using a 'relativedate' format), after which the
"<$transclude/>" syntax is used to display the full content of the source
tiddler.
That should give you the basic "lay of the land" for what the [[Latest]]
tiddler is doing, and should hopefully be enough for you to get started
with your own customized output. If there's more specific details of the
output that you want to address, just ask questions here.
Let me know how is goes...
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.