Oh snap -- I knew there must be some other way to make collapsing titles 
besides the view widget. But the text widget doesn't work and I forgot 
about the transclude widget.

I don't think "phony " is quite the right term. It's a bit pejorative. 
Maybe "prettierlinks"?


Mark


On Sunday, June 18, 2017 at 10:03:38 AM UTC-7, PMario wrote:
>
> On Sunday, June 18, 2017 at 6:34:41 PM UTC+2, Mark S. wrote:
>>
>> subtitle might work. I see that its been used exactly 6 times so far. But 
>> what I liked about 'caption' was that it automatically got used in the toc 
>> macros. Perhaps the toc macros could be written to select the titles with 
>> this priority:
>>
>>   caption -> subtitle -> title
>>
>
> I played a little bit with the macro and called my version "phony". It 
> removes the list-widget completely and would allow us to use nested 
> transclusions to find  the first existing field. See: 
>
>
> \define returnText(tid) <$transclude tiddler="""$tid$""" 
> field=subtitle><$transclude 
> tiddler="""$tid$""" field=title/></$transclude>
> \define phony(tid) <$link to="""$tid$"""><<returnText """$tid$""">></$link
> >
>
> I think this should be a pretty performant solution. 
>
> -m
>

-- 
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 post to this group, send email to [email protected].
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/be99d08a-983e-4d0e-a62d-3a287a7f3893%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to