[TW5] when entering edit mode for a tiddler - is it possible customize TW5 to only display the text field (editable) and hide everything else but the tags (not editable) - showing the editor toolbar (and utilize it) is ok :-)

140 views
Skip to first unread message

ch

unread,
Aug 18, 2016, 1:12:55 PM8/18/16
to tiddl...@googlegroups.com
hi,

basically, i only want the text field to be editable - all other fields should be hidden except the title and the tags which i want to display but not possible to edit. It should not be possible to change the tiddler type, or adding a new field. No custom fields should be displayed.

/ch



Matthew Lauber

unread,
Aug 18, 2016, 10:03:37 PM8/18/16
to TiddlyWiki
Yes this is possible. You need to override a bunch of view templates. Right now I don't have them in front of me, but tomorrow I will try to put together a solution for you.

Matthew Lauber

unread,
Aug 19, 2016, 7:57:20 AM8/19/16
to tiddl...@googlegroups.com
Try adding the attached to your wiki.
tiddlers.json

ch

unread,
Aug 19, 2016, 11:12:01 AM8/19/16
to tiddl...@googlegroups.com
wow! that's great matthew!

i added the tiddler, and the "tags" are now not editable (as requested). But, no other visible change (what i can see) in edit mode. The title is still editable, and the fields are also visible.

i only see this tiddler (see below) in the file you attached - did you forgot to include some others that will do the rest of the "magic" (i.e. make the title not editable, and not showing any fields below the "text" field at all)?

- your help is really appreciated, thanks!

/christian


created: 20160819144245166
modified: 20160819144315044
tags: $:/tags/EditTemplate
title: $:/core/ui/EditTemplate/tags

\define lingo-base() $:/language/EditTemplate/
\define tag-styles()
background-color:$(backgroundColor)$;
fill:$(foregroundColor)$;
color:$(foregroundColor)$;
\end
\define tag-body-inner(colour,fallbackTarget,colourA,colourB)
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
<span style=<<tag-styles>> class="tc-tag-label">
<$view field="title" format="text" />
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">&times;</$button>
</span>
</$vars>
\end
\define tag-body(colour,palette)
<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}}/>
\end
<$fieldmangler>
<$list filter="[all[current]tags[]sort[title]]" storyview="pop">
<$macrocall $name="tag" colour={{!!color}} palette={{$:/palette}}/>
</$list>


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/95a4e852-961f-444d-8515-d2d66e141e8c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

ch

unread,
Aug 19, 2016, 11:21:43 AM8/19/16
to tiddl...@googlegroups.com
wait matthew! ...something strange is going on here... when i read your e-mail from web based Gmail, it says that the file is "tiddlers.tid" - but, when i visit this discussion on the web, i.e. https://groups.google.com/d/msgid/tiddlywiki/95a4e852-961f-444d-8515-d2d66e141e8c%40googlegroups.com

...it says that the file is "tiddlers.json"...?

- i will try that json file as well... hold on!

thanks!

/christian

Matthew Lauber

unread,
Aug 19, 2016, 11:31:41 AM8/19/16
to TiddlyWiki
Yeah, I tried to export 3 changes, but becuase 2 of them were blanking files, they didn't get exported.  The .json file will work better for you, but I didn't realize you wanted the title to not be editable.  I've attached another file, that fixes just the title.  To clarify, you'll need both the tiddlers.json file and the title.tid file attached to this.

Matt
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
tiddlers.json
title.tid

ch

unread,
Aug 19, 2016, 12:31:02 PM8/19/16
to tiddl...@googlegroups.com
wow! :-D - it works! thank YOU, Matt! :-)

i hope that i some day could come up with such tiddlywiki magic... TW5 is fantastic! :-)
(link to "Happy, Pharrell Williams")

/ch

ps. cosmetic change request : can i have the title in the same color as the default title color, as well...? :-)


To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages