[tw] Re: Using TW after 5 year gap from TW2
I used tour postings. This is the final form. List tiddler title, tags, and text in a table where tags include 'Journal', sorted by the modified daterime stamp. Title Tags Text <$list filter="[tag[Journal]sort[modified]]"> <$link><> <$view field="tags"> no tags <$view field="text"> I consider this effort to have been a success. Alan -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2c7f4079-6096-4ff7-b778-d4fa26a4fa35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Using TW after 5 year gap from TW2
Thank you again, Eric. -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a0db2299-f132-45de-bfd7-bd9705824053%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Using TW after 5 year gap from TW2
errata: To display the tiddler content properly, add the mode="block" parameter to the <$transclude> widget otherwise, the content will all become 'inline' and will flow onto lines without regard to paragraph/line breaks, tables, bullet lists, etc. <$transclude mode="block"/> -e -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1711ba1b-2bde-407d-870e-8f4eb47290c9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Using TW after 5 year gap from TW2
On Sunday, August 6, 2017 at 1:00:52 PM UTC-7, AlanBCohen wrote: > > Eric, > Found some more HTML docs on tables. This is closer to what I want, but > the currentTiddler and currentTags in the table aren't displaying. > > ''Tiddlers with the tag 'Journal', sorted by modified. Tiddler.text > displayed on same line.'' > > > Title > Tags > Text > > <$list filter="[tag[Journal]sort[modified]]"> > > <<> > <> > <$transclude> > > > > > I think the remaining problems are with the referencing the current line's > Tiddler fields. The old TW2 fields were referenced as tiddler.title, > tiddler.tags, tiddler.text. What are the equivalent field names and syntax? > 1) Be careful with your syntax. * TW widgets have this form: <$foo>... (i.e., matching <$...> and * all widget names start with $ * only 1 set of brackets (i.e., <$foo> NOT <<$foo>>) * handling of the content within the widget depends on the type of widget * if the widget does not have any content, you can use an abbreviated form: <$foo /> (note the trailing "/") 2) Within the <$list>... widget, all content is relative to the <> value. You can refer to any field within the tiddler using the <$view> widget. To display the tags for the currentTiddler, use <$view field="tags"> no tags * the content within the <$view>... is fallback text if the specified field is missing or empty. * if you don't want/need fallback content, you can use the abbreviated form: <$view field="tags" /> 3) Just like the <$view> widget, content within the <$transclude>... widget is used as a fallback if the tiddler/field does not exist. If no tiddler is specified, the currentTiddler value is used by default. If no field is specified, the "text" field is used by default. Thus, <$transclude tiddler=<> field="text"> no text will display the text from the currentTiddler, or "no text" if the tiddler or field does not exist. * In the above example, you can omit the "tiddler" and "field" params (since they specify the defaults), and just write: <$transclude> no text * If you don't want/need fallback content, you can use the abbreviated form: <$transclude /> (again, note the trailing "/") Here's your code, cleaned up a bit: Title Tags Text <$list filter="[tag[Journal]sort[modified]]"> <$link><> <$view field="tags"> no tags <$transclude /> let me know how it goes... enjoy, -e Eric Shulman TiddlyTools.com: "Small Tools for Big Ideas!" (tm) InsideTiddlyWiki: The Missing Manuals -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/04fcfad0-df0e-480d-8ad5-60a7eec7e490%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Using TW after 5 year gap from TW2
Eric, Found some more HTML docs on tables. This is closer to what I want, but the currentTiddler and currentTags in the table aren't displaying. ''Tiddlers with the tag 'Journal', sorted by modified. Tiddler.text displayed on same line.'' Title Tags Text <$list filter="[tag[Journal]sort[modified]]"> <<> <> <$transclude> I think the remaining problems are with the referencing the current line's Tiddler fields. The old TW2 fields were referenced as tiddler.title, tiddler.tags, tiddler.text. What are the equivalent field names and syntax? -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1447496b-2308-48a1-a89f-21728c149a3d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Using TW after 5 year gap from TW2
Eric, Thanks for the help. I've gotten farther. This is what I have now: ''Tiddlers with the tag 'Journal', sorted by modified. Tiddler.text displayed on same line.'' <$list filter="[tag[Journal]sort[modified]]"> <$link><><> <$transclude> Unfortunately <> is not returning any string. I also want to display each line with "|" with leading/ending "|" like the TW2 tables. A matching heading for the table would be nice. I've been reading HTML documentation unsuccessfully. What I'd like to achieve would look like | Title | Tags | Text | | 2017.08.08 | Journal projectid | Bla. | (With the heading line boldest or otherwise set apart.) Alan -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/74baac57-f70b-402c-9b5b-c1bb3f8f596a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Using TW after 5 year gap from TW2
On Saturday, August 5, 2017 at 4:48:11 PM UTC-7, AlanBCohen wrote: > > Before I became disabled, I was a heavy user of some TW2 plugins; > especially ForEachTiddler. The TW5 native syntax that is most like ForEachTiddler is the <$list> widget (http://tiddlywiki.com/#ListWidget). This widget takes a "filter expression" as a parameter. The *contents* inside the <$list>... widget block are then rendered "for each tiddler" that matches the specified filter. By default the <$list> widget automatically sets the value of <>, so that any field references within the <$list>... widget block are relative each matched title. You can use any combination of HTML and TW WikiText to format the output within the widget block. > For example, I created a tiddler with a name like 'journal'. The contents > were a FeT that would list all the other tiddlers with the tag 'journal' > with various sort and formatting. Something like this: (select all tiddlers with tag="journal" and sort by modification date, newest to oldest) <$list filter="[tag[journal]!sort[modified]]"> <$link><> Another use was tagging journals with a progectid. In separate tiddler > named the specific projectid, FeT was used to create a list of related > journals (later expanded to list all the tiddler.texts as a printable diary > for the projectid). > Something like this: <$list filter="[tag!sort[modified]]"> <$link><> (<$view field="modified" format="date" template="MMM DDth, 0hh:0mm:0ss" />) <$transclude mode="block"/> Note that in the above example, the value of in the *filter* is DIFFERENT from the value of <> in the enclosed *content*. Specifically, the filter syntax refers to the title of the tiddler in which the <$list> widget occurs and is used with the "tag" filter operator to select tiddlers tag with the current tiddler's title, while the content syntax refers to the title of each tiddler that is *matched* by the enclosing <$list> widget. Also note: the filter syntax uses SINGLE brackets to delimit references, while the content syntax uses DOUBLED brackets. enjoy, -e Eric Shulman TiddlyTools.com: "Small Tools for Big Ideas!" (tm) InsideTiddlyWiki: The Missing Manuals -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/175ba310-e068-4c2d-b6df-bb7531217db4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.