[TW5] Transcluding tiddler sections by Headings

1,251 views
Skip to first unread message

Koh Schooley

unread,
May 27, 2014, 11:10:54 AM5/27/14
to tiddl...@googlegroups.com
Hi all, first time poster here so apologies if I'm lacking pertinent info.

I've searched around for any answers to this, both in this google group, the current tiddlywiki docs, and google itself, with no luck.

I'd like to be able to transclude a section of one tiddler into another based upon headings.  So, the first tiddler may look something like:

[TiddlerOne]
!Heading One
don't display me
!Heading two
display me!
!Heading three
don't display me either

I'd like to, say, only display the text "display me!" as found between heading two and three.  The old tiddlywiki syntax looks to have acomplished this through the format:

[[TiddlerOne##Heading two]]

But I do not see this in the current versions documentation, nor does it seem to work in my testing.  This easy syntax looks to have been repurposed for transcluding a specified indeedx property of a DataTiddler.

Have I overlooked how to do this in TW5?  Is this still a feature in the works?  Or possibily are there plugins or solutions otherwise to accomplish what I'd like to do?

Thanks to all those who work on Tiddlywiki -- it's been great as a daily work log, and to those who can provide help.

Matabele

unread,
May 27, 2014, 12:39:36 PM5/27/14
to tiddl...@googlegroups.com
Hi

Don't know if this fits your requirements, but there's a workaround:

In TiddlerOne
--------------------

!Heading One
{{!!field-one}}
!Heading two
{{!!field-two}}
!Heading three
{{!!field-three}}

field-one: don't display me
field-two: display me!
field-three: don't display me either

Then in TiddlerTwo
---------------------------

To display field-two: {{TiddlerOne!!field-two}}

Or to display multiple fields from TiddlerOne, try:

<$tiddler tiddler="TiddlerOne">

{{!!field-two}}
{{!!field-five}}
...

</$tiddler>

regards

Jeremy Ruston

unread,
May 27, 2014, 1:23:08 PM5/27/14
to TiddlyWiki
Hi Koh

There are no current plans to be able to transclude sections of tiddlers in TW5. The recommended approach is to split the big tiddler up into smaller tiddlers that can be transcluded separately.

Best wishes

Jeremy.



--
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.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Danielo Rodríguez

unread,
May 27, 2014, 1:23:28 PM5/27/14
to tiddl...@googlegroups.com
<$tiddler tiddler="TiddlerOne">

{{!!field-two}}
{{!!field-five}}
...

</$tiddler>

I never thought about that use for the tiddler widget. Thank you very much.

PMario

unread,
May 27, 2014, 1:27:07 PM5/27/14
to tiddl...@googlegroups.com
The behaviour you are requesting was part of TiddlyWiki classic.
.. Transcluding tiddler sections and slices.

This behaviour is removed from TW it there is probably no chance to get it back.

I did run several recorded and several unrecorded attempts to convince Jeremy to get them back ... with no success ... and some very good reasoning from Jeremy.

hangout 8
https://www.youtube.com/watch?feature=player_detailpage&v=a0UZfd48Ixc#t=4484

hangout 20
https://www.youtube.com/watch?feature=player_detailpage&v=8_-HhbEMiJ4#t=3671

...  So he probably convinced me :)

The way to go with TW5 is different now. Just create smaller tiddlers with tags and use the list widget to combine them afterwards.
The core functionality to do this is part of TW already. ... The problem is, that the UI to make this stuff easy and convenient to use, is missing at the moment.

So any help will be highly appreciated.

have fun!
mario

Koh

unread,
May 27, 2014, 1:51:35 PM5/27/14
to tiddl...@googlegroups.com
After some thought, I have to agree that the best way to approach my problem is to adapt to TW5s conventions of usage, and begin splitting my daily work logs into smaller sections for each topic.  

Previously, I'd have a tiddler for each day (5/23/14, 5/24/14, 5/25/14).  and tag them as "log" so I have a running list of them.

Now, I will adapt and create a head tiddler for each day, still titled by the date and tagged log, and then simply transclude all tiddlers with that days date as a tag in.  

The one issue I see with this is it will quickly begin to busy up my "tag-space" if you will... To circumvent this is there anyway to use fields much like tags in this sense?  That is, can you transclude a group of tiddlers into one tiddler based upon their field values?  I apologize if this is a stupidly easy question -- I have no experience in using the fields.

Thanks again all, and especially Jeremy, for your great work on this software.  I work at one of the larger HPC centers in the US and can say that I am a happy daily user of TW5, and have even got a co-worker or two to try it out.

Best
-KS

Danielo Rodríguez

unread,
May 27, 2014, 2:04:19 PM5/27/14
to tiddl...@googlegroups.com
Yes, there is a way to do it and I strongly recommend you to use it.

Just take a look at filters at tiddlywiky.com. You can start with the "has" filter wich will probably guide you in how to filter by field.

PMario

unread,
May 27, 2014, 2:08:43 PM5/27/14
to tiddl...@googlegroups.com

Jeremy Ruston

unread,
May 27, 2014, 2:11:21 PM5/27/14
to TiddlyWiki
Hi Koh

As Danielo says, you can do things like:

{{{ [has[myfield]sort[created]] |viewtemplate}}}
{{{ [myfield[myvalue]sort[created]] |viewtemplate}}}

"viewtemplate" would be a template tiddler containing something like:

! <$view field="title"/>

<$transclude/>

 
Thanks again all, and especially Jeremy, for your great work on this software.  I work at one of the larger HPC centers in the US and can say that I am a happy daily user of TW5, and have even got a co-worker or two to try it out.

Thanks for the kind words, much appreciated. Spreading the word about TiddlyWiki makes a big difference.

Best wishes

Jeremy

 

Best
-KS

On Tuesday, May 27, 2014 1:27:07 PM UTC-4, PMario wrote:
The behaviour you are requesting was part of TiddlyWiki classic.
.. Transcluding tiddler sections and slices.

This behaviour is removed from TW it there is probably no chance to get it back.

I did run several recorded and several unrecorded attempts to convince Jeremy to get them back ... with no success ... and some very good reasoning from Jeremy.

hangout 8
https://www.youtube.com/watch?feature=player_detailpage&v=a0UZfd48Ixc#t=4484

hangout 20
https://www.youtube.com/watch?feature=player_detailpage&v=8_-HhbEMiJ4#t=3671

...  So he probably convinced me :)

The way to go with TW5 is different now. Just create smaller tiddlers with tags and use the list widget to combine them afterwards.
The core functionality to do this is part of TW already. ... The problem is, that the UI to make this stuff easy and convenient to use, is missing at the moment.

So any help will be highly appreciated.

have fun!
mario

--
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.

Matabele

unread,
May 27, 2014, 3:22:53 PM5/27/14
to tiddl...@googlegroups.com
Hi

I faced the same issue with unnecessarily cluttering the tag space when developing Q&D gTiD -- I resorted to using fields for most of the underlying mechanisms of gTiD.

The resulting (empty) effort may be seen here: http://gtid.tiddlyspot.com/

Have a look at the resulting 'More/Tags' tab :-) Try adding a few tickler folders, then go back to the 'More/Tags' tab.

regards

Danielo Rodríguez

unread,
May 28, 2014, 10:22:54 AM5/28/14
to tiddl...@googlegroups.com
This thread have inspired me to create a plugin for splitting large tiddlers into small ones. The idea is to take a large tiddler with several headers, click the split button and get a set of small Tiddlers transcluded into the big one. What do you think?

PMario

unread,
May 28, 2014, 10:46:49 AM5/28/14
to tiddl...@googlegroups.com

On Wednesday, May 28, 2014 4:22:54 PM UTC+2, Danielo Rodríguez wrote:
This thread have inspired me to create a plugin for splitting large tiddlers into small ones. The idea is to take a large tiddler with several headers, click the split button and get a set of small Tiddlers transcluded into the big one. What do you think?

Interesting idea.
... go on :)

-m

Jeremy Ruston

unread,
May 28, 2014, 11:09:13 AM5/28/14
to TiddlyWiki
Interesting idea.
... go on :)

+1

Good luck! Best wishes,

Jeremy
 

-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 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.

Matabele

unread,
May 28, 2014, 12:40:50 PM5/28/14
to tiddl...@googlegroups.com
Hi

Great idea -- would be nice if the sections ended up as sliders in the main tiddler :-) 

I have a large number of looong tiddlers -- if I could add headers then split -- that should do the trick.

regards


On Wednesday, May 28, 2014 4:22:54 PM UTC+2, Danielo Rodríguez wrote:

Koh

unread,
May 28, 2014, 1:36:19 PM5/28/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
I'm trying to make the solution your posted work, but am having issues.

I have my head daily log tiddler, for today it is 14/05/28, and it has the following:

{{{ [date[14/05/28]sort[created]] ||transcludeTiddler }}}

transcludeTiddler is tagged with $:/core/templates/ and contains the following:

!<$view field="title"/>

<$transclude/>

And i have other tiddlers, transcludeMe and transcludeMe2, with 14/05/28 for the date field, containing:

blah, blah, blah

The head log tiddler, 14/05/28, ends up displaying

!transcludeMe blah, blah, blah!transcludeMe2 blah, blah, blah

Am I missing in step in making this happen?

Eric Shulman

unread,
May 28, 2014, 1:50:15 PM5/28/14
to tiddl...@googlegroups.com
On Wednesday, May 28, 2014 7:22:54 AM UTC-7, Danielo Rodríguez wrote:
This thread have inspired me to create a plugin for splitting large tiddlers into small ones. The idea is to take a large tiddler with several headers, click the split button and get a set of small Tiddlers transcluded into the big one. What do you think?

I did something very similar for TWC... see:

SplitTiddler is written using an embedded HTML form with javascript handlers for processing the data.  You can specify the format for generating new tiddler titles, the output format to insert into those tiddlers, and any tags to add to those tiddlers.  You can also choose *how* the tiddler is to be split: every N characters, every N lines, or by matching specified text (or regexp text pattern).  Options include the ability to limit the number of tiddlers created, and to generate an "index" tiddler with a specific format for referencing each newly created tiddler (e.g., links, transclusions, sliders, etc.).

SplitTiddler uses mostly general javascript code, with only a few places where TWC-specific objects and functions are used.  You may be able to 'borrow' some of my code and feature ideas to get you started.

let me know how it goes...

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:


Mat

unread,
May 12, 2015, 7:42:41 AM5/12/15
to tiddl...@googlegroups.com
Danielo Rodríguez wrote:
This thread have inspired me to create a plugin for splitting large tiddlers into small ones. The idea is to take a large tiddler with several headers, click the split button 
and get a set of small Tiddlers transcluded into the big one. What do you think?


@Danielo, just curious if you - or anyone - has had a chance to implement this? No pressure, just think it would be great. Seems like a key workflow tool for sticking with the Philosophy of Tiddlers.

<:-) 

Danielo Rodríguez

unread,
May 12, 2015, 1:13:44 PM5/12/15
to tiddl...@googlegroups.com


El martes, 12 de mayo de 2015, 13:42:41 (UTC+2), Mat escribió:

@Danielo, just curious if you - or anyone - has had a chance to implement this? No pressure, just think it would be great. Seems like a key workflow tool for sticking with the Philosophy of Tiddlers.

<:-) 

Hello MAT. No, I leaved the idea apart because I found that I will not use it much. Anyway, what we need is to create the sections of a tiddler as tiddlers from the beginning. We need a good workflow to do this. MagicTabs from Alberto molina is a good approach, but has some raw edges.

Regards
Reply all
Reply to author
Forward
0 new messages