Hide non-system tiddler non-system tags non-system fields

274 views
Skip to first unread message

Mohammad

unread,
Sep 29, 2019, 3:16:34 AM9/29/19
to TiddlyWiki

 - I have bunch of tiddlers they are not system tiddlers
 - I have bunch of tags they are not system tags

I know for fields is known how to hide them from users, but the problem is with tiddlers and tags!

Sometimes in large wiki, you like to hide tiddlers tags from drop down menus, recent tab, standard search and like that


How it is possible to hide them?


--Mohammad

TonyM

unread,
Sep 29, 2019, 5:03:21 AM9/29/19
to TiddlyWiki
Mohammad

I agree a simple filter should should change both the edit tags a tagpill drop down so you can hide system tags, or specific tags after design. They could also be hidden on the view template as well.

However I was thinking the opposite could be true. The standard search ignores system tiddlers. We could add a system-caption field that is included in the standard search so an installed plugin can publish to users its manager tiddler without it being a non system tiddler, even still a shadow. This could also allow config tiddlers to appear in search. The standard search will only extend to text in the system-caption field in any shadow or tiddler.

I say this now because it should be the exception to your good idea.

Regards
Tony

PMario

unread,
Sep 29, 2019, 6:09:52 AM9/29/19
to TiddlyWiki
Hi,

With the current filter syntax, imo it's not needed to create "hidden tags" ... If you need a filter option you can use a "tag-like" field with the contains operator.

Those fields are "not system tags" they are "no tiddlers". ... imo problem solved.

You may know, that I'm _no_ fan of "hidden information". I think, if it is hidden, it shouldn't be there at all!

If you need a ViewTemplate element, that doesn't show system tags, rename and disable $:/core/ui/ViewTemplate/tags tiddler. The renamed tiddler can be changed in the way you like.

have fun!
mario

TonyM

unread,
Sep 29, 2019, 7:58:19 AM9/29/19
to TiddlyWiki
Mario

I understand where you are coming from. There is a reasonable argument to keep this open in the standard distribution to keep things obvious yet tiddlywiki already hides things only experts can find and at other times is inconsistent

Tiddlywiki standard distribution has decided to hide system tiddlers and tags from the standard search. This helps keep things cleaner for users. This hidding is about clarity not secrecy. It has also chosen to hide the tags field and replace it with a special dialogue, hiding other fields as well.

Yet Tiddlywiki standard distribution has chosen not to hide system tags both on the tag bar or in edit mode.

Should this not be an option for clarity not secrecy?

Perhaps the best of both worlds is to hide system tags behind a more checkbox or an option to do so. This is all the more important since system tags are often a lot longer than standard tags.

I try to avoid expecting the user to use system tiddlers and prefer to give them easy "semantic" word based tags.

I would also like to hide fields the user needs a more advanced field selector (which I provide in the view template) to set rather than edit directly. I only recently worked out how to do this. I then add a design mode that unhides these fields with a click.

Food for thought?

Tony

TonyM

unread,
Sep 29, 2019, 8:07:44 AM9/29/19
to TiddlyWiki
Mohammad

In keeping with Mario's viewpoint and given my own musings can I suggest if you want to hide something you use the existing mechanisium as using the $:/ system namespace. Yes we need a way to reduce the inconsistencies in tiddlywiki but this is a big enough change to make it a plugin option - perhaps part of a designer toolset? I have more than a dozen items that that could be included in a designer plugin most of which can be removed or disabled after design time, a few that you would leave in like removing system items from display or edit for clarity.

Regards
Tony

Mohammad

unread,
Sep 29, 2019, 11:41:28 AM9/29/19
to TiddlyWiki
Thanks Tony!
 Well I agree with you that the core should be kept as simple and light as possible (low in kb).
 I am sure you have the experience of high entropy when a wiki gets bigger and bigger!

I asked to see if a simple solution is available! Hopefuly for fields we have the possibility to hide them!


Cheers
Mohammad

Mohammad

unread,
Sep 29, 2019, 2:23:37 PM9/29/19
to TiddlyWiki
Hi Mario,
 I got the point edit the related template and hide them by modifying the filters!

--Mohammad

Mark S.

unread,
Sep 29, 2019, 3:07:51 PM9/29/19
to TiddlyWiki

Hi Mohammad,


By modifying two core tiddlers, you could filter your tags as presented in the edit template. A select widget would let you pick which group you wanted to see. That was the simplest solution I could come up with. It's something I've been thinking about for awhile, since it's often the case that you only need to see one of two or three sets of tag types.


These were simple mods, so they could be easily deleted and then re-instated after an upgrade.

tag-reduction-example.png

PMario

unread,
Sep 29, 2019, 4:24:41 PM9/29/19
to TiddlyWiki
On Sunday, September 29, 2019 at 8:23:37 PM UTC+2, Mohammad wrote:
Hi Mario,
 I got the point edit the related template and hide them by modifying the filters!

I think, I'm OK with Mark's example, if there is a visual hint, that some of the information is "hidden". So users that only know your TW edition, still have the possibility to see, that there is more information, which may not be relevant for them at the moment.

A similar mechanism may be possible in the view-mode. The unmodified tag-area may be moved to the tiddler (i)nfo area.

I think it would be worth a try, if a simple ... ellipsis, "pill-like" button, would be enough to indicate, that there is more.

have fun!
mario

Mohammad

unread,
Sep 30, 2019, 12:54:10 AM9/30/19
to TiddlyWiki
Hi Mark,
 This is great! I appreciate if you kindly share the modified tiddler!

--Mohammad

TonyM

unread,
Sep 30, 2019, 2:58:30 AM9/30/19
to TiddlyWiki
Mohammad,

I am not sure If I understood exactly but this may interest you. 
  • Search under shadows tab in advanced search
  • $:/config/EditTemplateFields/Visibility/
  • Create a tiddler with a field called fieldname and give it a value
  • Create another tiddler $:/config/EditTemplateFields/Visibility/fieldname containing hide

Open the original tiddler and edit it and you can not "edit" the fieldname field, however it is there because
{{!!fieldname}}
works

In the past we found a standard field can be edited using the edit-text using a text area and line breaks are retained, however if you edit them at the bottom in edit mode you will destroy the line breaks, because the field editor is not using textarea. The Method I suggest would allow you to hide the field so it is not edited in edit mode.

Mark S.

unread,
Sep 30, 2019, 1:44:55 PM9/30/19
to TiddlyWiki

This over-rides core tiddlers. Disable before upgrading.
MAS_TagFilter-0-0-3.json

Mohammad

unread,
Oct 1, 2019, 1:06:18 AM10/1/19
to TiddlyWiki
Many Thanks Mark!

It works for me!

Cheers
Mohammad

Mohammad

unread,
Oct 1, 2019, 1:08:36 AM10/1/19
to TiddlyWiki
Mark,
 In Tiddlywiki.com itself there several pages of tags and you have scroll down.
Your solution filters them and that really simplifies the job!

--Mohammad


On Monday, September 30, 2019 at 9:14:55 PM UTC+3:30, Mark S. wrote:

Mohammad Rahmani

unread,
Oct 1, 2019, 5:55:31 AM10/1/19
to tiddl...@googlegroups.com
Tony!
 This is useful for fields!


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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d58cfc1c-456a-4394-9169-fc8160329ec8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages