Hi Thomas, I know this is a fairly old post, but is there a way to have 
this with a scrollbar instead of it constantly expanding downward?

On Wednesday, March 22, 2017 at 4:32:00 PM UTC-4, Thomas Elmiger wrote:
>
> 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 receipe: 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.
> * UPDATE: the list-after field defines, where our notes appear in the 
> view template: right after the tags.
>
> Good luck!
> Thomas
>
> ((Updtate 2: Removed attachment, that was an old version))
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/daa34826-7957-4762-9d67-06d66b420e55%40googlegroups.com.

Reply via email to