Hi Skye

> it obviously creates a table, with three lines and two columns. Could
> I have this format embedded in viewtemplate rather than as a form
> tiddler.
Yes you can.
Use your form in any tiddler with: <span macro='tiddler
MyFormTiddler'></span> directly embedded in the ViewTemplate or in a
custom TagNameViewTemplate via Erics TaggedtemplateTweak.
I made a form for my NoteStormProject to implement a treemanager in
tiddlers tagged with "Trees". The form is a little intricate and uses
both fEts, tabs, tables, transclusions etc... I wouldn't dream of
trying to convert it to a normal "html'ish" ViewTemplate syntax -
instead I use the tiddler macro <<tiddler with: {{tiddler.title}}>>
which puts tiddler.title in the templates variable: $1.
I use it like this <span macro='tiddler TreeManager with:
{{tiddler.title}}'></span>
Check out the TreeViewTemplate here: 
http://notestormproject2.tiddlyspot.com/#TreesViewTemplate
The TreeManager here: http://notestormproject2.tiddlyspot.com/#TreeManager.

> it largely boils down to - is it possible to write a viewtemplate
> like? -
>
> <div id='tiddlerDisplay'>
> <span width='50%' refresh='content' tiddler='Tiddler##LeftSide'></
> span> | <span width='50%' refresh='content'
> tiddler='Tiddler##RightSide'></span>
> </div>
> efectively creating a two colums display !!!!

Try :
<div
<table class='borderless' style='width:100%'><center<tr>
<td style='width:15%'>
<div class='small borderless'><span class='small'>Text field:</span></
div>
class='viewer' macro='view text1 wikified'></div></center></td><td
style='width:15%'>
<div class='small borderless'><span class='small'>Secondary
textfield:</span></div>
<div class='viewer' macro='view text2 wikified'></div></td></table>

You can test it in a normal tiddler within <html></html>

and use it in EditTemplate like this:
<div
<table class='borderless' style='width:100%'><center<tr>
<td style='width:15%'>
<div class='small borderless'><span class='small'>Text field:</span></
div>
<div class='editor' macro='edit text1 12'></div></center></td><td
style='width:15%'>
<div class='small borderless'><span class='small'>Secondary
textfield:</span></div>
<div class='editor' macro='edit text2 12'></div></td></table>

There are of course the same problems with alignment of text as is the
case with columns made in a normal table..

Regards Måns Mårtensson

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.


Reply via email to