On Friday, September 5, 2014 1:57:03 PM UTC-7, RickL wrote:
>
> The following code returns a list of tiddlers titled JournalEntry and 
> sorted by date.
> I would like to have the date at the beginning but can't get it to work 
> with my changes.
> Seems simple, and likely is for those that understand.
>
> <$list 
> filter="[tag[JournalEntry]!title[JournalEntrySkeleton]sort[created]]"><$link 
> to={{!!title}}><$view field="title" /> (<$macrocall $name="dateTime" 
> ts={{!!created}} format="YY0MM0DD"/>)<br></$link>
>

If we break the syntax onto separate lines with indentation (just for 
readability), perhaps it would be clearer:
<$list 
filter="[tag[JournalEntry]!title[JournalEntrySkeleton]sort[created]]">
   <$link to={{!!title}}>
      <$view field="title" />
      (<$macrocall $name="dateTime" ts={{!!created}} format="YY0MM0DD"/>)
      <br>
   </$link>
<$list />

As you can see, inside the <$link> block, there are three pieces of content 
that are rendered one after the other: the title, the formatted date, and a 
line break.  If I understand your goal correctly, it would seem that all 
you need to do is reverse the order of <$view .../> and "(<$macrocall ... 
/>)", so that the date will be rendered before the title, rather than 
after, like this:
<$list 
filter="[tag[JournalEntry]!title[JournalEntrySkeleton]sort[created]]">
   <$link to={{!!title}}>
      (<$macrocall $name="dateTime" ts={{!!created}} format="YY0MM0DD"/>)
      <$view field="title" />
      <br>
   </$link>
<$list />

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to