Mark I think the below works

<$vars newFieldNameTiddler=<<qualify "xx:/temp/NewFieldName">>
newFieldValueTiddler=<<qualify "xx:/temp/NewFieldValue">>
searchListState=<<qualify "xx:/temp/searchListState">>
storeTitle=<<qualify "xx:/temp/storeTitle">>
><$transclude tiddler="$:/core/ui/EditTemplate/fields"/>

</$vars>


By way not sure if we meet all requirements or not ;-)


Also this works (copied from TW core editviewtemplate ui itself)

<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify
"$:/temp/NewTagName">> newFieldNameTiddler=<<qualify
"$:/temp/NewFieldName">> newFieldValueTiddler=<<qualify
"$:/temp/NewFieldValue">> newFieldNameInputTiddler=<<qualify
"$:/temp/NewFieldName/input">> newFieldNameSelectionTiddler=<<qualify
"$:/temp/NewFieldName/selected-item">> newTagNameInputTiddler=<<qualify
"$:/temp/NewTagName/input">> newTagNameSelectionTiddler=<<qualify
"$:/temp/NewTagName/selected-item">> typeInputTiddler=<<qualify
"$:/temp/Type/input">> typeSelectionTiddler=<<qualify
"$:/temp/Type/selected-item">>>
<$keyboard key="((cancel-edit-tiddler))"
actions=<<cancel-delete-tiddler-actions "cancel">>>
<$keyboard key="((save-tiddler))" actions=<<save-tiddler-actions>>>
<$list filter="$:/core/ui/EditTemplate/fields" variable="listItem">
<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>]
[<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
<$transclude tiddler=<<listItem>>/>
</$set>
</$list>
</$keyboard>
</$keyboard>
</$vars>



Best wishes
Mohammad


On Thu, Apr 8, 2021 at 10:50 PM 'Mark S.' via TiddlyWiki <
[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/tiddlywiki/39af16b4-1594-4d06-b309-c1cb85be153cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAV1gMB54h92vVE0cuofjDARW%3DVR3yOeStjJzbNPwy6RJ6OQcw%40mail.gmail.com.

Reply via email to