Cannot pull in tiddlers via Saq's External Content plugin

Hi,

I am trying to set up the plugin External Content by Saq

https://saqimtiaz.github.io/tw5-plugins-sandbox/#Documentation%3A%20ExternalContent

But the tiddlers I want to import are prefixed $:/ and the only tag is $:/tags/Licenses, for some reason I can’t make it to work.

  • content-filter: [tag[$:/tags/Licenses]] or [is[system]tag[$:/tags/Licenses]]
  • text: https://licenses.tiddlyhost.com

I also attached the exported tiddler.

$__external_licenses.tiddlyhost.com.json (251 Bytes)

I tried it with regular tiddlers, and it works fine. I also tried escaping $ to $.

Understandably, I can just rename the tiddlers and add a new tag, but I like to keep them hidden so if anyone wants to export the individual license tiddlers (or me in the future), they don’t have to deal with changing the title and removing the extra tag.

Is there something I’m doing wrong or missed?

Thank you! :bowing_man:t4:

It looks as though you will have to set the content-filter parameter, which defaults to [all[]], excluding system tiddlers. Perhaps you can use [all[tiddlers+shadows]].

Thank you!

After additional tests, it seems tiddlers that starts with $:/ are not created regardless, I guess it’s protected or something?

  • [all[tiddlers+shadows]] - did not work
  • [all[tiddlers+shadows]tag[$:/tags/Licenses]] - did not work

So, what I did next, I created a regular titled tiddler but only with tag $:/tags/Licenses. (So, CC-BY-SA-4.0 instead of $:/CC-BY-SA-4.0. The results are:

  • [tag[$:/tags/Licenses]] - did not work
  • [all[tiddlers]tag[$:/tags/Licenses]] - works

Hmm… I think it’s good regardless, since it’s a licenses only ‘repo’ it’s fine to have a regular title. The host site can just set content-filter to a specific tiddler, like:

  • content-filter: [[CC-BY-SA-4.0]]

Thank you again. :bowing_man:t4:

I’ve often gotten caught by expecting [tag[$:/systemtag]] to work one way, and instead I get a much-reduced list…

Actually, what you should insert is [all[tiddlers+shadows] if you don’t want to miss shadows. This can be very important when gathering a list of things tagged $:/tags/ViewTemplate — for example.

Fun trick: [[$:/tags/Licenses]tagging[]] is a compact way of getting what you need. By starting with the actual value of the tag, you bypass the assumption that a filter implicitly starts with [all[tiddlers]]

1 Like

Ahh, yes, sorry I forgot to mention it, I also tried [all[tiddlers+shadow]] and [all[tiddlers+shadow]tag[$:/tags/Licenses]] but it isn’t creating a copy of a shadow tiddler, only the regular ones.

For example, it should create a copy of: Licenses — a collection of licenses for TiddlyWiki (the title is: $:/CC-BY-SA-4.0).

“shadows” must be plural!

[all[tiddlers+shadows]]