How to show edit-widgets when editing tiddlers with specific tags?

77 views
Skip to first unread message

Adithya B

unread,
Mar 18, 2021, 12:44:45 AM3/18/21
to TiddlyWiki
Hi everyone!

I want to show edit-widgets only when editing tiddlers with specific tags ("song" for example). 

And how to display specific information only when viewing specific tags?

Can someone point me in the right direction?

Thanks!

Mat

unread,
Mar 18, 2021, 7:03:40 AM3/18/21
to TiddlyWiki
Hi. Yes, you create a conditional viewtemplate. I.e a tiddler tagged $:/tags/ViewTemplate and therein the condition like so:

<$list filter="""[all[current]tag[Apple]] [all[current]tag[Banana]]""">
Show this
</$list>

<:-)

Adithya B

unread,
Mar 18, 2021, 3:29:07 PM3/18/21
to tiddl...@googlegroups.com
Thanks Mat, I am trying to do the same for the editor as well.

This with a tag of tags/EditTemplate adds a textarea at the botton of the edit page:
<$list filter="""[all[current]tag[song]]""">
<h3>Lyrics</h3>
<$edit-text
  field="song"
  class="tc-edit-texteditor tc-edit-texteditor-body"
  tabindex=1
  cancelPopups="yes"/>
</$list>

How can I add that near the top, maybe above the body input?


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/VDzktGhe_yY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9d4435c5-f214-4398-af9e-ed8d4434a61an%40googlegroups.com.

Eric Shulman

unread,
Mar 18, 2021, 5:40:53 PM3/18/21
to TiddlyWiki
On Thursday, March 18, 2021 at 12:29:07 PM UTC-7 bmad...@gmail.com wrote:
How can I add that near the top, maybe above the body input?

You can set the order of the tiddlers with a given tag (e.g., $:/tags/EditTemplate) by using drag-and-drop within the tag list.

1) while viewing any tiddler with the desired tag
2) click on the tag pill to view the list of tiddlers with that tag
3) drag any tiddler title to the desired location in the list

enjoy,
-e

Adithya B

unread,
Mar 23, 2021, 4:46:16 PM3/23/21
to TiddlyWiki
Thanks Eric!

This functionality is great. I never imagined it would work this way.
Reply all
Reply to author
Forward
0 new messages