Discussion:
[tw5] Listing/listed
(too old to reply)
Hubert
2018-12-03 14:29:10 UTC
Permalink
Hello,

I've noticed that when the title of a tiddler being listed in another
tiddler is changed, the list of the listing tiddler is also adjusted to
reflect the modified title of the listed tiddler.

However, this automatic adjustment only seems to happen if the parameter
for the listed filter is set to none; if the parameter is set to an
arbitrary value matching a field whose name is other than 'list; the
automatic adjustment is not taking place. Is this by design? If so, can we
extend this functionality to fields not named 'list'?

Many thanks,
Hubert
--
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 ***@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/8bbf7f03-0862-4a99-896e-f9c156500f30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eric Shulman
2018-12-03 16:30:05 UTC
Permalink
Post by Hubert
I've noticed that when the title of a tiddler being listed in another
tiddler is changed, the list of the listing tiddler is also adjusted to
reflect the modified title of the listed tiddler. However, this automatic
adjustment only seems to happen if the parameter for the listed filter is
set to none; if the parameter is set to an arbitrary value matching a field
whose name is other than 'list; the automatic adjustment is not taking
place. Is this by design? If so, can we extend this functionality to fields
not named 'list'?
As you've noted, the "list" field has special handling that allows for
automatic substitution when a title is changed. This is possible because
the "list" field is always treated as a *space-separated list of tiddler
titles*. Thus, it can be parsed for individual title matches to recognize
when a title has been changed and replace only that title text within the
field value.

The problem with doing this for other fields is that they can contain
spaces that are just normal text not intended to be treated as separators
between titles.

Consider two fields where
list = "foo bar baz" (a list of three tiddler titles)
and
otherfield = "this ice cream bar is tasty" (some normal text)

If you change the title of the tiddler named "bar" to "mumble", then the
value of "list" is updated to "foo mumble baz"

However, the value of "otherfield" should remain unchanged even though it
contains "bar", because that is just normal text.

Currently, ALL field content except for the "list" field are treated as
normal text (see note below). To achieve what you want, we would need to
be able to explicitly specify which fields are to have the special list
handling to differentiate them from regular fields containing text with
spaces.

note: standard tiddler date fields ("created" and "modified") are *stored*
as normal text using format "YYYY0MM0DD0hh0mm0ss0XXX" (e.g.
"20150117190213631" for January 17, 2015 at 19:02:13.631). These fields
can be formatted for date/time *display* using the <$view ...
format="date"...> widget.

-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+***@googlegroups.com.
To post to this group, send email to ***@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/8f638b29-a42b-48c4-b5bd-105d6bfe3140%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-12-04 03:12:29 UTC
Permalink
Eric,

If it were posible to nominate other fields to behave and update titles it would be helpful, after all tiddlywiki is all about tiddlers and lists.

Actualy, Mario s gentags macro does this.

Regards
Tony
--
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 ***@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/71ebdf19-beab-495a-8c06-4adc30f8fb22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...