I import & see this problem ...
[image: Annotation 2020-06-23 192041.jpg]
Best wishes
TT
T
On Tuesday, 23 June 2020 06:38:44 UTC+2, TW Tones wrote:
>
> Folks,
>
> Introducing the *Autonomous field*
>
> I love tiddlywiki and discovered another really nice code pattern and
> thought I would share,
> This is something I plan to use in a blog I am building
>
> This is what I call an Autonomous field, there is a single tiddler in the
> attached file read-date.json
>
> - Autonomous means works on its own.
> - This tiddler is a button, a field definition, a view template and
> configurable tiddler all in one.
> - This particular example places a button on all tiddlers that match
> its internal display-filter
> - If the field does not exist on any tiddler on which it is displayed
> a click will add the field with a time stamp of now
> - This shows how you can timestamp a date on a field to indicate you
> have read it
> - You could make the button disappear, but I leave it there so you can
> stamp it "read" again.
> - Using fields can keep you tags free for ad-hoc relationships.
>
> For those interested here is the code
>
>
> title: read-date
> display-filter: [all[current]!is[system]]
> display-tags: $:/tags/ViewToolbar
> field-format: [UTC]YYYY0MM0DD0hh0mm0ss0XXX
> icon: $:/core/images/timestamp-on
> tags: $:/tags/ViewToolbar
> tooltip: Re-Stamp a read now (read-date)
> tooltip-off: Stamp a read now (read-date)
>
>
> <$list filter={{read-date!!display-filter}} variable=nul>
> <$wikify name=read-date text="""<$macrocall $name=now
> format={{read-date!!field-format}}/>""">
> <$list filter="[all[current]!has[read-date]]" variable=nul>
> <$button class="tc-btn-invisible" tooltip={{read-date!!tooltip-off}} >
> {{$:/core/images/timestamp-off}}
> <$action-setfield $field=read-date $value=<<read-date>> />
> </$button>
> </$list>
> <$list filter="[all[current]has[read-date]]" variable=nul>
> <$button class="tc-btn-invisible" tooltip={{read-date!!tooltip}} >
> {{$:/core/images/timestamp-on}}
> <$action-setfield $field=read-date $value=<<read-date>>
> $timestamp=no />
> </$button>
> </$list>
> <!-- Using read-date
> tag with a tag named in {{read-date!!display-tags}}
> set a display filter for when to show this autonomous field
> Set the field format to use, in this case a data field.
> Change the ions used for the button states above
> Set the tool tip for on and Off buttons
> -->
> </$wikify>
> </$list>
>
> All I need to do;
>
> - is fix its text when behind the more button.
>
>
> I would love to hear what you think, and how we could take this further.
>
>
> - This method could include macros
> - If we could identify we are looking at the tiddler itself and not in
> the toolbar, we could list tiddlers with this field and in date order
> etc...
> - I have just not researched this yet.
>
> Questions!
>
> - What other fields can you imagine world work here?
> - What macro would you like?
>
>
> Regards
> TW Tones
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/4c33a528-70fe-45ef-92b8-9c17fc12e6a9o%40googlegroups.com.