<<get ##Summary filter:"[tag[apdl AND help]][sort[title]]" table category:"Macro Name">>That's disappointingly verbose. I was hoping for one line drop-in replacement. Having to resort to HTML for something as simple as a table makes me question what the advantage TW5 over TW2 for the occasional user who doesn't want to fill their TW with metadata.
--
Bob
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/44c95378-4baf-4254-9f4d-362a93a65e44%40googlegroups.com.
\define property_table(PROP)
<table><$list filter="[tag[apdl]tag[help]]+[sort[title]]">
<tr>
<td>{{!!title}}</td>
<td>{{$$PROP$$}}</td>
</tr>
</$list>
</table>
\end<<get ##Summary filter:"[tag[apdl AND help]][sort[title]]" table category:"Macro Name">>!!!Summary
Does this then the other
!!!Main Body
More Stuff
$$PROP$$ with !!summary, having first defined a field in each tiddler called summary. This is really inconvenient because I don't want to define a field, it doubles the amount of data entered for the summary and would require care if I forgot to update the field value after changing the summary text.For the TW5 code above to work (for me), I needed to delete the macro argument and replace$$PROP$$with !!summary, having first defined a field in each tiddler called summary. This is really inconvenient because I don't want to define a field, it doubles the amount of data entered for the summary and would require care if I forgot to update the field value after changing the summary text.
!!! Summary
{{!!summary}}Also the first column now lists the tiddlers, but not as links.
<$link to={{!!title}}><$view field="title"/></$link>Hats off to TW2 for being so succinct and powerful. I can't see how TW5 "ends up being a lot more flexible"
This code...\define property_table(PROP)
<table><$list filter="[tag[apdl]tag[help]]+[sort[title]]">
<tr>
<td>{{!!title}}</td>
<td>{{$$PROP$$}}</td>
</tr>
</$list>
</table>
\end
... didn't do the same thing as this code from TW2
<<get ##Summary filter:"[tag[apdl AND help]][sort[title]]" table category:"Macro Name">>
The TW2 code creates a two column table with column headers "Macro Name" and "Summary"
The first column then contains links to each tiddler in the list and the second column takes its content from a part of the column1 tiddler that has a heading "Summary" e.g: "Does this then the other"!!!Summary
Does this then the other
!!!Main Body
More Stuff
For the TW5 code above to work (for me), I needed to delete the macro argument and replace
$$PROP$$ with !!summary, having first defined a field in each tiddler called summary.<thead><tr>
<td>Macro name</td>
<td>Summary</td>
</tr></thead>
\define property_table(section_field, filter, list_header)
<table><thead><tr>
<td>$list_header$</td>
<td>$section_field$</td>
</tr></thead>
<$list filter="$filter$">
<tr>
<td><$link to={{!!title}}><$view field="title"/></$link></td>
<td>{{!!$section_field$}}</td>
</tr></$list>
</table>
\end<<property_table summary "[tag[apdl]tag[help]]+[sort[title]]" "Macro name">>
(This is not very different from your old <<get ##Summary filter:"[tag[apdl AND help]][sort[title]]" table category:"Macro Name">> )!!!Summary
{{!!summary}}
!!!Main Body
More Stuff