Folks, Please see this discussion What is in a tiddler? tiddler types and how we handle them. I am looking at a Proof of concept for the introduction or a types field that behaves similarly to the tags field.
- I can most likely construct all the user interface elements I need
- I am posting here for help with the filter operators
- Unless I have underestimated something, I believe someone with the requisite knowledge and skill may be able to assist without much time and effort.
I have looked at cloning and modifying the following core modules filter tiddlers;
- $:/core/modules/filters/tag.js to type
- $:/core/modules/filters/tagging.js to typing
- $:/core/modules/filters/tags.js to types
- $:/core/modules/filters/untagged.js to untyped
So far I have reached the limit of my JavaScript and TiddlyWiki development skills including;
- The function getTiddlersWithTags defined in $:/core/modules/wiki.js
also needs to be used to create a getTiddlersWithType- A filter operator with this undefined function named abends the wiki
- Then this raises the issue that tags are indexed for performance so there is additional code relating to that
- There is other javascript code I am not sure how to safely manipulate such as
tiddler.fields.tags
andlength=tiddler.fields.tags.length
If anyone can help I will post a demo/dev wiki in tiddlyhost with as much work done as I can to keep the effort to a minimum.