working with "original" shadow tiddler

210 views
Skip to first unread message

Rustem

unread,
Sep 1, 2017, 7:09:48 PM9/1/17
to TiddlyWiki

When I have a tiddler overriding a shadow, how can I display the original shadow tiddler as defined in a plugin, including all it's fields?

--R.

PMario

unread,
Sep 1, 2017, 7:51:12 PM9/1/17
to TiddlyWiki
On Saturday, September 2, 2017 at 1:09:48 AM UTC+2, Rustem wrote:
When I have a tiddler overriding a shadow, how can I display the original shadow tiddler as defined in a plugin, including all it's fields?

Just rename the "new" tiddler and the shadow will come back. .... back and forth.

-m

Rustem

unread,
Sep 1, 2017, 8:10:26 PM9/1/17
to TiddlyWiki
Not see for myself, but *display*.

I already got to the point where I can display each field of the original by name, explicitly. What I'm looking for is a filter to list all fields of the tiddler that is inside `[shadowsource[]]`.

-R.

BJ

unread,
Sep 3, 2017, 4:00:29 PM9/3/17
to TiddlyWiki
you can use the subtiddler option with the transclusion widget

BJ

Rustem

unread,
Sep 4, 2017, 12:49:26 AM9/4/17
to TiddlyWiki
Yes, that's what I'm doing. That's how I can display any field if I know it's name. I can transclude it using the subtiddler option and the field option. I'm looking for the next step - to display all the fields, without knowing their names. With a standard tiddler, I would use a fields[] filter operator for that. But there is no way to do it for a subtiddler.

BJ

unread,
Sep 4, 2017, 7:36:48 PM9/4/17
to TiddlyWiki
I dont think there is a way to do that.

I have an extension that I use for this it has the syntax:

<$set name="plugintiddler" value="$:/plugins/bj/struc">
<$list filter = "[plugin<plugintiddler>title[$:/plugins/bj/struc/license]fields[]]">

<$view tiddler=<<plugintiddler>> subtiddler="$:/plugins/bj/struc/license" field=<<currentTiddler>> format="text"/>
</$list>
</$set>




I could share it if you like...

Rustem

unread,
Sep 4, 2017, 8:51:33 PM9/4/17
to TiddlyWiki
So, you have an operator "plugin", that replaces the overriding tiddler with the original shadow tiddler, for the scope of the filter run??? This belongs in the core! Please do share. Thanks. :)

BJ

unread,
Sep 5, 2017, 12:38:30 PM9/5/17
to TiddlyWiki
I've put it here:

http://bjhacks.tiddlyspot.com/

enjoy!

Rustem

unread,
Sep 5, 2017, 3:04:46 PM9/5/17
to TiddlyWiki
If I replace "fields[]" with "tags[]" in your example, I get the override's tags. Is "fields[]" the only possible filter following "plugin[]title[]"?

Not complaining nor requesting anything, just want to know what's possible, and it's not apparent to me from the source code. Thanks!

BJ

unread,
Sep 6, 2017, 9:39:09 AM9/6/17
to TiddlyWiki
unfortunately it does not work! The filter is pulling the unshadow tiddler out or the store.

TonyM

unread,
Sep 6, 2017, 10:08:15 PM9/6/17
to TiddlyWiki
My 2cents

You want to override the override of a shadow tiddler to access its fields?

What about cloning the shadow tiddler with a new name (remove and tags that make it active) and use that copy to identify the list of fields in it, which will match those in the original shadow tiddler. You can then use this information to reference the actual fields in the shadow tiddler?

Just a different approach, and a variation on Marios "Just rename the "new" tiddler and the shadow will come back. .... back and forth. "

Regards
Tony

wimm

unread,
Sep 7, 2017, 11:13:36 AM9/7/17
to TiddlyWiki
did you have a look at?
<$view tiddler="title" subtiddler="tiddlertitle" field="tags"/>

BJ

unread,
Sep 13, 2017, 4:19:32 PM9/13/17
to TiddlyWiki
This is now fixed.

There is a new ''tidsub" filter -
example:

[plugin<plugintiddler>tidsub[TiddlerName]fields[]]

all the best

BJ


On Tuesday, September 5, 2017 at 9:04:46 PM UTC+2, Rustem wrote:
Reply all
Reply to author
Forward
0 new messages