Alexei R, *Some food for thought*
As an ICT Consultant, I plan to do exactly what you are doing to document IT infrastructure. I can see how to make a button that would take the value from a field and set it as a tag. Normally this would occur in the viewTemplate. I would have this button appear only if the field existed on the current tiddler using a tiddler tagged with $:/tags/ViewTemplate. However I can feel it in my knowledge management senses that when you say "tags and fields with identical value" you have your design wrong in someway. If you cant design out this complexity I believe you need to give tags or the values in fields primacy, and then allow existing values to provide the source when selecting the value for the other. Further TOC's can be created by multiple means so tags need not be the only method, as mark pointed to in his PMario link. You could make a fields values selectable from any source you wish, or you could set tag values based on values from any source you wish. So perhaps the answer already exists. Regards Tony On Thursday, 2 August 2018 04:42:12 UTC+10, Alexei R wrote: > > I'm trying to use TiddlyWiki to map / document some company's IT > infrastructure. > There are couple types of entities (tiddlers) servers, network equipment, > software, OS, vendors, manufacturers, specs etc. > I provide relationships between entities by tags and individual properties > of each entity by values of particular fields. > On the one hand TiddlyWiki's hierarchal table of content mechanism based > on tagging. > On the other hand I decided to use tiddlers fields as kind of "variables" > in order to stor and refer to a different values by field's name. > But in some cases for some tiddlers I discovered that tags and fields with > identical value. For example in tiddler for server I need tag "Server" in > order to link this tiddler to the server's branch of TOC and on the other > hand I have comp_type field with value server in order to describe that > this computer's type is server. > So in practice I have two variables with the same value that must be the > same for both of them all the time. And if I would like to change the value > I have to be very cautious and do not forget to change both of them > simultaneously. > So I thought why don't I link them together. I'll have single variable > that I could link to a tag and to a field. And change it in one place only. > Is it a way to use tiddlers field values to provide TOC structure? > > On Wednesday, August 1, 2018 at 5:55:56 PM UTC+3, Jed Carty wrote: >> >> Tiddlywiki does not have a method for doing this. But what are you trying >> to achieve? If you already have a filed with the desired value in it you >> may be able to use the field value instead of the tag for whatever you are >> trying to do. >> > -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/52747159-4a4c-4900-b8ef-0f139f764784%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

