On Mar 28, 2:15 pm, PMario <[email protected]> wrote:
> On Mar 28, 9:24 am, rakugo <[email protected]> wrote:> So essentially you 
> want to make use of transclusion in templates to
> > access tiddler attributes/fields?
>
> No. I want to create a multi column view, using <<list filter
> [tag[myTag]] [sort[sortField]] template:xx>>. Since I have a
> widescreen, it is more readable that way.

>
> *Since an old TW will ignore the named parameter, it just creates a
> clickable list -> fall back.
> *If the right macros are installed it creates a beautiful multicolum
> view.
>
I'm not sure I understand what you mean by multi column view in this
context....

>
> > If we were to follow the jquery templates suggestion ${text} would
> > print the value of the text field on the current tiddler.
>
> I think ${tiddler.text}. But as jQuery templating allows functions it
> may be a TiddlySpace security issue. I didn't digg into this, but may
> be.
>
> > However don't we have this with the view macro? For instance <<view
> > title text>> can be used to print tiddler anywhere. The only problem
> > is when one wants to pass a parameter down to another tiddler. For
> > instance you might want to do something equivalent to <<tiddler <<view
> > image title>> >>.
>
> Didn't think about multi level templates. But IMO it should work.
> <<tsScan ...>> does. [1]
That's only because the tsScan macro instead invents a syntax where $1
is the space name.
This is not very extensible. What if you wanted to run
<<tsScan $1 tag:@news template:"SearchTemplate">>
where $1 was something other than the space?

For instance we might imagine many different syntaxs, for example.
<<tsScan $title$ tag:@news template:"SearchTemplate">>
or
<<tsScan %title% tag:@news template:"SearchTemplate">>
<<tsScan {title} tag:@news template:"SearchTemplate">>
where the value in brackets is treated as a tiddler field/attribute/
slice.

>
> > I'm a bit confused by your example however.
> > If I understand correctly:
> > <<tiddler /%tiddler.title%/ 'dp50'>> wikifies the wikitext of the....
<snip>
> > but the same could be achieved in a template via
> > {{dp50{
> > <<view text wikified>>}}}
>
> no!
> <<tiddler asdf 'dp50'>> produces
> <span class="dp50" refresh="content" tiddler="asdf">..</span>
>
> which does some nice refreshing if tiddler asdf is changed.

__But__ it still produces the same content. The auto refreshing is a
side effect of the tiddler macro. The view macro could in theory be
extended to support refreshing too... although I'm aware of some side
effects.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to