Skip to content

Can we change view/edit template of a tiddler based on the tag? #6158

Answered by saqimtiaz
linonetwo asked this question in Q&A
Discussion options

You must be logged in to vote

@linonetwo add your extra UI in a tiddler tagged $:/tags/ViewTemplate and wrap it in a $list widget with your condition:

<$list filter="[ ...mycondition ...]" variable="null">
<! custom UI here -->
</$list>

If you want to adjust where this UI is shown in comparison to other view template components, add list-before field to your template tiddler.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@saqimtiaz
Comment options

@linonetwo
Comment options

Comment options

You must be logged in to vote
1 reply
@linonetwo
Comment options

Answer selected by linonetwo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants