[tw5] Re: Use several filters in a ViewTemplate tiddler to display tiddler raw content conditionally

2020-01-23 Thread Mohammad
Added to TW-Scripts

On Thursday, January 23, 2020 at 5:01:05 PM UTC+3:30, Eskha wrote:
>
> Hi Mohammad,
>
> What I use for a similar purpose is the following:
>
> *title*: whateveryouwant
> *tag*: $:/tags/ViewTemplate
> *text*: 
>
> <$list filter="[all[current]tag[show-content]]
> [all[current]is[system]search:title[template]]
> [all[current]tag[$:/tags/EditTemplate]]
> [all[current]tag[$:/tags/ViewTemplate]]
> [all[current]tag[$:/tags/Macro]]
> +[limit[1]]"><$codeblock code={{!!text}} language="xml" />
>
> Best regards,
>
> Eskha
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1bee7abb-72fa-476a-9a16-696d28848583%40googlegroups.com.


[tw5] Re: Use several filters in a ViewTemplate tiddler to display tiddler raw content conditionally

2020-01-23 Thread Mohammad
Hi Eshka,
 Very smart solution!

Thank you! I will use it in my Utility plugin.

--Mohammad

On Thursday, January 23, 2020 at 5:01:05 PM UTC+3:30, Eskha wrote:
>
> Hi Mohammad,
>
> What I use for a similar purpose is the following:
>
> *title*: whateveryouwant
> *tag*: $:/tags/ViewTemplate
> *text*: 
>
> <$list filter="[all[current]tag[show-content]]
> [all[current]is[system]search:title[template]]
> [all[current]tag[$:/tags/EditTemplate]]
> [all[current]tag[$:/tags/ViewTemplate]]
> [all[current]tag[$:/tags/Macro]]
> +[limit[1]]"><$codeblock code={{!!text}} language="xml" />
>
> Best regards,
>
> Eskha
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a4563939-c6ee-48d9-9096-1c8ac84bc931%40googlegroups.com.


[tw5] Re: Use several filters in a ViewTemplate tiddler to display tiddler raw content conditionally

2020-01-23 Thread Eskha
Hi Mohammad,

What I use for a similar purpose is the following:

*title*: whateveryouwant
*tag*: $:/tags/ViewTemplate
*text*: 

<$list filter="[all[current]tag[show-content]]
[all[current]is[system]search:title[template]]
[all[current]tag[$:/tags/EditTemplate]]
[all[current]tag[$:/tags/ViewTemplate]]
[all[current]tag[$:/tags/Macro]]
+[limit[1]]"><$codeblock code={{!!text}} language="xml" />

Best regards,

Eskha


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c93a4d4-085c-4d95-be5e-ed7a69ba0f50%40googlegroups.com.


[tw5] Re: Use several filters in a ViewTemplate tiddler to display tiddler raw content conditionally

2020-01-23 Thread Mohammad
Thanks Mario,
 It was a mistake on provided filters and now it works!

--Mohammad

On Thursday, January 23, 2020 at 3:47:52 PM UTC+3:30, PMario wrote:
>
> Hi,
>
> Just tested it and it works for me.  Are you sure, you tagged your 
> template with $:/tags/ViewTemplate ?? ... NO spaces in the tag?
>
> -m
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1ffe2766-001b-4a4e-ada2-ccb78e5a9a14%40googlegroups.com.


[tw5] Re: Use several filters in a ViewTemplate tiddler to display tiddler raw content conditionally

2020-01-23 Thread PMario
Hi,

Just tested it and it works for me.  Are you sure, you tagged your 
template with $:/tags/ViewTemplate ?? ... NO spaces in the tag?

-m

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bfb71971-4b0d-4d1b-bea3-b3b4cd9992e2%40googlegroups.com.