Transclue a Table into a View Template TW5

106 views
Skip to first unread message

googlep...@dfgh.net

unread,
Feb 10, 2018, 3:26:31 PM2/10/18
to TiddlyWiki
Brand New TW5

Create Tiddler like attached ...
Title: ViewThisOnAll
Content:

View On All

|Col1 | Col2 |
|Val1 | Val2 |

Tag as $:/tags/ViewTemplate

The tiddler itself looks fine but when transcluded onto all tiddlers via ViewTemplate ... I loose the table structure
I can create another tiddler whick uses the Transclude Widget to do the work with mode = 'block' and that works ...
But that should not be needed should it?
And I can find this same example to work just fine on 
Creating a simple Contacts DB

Thx,
Brett

googlep...@dfgh.net

unread,
Feb 10, 2018, 3:49:53 PM2/10/18
to TiddlyWiki
Here is a screenshot of the tiddler
2018-02-10_14-21-17.jpg

Birthe C

unread,
Feb 10, 2018, 5:49:04 PM2/10/18
to TiddlyWiki
Title: ViewThisOnAll
Content:

<$list filter="[is[current]]">


|Col1 | Col2 |
|Val1 | Val2 |


</$list>

Tag as $:/tags/ViewTemplate

Birthe

googlep...@dfgh.net

unread,
Feb 11, 2018, 7:54:45 AM2/11/18
to TiddlyWiki
THANKS!  That works ... looks like it is the line feeds before the table that make this work ... 
In the Creating a simple Contacts DB referenced before, it does not do that, yet it works there.
But that gets me what I need and I am thankful!

Have an awesome weekend, Birthe!
Brett

Birthe C

unread,
Feb 11, 2018, 1:16:08 PM2/11/18
to TiddlyWiki
Hi Brett,
In your question you referred to http://tw5magick.tiddlyspot.com/ and the viewtemplate. Looking into that one you will see: <$list filter="[is[current]tag[person]]">

You did not want a tag, but still the table showing on all tiddlers.

Birthe

googlep...@dfgh.net

unread,
Feb 11, 2018, 8:00:28 PM2/11/18
to TiddlyWiki
Yup, that was what I was after!
Just wanted to make the example as simple as possible!  
I am up and running now!

Thanks for the assist!
Brett
Reply all
Reply to author
Forward
0 new messages