Thanks, Mario! These are the kinds of tutorials / explanations I'm trying 
to build for {{DesignWrite}}. So, at the risk of belaboring the point -- 
and with apologies to those for whom this it too fine-grained. I've 
numbered your three code snippets below (1) (2) (3),  added (4). and 

 I see that in edit mode, (1) and (2) and (4) produce no output, given 
that  {{!!title}} and <<currentTiddler>> have both taken the value of *Draft 
of 'test'*, while in view mode (1) (2)  (3) and (4) produce identical 
output.

This yields three questions for me:

<A> What are the differences between  using a specified transcluded field 
in a filter, as in (1), and using a macro <<currentTiddler>> in a filter as 
in (2)? In what circumstances is (1) preferred over (2) and vice-versa?

<B> What is the value of using <$set> as in(4)?

<C> What is the use case for hard-coding rather than transcluding a filter 
list, as in (3)?

Thanks!

//steve.


On Tuesday, October 18, 2016 at 4:29:14 AM UTC-4, PMario wrote:
>
> Hi Steve,
>
> The point here is, that the following code produces different output, 
> depending on edit or view mode. eg: 
>
>  - create 2 tiddlers named "a" and "b" 
>  - tag them "test"
>  - create a tiddler named: test
>  - save it
>  - open it and copy the following code into it
>  - open Preview Mode
>  - save the tiddler again
>
> you should see a difference. Code for tiddler "test":
>
>
> ```
> (1) <$list filter="[tag{!!title}]"><<currentTiddler>>, </$list> 
> ```
> <$list filter="[tag{!!title}]"><<currentTiddler>>, </$list> 
>
> ```
> (2) <$list filter="[tag<currentTiddler>]"><<currentTiddler>>, </$list>
> ```
> <$list filter="[tag<currentTiddler>]"><<currentTiddler>>, </$list>
>
> ```
> (3) <$list filter="[tag[test]]"><<currentTiddler>>, </$list>
> ```
>  <$list filter="[tag[test]]"><<currentTiddler>>, </$list>
>

```
(4) 
<$list filter="[tag{!!title}]">
<$set name="testVar" value=<<currentTiddler>>>
<<testVar>>,
</$set></$list>
```
<$list filter="[tag{!!title}]">
<$set name="testVar" value=<<currentTiddler>>>
<<testVar>>,
</$set></$list>


have fun!
mario

>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/f53ec777-c4e6-4726-963d-05a358e4d302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to