Hi Egbert

Here comes my suggestion for your task: A conditional view template as I 
have learned 
<http://tobibeer.github.io/tb5/#Conditional%20ViewTemplate%20Section> it 
from Tobias Beer. This way we make something that shows up on any tiddler 
meeting predefined conditions. The condition I use is that a tiddler must 
be tagged with a tag ExampleTag so that the notes are shown. Of course you 
can change this to something more meanigful in your case like "joboffer". 

Ingredients for this receipt: a tag, some wikitext code, a list-after field.

a) Your template tiddler must be tagged with $:/tags/ViewTemplate 

b) In the text field we put this:

<$list filter="[all[current]tag[ExampleTag]]">
<$set name="tid" value="Notes-for-$(currentTiddler)$">
<$edit-text tiddler=<<tid>> placeholder="Your text goes here" default="The 
tiddler for storage will be created automagically." rows="10" 
minHeight="10em" class="my-extended-memory-field"/>
Notes go here: <$link to=<<tid>>><<tid>></$link>
</$set>

<style>
.my-extended-memory-field {
   width: 100%;
}
</style>
</$list>

c) create a field for your tiddler, call it list-after and enter this as 
value: $:/core/ui/ViewTemplate/tags

After you have created this tiddler you can tag any tiddler you like with 
"ExampleTag" and it will show a field for notes after saving. 

New elements in this solution: 
* the <$list filter part shows it’s content only if the condition with the 
tag is met.
* the <$set statement creates a variable tid that contains the title for 
the storage tiddler. You can change the prefix *Notes-for-* if you like.

Good luck!
Thomas

-- 
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/12124c3a-fe5b-4fda-bdf8-a02496463921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: notes-template.tid
Description: Binary data

Reply via email to