Using Text Slicer to achieve unexpected result

50 views
Skip to first unread message

Jon

unread,
Jan 20, 2020, 4:17:15 AM1/20/20
to tiddl...@googlegroups.com
Hi,

Starting with a longer tiddler, I wanted to extract certain paragraphs and include them under different headings on a summary page.

I used the text slicer and cut them up based on paragraphs.

I noticed that the content of the sliced paragraph is included in the caption field - pehaps that's how the following works.

I then added a field to the sliced tiddler eg. topic: A and topic B for subsequent sliced tiddlers etc.

Then, in the summary page 

Topic A:
<<list-links "[search:topic[A]]">>

Topic B:
<<list-links "[search:topic[B]]">>

This gives the hyperlinked transcluded text of the sliced paragraphs.

There's no way I could have worked this out but it seems to produce what I want. <<list-links>> is something I had in my crib sheet but I don't know how it works or if something else would be more appropriate.

As I've just stumbled across it, I just want to check this is a reasonable way of going about things before reproducing this across my wiki.

Regards
Jon






Jon

unread,
Jan 20, 2020, 4:41:02 AM1/20/20
to TiddlyWiki
So to clarify further,

In my summary page, where the field has been added to a sliced tiddler, there is the section of transcluded (linked) text - which is very useful as I can read it and know where it's come from by clicking on it.

Where the field has been added to an original, un-sliced tiddler, there is the link of the tiddler title - which is less useful as you need to click on that to read it.

So for unsliced tiddlers, can you reproduce the same effect, i.e. transclude the text of the tiddler but render it as a link?

Regards
Jon

Jon

unread,
Jan 20, 2020, 4:48:48 AM1/20/20
to TiddlyWiki
Well, 

I suppose this would be part of the answer {{MyTiddler!!text}}
Just need the rest

Regards
Jon

On Monday, 20 January 2020 09:17:15 UTC, Jon wrote:
Reply all
Reply to author
Forward
0 new messages