@Tobias Beer & @PMario Thanks for the comments guys, you're welcome. :)

@Tobias Beer what you describe in that link is a very well worded 
description of the limitations I found with the current set of tools, and 
exactly what I envision would be a perfect solution. I sure as hell would 
love to see it as a plugin, very interesting discussion.
I made a few (very) crude attempts at implementing that myself, by editing 
the current tag editor tiddler $:/core/ui/EditTemplate/tags, to read from a 
custom field and list entries from different tiddlers.
I copied code from the current documentation and from a few tips and 
research I did around the forum, but eventually came to a halt because I 
couldn't get it to list tags individually, they were grouped together as if 
the whole content of each tiddler's custom field was a single tag.
I later came up with the solution above which kind of works acceptably for 
my use case; so I'll leave the code here for anyone smarter than me who 
cares to look at it. It's probably the wrong way to go about doing it, but 
maybe it'll inspire someone who actually knows what he's doing to complete 
it or implement it correctly as a plugin.

This would go as a tiddler tagged with $:/tags/EditTemplate for a custom 
field named "custom_field_name"

\define lingo-base() $:/language/EditTemplate/
\define tag-styles()
background-color:$(backgroundColor)$;
\end


``<$list filter="[all[current]has[custom_field_name]]" storyview="pop">``
<div class="tc-edit-tags">``
<$fieldmangler>
``<$list filter="[each[custom_field_name]get[custom_field_name]]" storyview=
"pop">``<$set name="backgroundColor" value={{!!color}}><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>
</$set>
</$list>

<div class="tc-edit-add-tag">``
<span class="tc-add-tag-name">``
<$edit-text tiddler="$:/temp/NewCustomEntryName" tag="input" default="" 
placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} 
focusPopup=<<qualify 
"$:/state/popup/custom-field-auto-complete">``> class="tc-edit-texteditor 
tc-popup-handle"/>
</span> <$button popup=<<qualify 
"$:/state/popup/custom-field-auto-complete">``> 
class="tc-btn-invisible tc-btn-dropdown" 
tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} 
aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>
 
<span class="tc-add-tag-button">``
<$button param={{$:/temp/NewCustomEntryName}} set="$:/temp/
NewCustomEntryName" setTo="" class="">``
<$action-setfield custom_field_name={{$:/temp/NewCustomEntryName}}/>
<<lingo Tags/Add/Button>>
</$button>
</span>
</div>

<div class="tc-block-dropdown-wrapper">``
<$reveal state=<<qualify "$:/state/popup/custom-field-auto-complete">``> 
type="nomatch" text="" default="">``
<div class="tc-block-dropdown">``
<$linkcatcher set="$:/temp/NewCustomEntryName" setTo="" message="tm-add-tag
">``
``<$list filter="[search:custom_field_name{$:/temp/NewCustomEntryName} 
search:title{$:/temp/NewCustomEntryName}sort[]]">``
{{||$:/core/ui/Components/tag-link}}
</$list>
<hr>
``<$list filter="[each[custom_field_name]get[custom_field_name]search:title{
$:/temp/NewCustomEntryName}sort[]]">``
{{||$:/core/ui/Components/tag-link}}
</$list>
</$linkcatcher>
</div>
</$reveal>
</div>
</$fieldmangler>
</div>
</$list>






On Tuesday, 15 September 2015 10:41:02 UTC+1, Tobias Beer wrote:
>
> Thanks for the instructions,
>
> While a bit blown out of proportion, discussion-wise, here's a 
> related issue about wanting more "tag-fields" and perhaps a desire to 
> leverage the same core tag-components to establish custom tag-collections 
> or tag-sets or whatever you call it, yours having a prefix and being actual 
> tags:
>
> https://github.com/Jermolene/TiddlyWiki5/issues/1324
>
> Best wishes, Tobias.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/85259903-85ba-4eb4-979a-431707b5ee6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to