On Saturday, March 23, 2019 at 1:35:26 AM UTC-7, Huw wrote:
>
> *Create a list from a specific tag*
> This can be in any format (For example just a list of tiddlers or the same 
> list inside a select control etc)
>

> *Transclude selected Tiddler into a panel on the same page*
> When I click a tiddler in the list the content of the tiddler needs to be 
> transcluded into a DIV or some other kind of container that is on the same 
> page as the list and preferably editable.
>

Give this a try:
<$select tiddler="$:/temp/selected/character">
   <$list filter="[tag[About]]">
      <option><$text text=<<currentTiddler>> /></option>
   </$list>
</$select>
<br>
<style>.wideEdit { width:100%; } </style>
<$edit-text tiddler={{$:/temp/selected/character}} tag="textarea" 
class="wideEdit" autoHeight="no" rows="15" />


What it does:
* The $select widget creates a drop-down list of all the titles matching 
the tag value (in this example, "About")
* The current selection is stored in a temporary tiddler, 
"$:/temp/selected/character" (note: you can use any tiddler title you like)
* The embedded <style> defines a classname for setting the edit field width 
(you can't use a style attribute directly in the $edit-text widget)
* The name of the target tiddler title used by $edit-text is retrieved from 
the temporary tiddler
* The remaining $edit-text parameters control how the edit field 
looks/behaves

Note: unlike the usual tiddler editor "draft mode", the $edit-text field 
used here is *LIVE*... that is, changes to the content are applied 
immediately to the underlying tiddler... there is no "ok/cancel" or "undo" 
functionality.

Let me know how it goes...

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

 

-- 
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/074773da-be7b-4952-83a0-7660c3f60c3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to