On Friday, April 10, 2020 at 4:38:27 PM UTC+2, Mat wrote:
>
> Saq - thanks a lot for that code! 
>
> A variant of your code would be to allow for sq-viewtemplate to contain a 
> *filter* rather than a tag, so the user has the option to directly 
> specify titles *and/or* [tag[]] including tag[$:/tags/ViewTemplate] if 
> one merely wants to add/remove to the standard set. This would also make it 
> easier to add a template into the correct position.
>

Yep, there are many alternative ways to tweak that code. I actually started 
by just having a filter in sq-viewtemplate that was used for the list of 
view template tiddlers. However since this was for a specific use case 
rather than meant to be general purpose, I found it easier in use in the 
form I posted. My priorities were:

a) being able to define a completely different UI for some tiddlers, hence 
a different tag.  
b) being able to easily remove a single tiddler from the default view 
template list (and not have to worry about specifying a filter for the 
entire list). The add/remove fields would for example, be an easy way to 
hide the text field of a tiddler and use a different template for that 
field instead.

While the filter approach solved both of these, in my usage I found it more 
heavy handed. .
Hope this helps,

Saq

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0acbb74f-6c4d-4115-b7fc-53a527542097%40googlegroups.com.

Reply via email to