\define thisSearchMacro()
<ol>
<$list filter="[[$:/data/Acronyms]indexes[]regexp:title[(?i)$(thisSearch)$]]">
<li><$transclude tiddler="$:/data/Acronyms" index=<<currentTiddler>>/></li>
</$list>
</ol>
\end
--
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.
For more options, visit https://groups.google.com/d/optout.
The order does matter for filters that work as "selectors" rather than strict "filters". For example, the "indexes" operator selects all the data indices present in the tiddlers whose titles are in the current list.
What exactly is {$:/palette}...[{$:/palette}indexes[]sort[title]]interpreted as?
What would happen with a construct like this:[[tag[foo]indexes[]sort[title]]...assuming there were multiple data tiddlers tagged foo?
Also, can any field of a tiddler be used as a DataField or does it always have to be the text field?
As asked / indicated here, I think it can prove beneficial to store related data entries at the exact tiddler to which they relate, yet not in its text-field.
As for deleting indexes from a DataTiddler, here is one way to do it...Look at \define deleteSnapshot() and notice how the index is set on button click, however with no setTo value being specified. This results in setting an undefined value, ergo deleting the index from the data.Best wishes, Tobias.
I'm not so convinced. If we store state within content tiddlers then it makes it harder to share those content tiddlers in a multi-user scenario.
Think "logs", "comments"... all those kinds of things.
Think "logs", "comments"... all those kinds of things.
Is that different from just using fields?
Fields may get very cluttered I guess, but having a connected data tiddler or something would be equivalent to just using a data tiddler in addition to the original one wouldn't it?
I would think that for logs and the like having the tiddler foo and then storing logs in $:/data/foo/logs and comments in $:/data/foo/comments or some similar setup would be less cluttered than having the information stored in the tiddler foo itself.
I think that would make it easier to search and use things like display templates for the data. This would be even better if the system tiddler browser gets implemented ( http://tiddlywiki.com/prerelease/#%24%3A%2Fcore%2Fui%2FMoreSideBar%2FExplore ).
\define thisSearchMacro()
<ol>
<$list filter="[[$:/data/Entrance]indexes[]regexp:title[(?i)$(thisSearch)$]]">
<li><$transclude tiddler="$:/data/Entrance" index=<<currentTiddler>>/></li>
</$list>
</ol>
\end
<<thisSearchMacro>>
I don't understand how the regexp:title[(?i)$(thisSearch)$] portion of code works, I get the same values if it's there or not...?