As a start: <$fieldmangler> <$vars newFieldNameTiddler=<<qualify ":/temp/NewFieldName">> newFieldValueTiddler=<<qualify ":/temp/NewFieldValue">> > <$transclude tiddler="$:/core/ui/EditTemplate/fields"/> </$vars> </$fieldmangler>
On Thursday, April 8, 2021 at 10:35:03 AM UTC-7 Mohammad wrote: > In the Utility plugin <https://kookma.github.io/TW-Utility/> there is a > button on the sidebar that on click shows the fields under subtitle and > above the text of tiddler. > To simplify it I decided to transclude the core tiddler e.g > *$:/core/ui/EditTemplate/fields* in my own tiddler as below and > conditionally tag it with $:/tags/ViewTemplate. > > So if you like to reproduce the whole work > > 1. open https://tiddlywiki.com/prerelease/ > 2. create a tiddler as below > > *title*: my view fields > *tags*: $:/tags/ViewTemplate > *text*: <$transclude tiddler="$:/core/ui/EditTemplate/fields"/> > > 3. create a test tiddler with fields like *fld1 fld2 *with some test > values > 4. save test tiddler and see fields in view mode > > I have attached it for your convenience. > > It works but there are two issues > 1. the keyboard shortcuts do not work > 2. the add new fields does not work > > I think some variables are not set correctly in my solution above! e.g we > need > <$vars .... ... ...> > <$transclude tiddler="$:/core/ui/EditTemplate/fields"/> > </$vars> > > What do you think? > > Best wishes > Mohammad > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/39af16b4-1594-4d06-b309-c1cb85be153cn%40googlegroups.com.

