>> Can you give an example of #3. I've never had luck calling a widget from 
inside a widget and I would like to know how it's done

Oh right. I do all my editing from dashboards because all my tiddlers are 
structured. The concept is as follows:

Analysis
============

# Decide on a structure for your tiddlers
#* Example "Book" would have the following fields
#** Title
#** Authors
#** Publisher
#** My random ramblings
#** My Review
#** Plot synopsis
#** ISBN Number

Discussion
=============

* My random ramblings is a good candidate for the text field
* My Review, and Plot synopsis are good candidates for slices
* The title of the book should be put in the caption field because two 
books can have the same title
* ISBN is unique for books so put that in the title filed (The name of the 
tiddler - must be unique)
* Authors can be multiple so this would be a list of authors populated from 
tiddlers tagged "author"
** This requires a macro to populate it. 
** You can use crazyListHere from cpashow.tiddlyspot.com 
** As you might suspect from the name, my macro currently does all sorts of 
stuff in addition to populating a list
* Publisher is a text name populated using a select from tiddlers tagged 
"publisher"

Code a template
=========================

Create a tiddler to act as the "template" for books

title: "book"    -- named the same as the tag used to define books
text:"""
ISBN: {{!!title}} 
Edit ISBN: <$edit field="title" />
<br/>
Authors: <<crazyListHere "authors" "author">> 
<br/>
Publisher: <$select field="publisher"><option value=""> -- </option><$list 
filter="[tag[publisher]]"><option value=<<currentTiddler>> > 
<<currentTiddler>> </option></$list></$select>
<br/>
My random ramblings: <$edit field="text" />
<br/>
My Review: <$edit-text tag="textarea" field="review" />
<br/>
Plot synopsis: <$edit-text tag="textarea"  field="synopsis" />
"""

Code a dashboard
================================
title: "Book Dashboard"
text: """
Add a book: <$edit-text tag="input"  tiddler="$:/temp/newbook" />
<$button>
    Add book
    <$action-setfield $field="currentbook" $value={{$:/temp/newbook}} />
    <$action-setfield $tiddler={{$:/temp/newbook}} $field="tags" 
$value="book" />
    <$action-setfield $tiddler="$:/temp/newbook" $field="text" $value="" />
</$button>
Select a book to edit:
   <$select field="currentbook">
       <option value=""> -- </option>
       <$list filter="[tag[book]]" variable="Current_Book" emptyMessage="""
             <option value=""> There are no books available </option>
       """>
             <option value=<<Current_Book>> >
                     <<Current_Book>>
             </option>
       </$list>
  </$select>
<$tiddler tiddler={{!!currentbook}} >
    <$transclude tiddler="book" />
</$tiddler>
"""

-- 
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/ff94a189-c08d-48c2-ba2a-057302348f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to