[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-16 Thread TW Tones
if it helps a few thoughts; I like to think of objects - they have a definition and instances of them. All you need is a way to indicate a tiddler is an object eg a tag or custom field object-type="book". next you have a tiddler in the view template that responds to the existence of the

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-16 Thread si
Very nice Anders, thank you. Is the standardtext field necessary? Why not just have a tiddler $:/view/book which can be transcluded via a ViewTemplate onto any tiddler with tiddlertype=book? On Friday, 16 April 2021 at 13:20:51 UTC+1 Anjar wrote: > Hi Si, > > Thank you for clarification;

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-16 Thread Anjar
Hi Si, Thank you for clarification; however, I think the approach is still valid and demonstrated how it works, and with minor adjustments you can have field templates across source types; (1) Make tiddlers with - title starting with "$:/template", - a field tiddlertype, for example

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-16 Thread si
@Anders The disadvantage of your approach is that you have to manually create a form for every type of source, many of which will share fields with one another. The reason I asked about the best way to associate source-types with their required fields is to avoid this problem. If you know

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-15 Thread Anjar
Hei Sjaak, I think a similar approach can be useful; (1) Make tiddlers with - title starting with "$:/template", - a field tiddlertype, for example tiddlertype: book, and - a field standardtext, for example standardtext: {{||$:/view/book}} (2) This time, the template contains the form you want

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-15 Thread sjaakad...@ziggo.nl
Hi Si, I have been thinking about an approach like yours but have not implemented anything yet. It seems important to me that some fields may be of a different kind than just text to be entered. Like choosing from a list of options (with f.i. the select widget or radio widget). My 2 cts.

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-15 Thread Anjar
Hi Si, Have a look at this post: https://groups.google.com/g/tiddlywiki/c/Q3vU6tnPffI/m/WNguU1p6BwAJ It's about using premade templates to create new tiddlers; you can of course add a form if you prefer that, instead of editing the new tiddler directly Best, Anders torsdag 15. april 2021

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-15 Thread si
@Springer Thanks for your reply. >>> The lovely thing is that you can filter on a tag (or any other filter condition), to see a column for each of the fields you care about for that tag (or filter condition), with a row for each tiddler that fits the condition (and the ability to "clone" new

[tw5] Re: Forms for adding sources: Looking for advice on how to structure the data

2021-04-14 Thread springer
Si, I highly recommend checking out all the RefNotes resources (active here recently, contributed by Mohammad). My own approach is to use a DYNAMIC TABLE (Mohammad's Shiraz) for each reference-type. The lovely thing is that you can filter on a tag (or any other filter condition), to see a