[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-06 Thread PMario
On Tuesday, December 6, 2016 at 1:27:29 PM UTC+1, Siniy-Kit wrote:
>
> Thank you Mario! It's a magic! with your "variable=test" it works as I 
> want!
>

Cool! Glad that it worked out :)
-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 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/4a83aed0-65a2-4092-b52c-d61e861fe255%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-06 Thread Siniy-Kit
Thank you Mario! It's a magic! with your "variable=test" it works as I want!

вторник, 6 декабря 2016 г., 13:44:33 UTC+3 пользователь PMario написал:
>
> On Tuesday, December 6, 2016 at 11:08:10 AM UTC+1, Siniy-Kit wrote:
>>
>> So at the end of this code i try to write
>>
>>  <$list 
>> filter="[is[current]tagging[]type[image/jpeg]sort[title]nth[2]]"><$list 
>> filter="[is[current]tagging[]type[image/jpeg]sort[title]]"> > for={{!!title}} class="arrows_th" >  >  alt={{!!alt}}/>
>>
>> but this filter shows nothing. i think my problem with 
>> is[current]tagging[]..
>>
>
> yes. I do think so too. The first <$list widget changes the 
> currentTiddler, which the second <$list is[current] tries to use again. .. 
> just a guess. no testing done. 
>
> You may use the list-widget: variable   attribute 
> . in the first list. 
> eg: <$list 
> filter="[is[current]tagging[]type[image/jpeg]sort[title]nth[2]]" 
> variable=test>
>
> As I wrote. Just a guess. ... But that's the way I'd start to search.
> -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/ebaef4d2-ec5f-4bf7-8a0d-5ce0ce05d030%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-06 Thread PMario
On Tuesday, December 6, 2016 at 11:08:10 AM UTC+1, Siniy-Kit wrote:
>
> So at the end of this code i try to write
>
>  <$list 
> filter="[is[current]tagging[]type[image/jpeg]sort[title]nth[2]]"><$list 
> filter="[is[current]tagging[]type[image/jpeg]sort[title]]">  for={{!!title}} class="arrows_th" >alt={{!!alt}}/>
>
> but this filter shows nothing. i think my problem with 
> is[current]tagging[]..
>

yes. I do think so too. The first <$list widget changes the currentTiddler, 
which the second <$list is[current] tries to use again. .. just a guess. no 
testing done. 

You may use the list-widget: variable   attribute 
. in the first list. 
eg: <$list filter="[is[current]tagging[]type[image/jpeg]sort[title]nth[2]]" 
variable=test>

As I wrote. Just a guess. ... But that's the way I'd start to search.
-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/c1e93b3f-e2cd-4265-9ce3-918facfea676%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-06 Thread Siniy-Kit
unfortunately it didn't solve my problem

I try to modify my pure css3dslider for external images
here is result of this 
slider https://design4shop.ru/heeg.html#boston_ego_lab
and here is the code of this 
slider https://design4shop.ru/heeg.html#3dslider

this slider shows little previews under photos, and if i have only ONE 
photo, this one under photo is not necessary.

So at the end of this code i try to write

 <$list 
filter="[is[current]tagging[]type[image/jpeg]sort[title]nth[2]]"><$list 
filter="[is[current]tagging[]type[image/jpeg]sort[title]]">   

but this filter shows nothing. i think my problem with 
is[current]tagging[]..






  <$list 
filter="[is[current]tagging[]type[image/jpeg]sort[title]nth[2]]"><$list 
filter="[is[current]tagging[]type[image/jpeg]sort[title]]">



понедельник, 5 декабря 2016 г., 22:23:05 UTC+3 пользователь PMario написал:
>
> On Monday, December 5, 2016 at 7:42:27 PM UTC+1, sini-Kit wrote:
>>
>> <$list filter="[tag[TableOfContents]sort[title]nth[2]]">
>> <$list filter="[tag[TableOfContents]]"/>
>><- ... is there a typo
>>
>
> imo should be  ... 
>
>
> for me this:
>
> \define empty()
> empty
> \end
>
> <$list filter="[tag[a]sort[title]nth[2]]" emptyMessage=<> >
>   <$list filter="[tag[a]]"/>
> 
>
> seems to work. I did use a macro for the empty message, because it has 
> more possibilities. 
>
> 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/5aa78996-5ba0-4c03-bb6a-da8efa02574c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-05 Thread PMario
On Monday, December 5, 2016 at 7:42:27 PM UTC+1, sini-Kit wrote:
>
> <$list filter="[tag[TableOfContents]sort[title]nth[2]]">
> <$list filter="[tag[TableOfContents]]"/>
><- ... is there a typo
>

imo should be  ... 


form me this:

\define empty()
empty
\end

<$list filter="[tag[a]sort[title]nth[2]]" emptyMessage=<> >
  <$list filter="[tag[a]]"/>


seems to work. I did use a macro for the empty message, because it has more 
possibilities. 

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/7f5ff038-80de-4a04-a3c3-5331c0aa9e70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-05 Thread sini-Kit
- I have 3 tiddlers with tag ListWidget A, B, C my filter must show A, B, C
-  I have 2 tiddlers with tag ListWidget A, B my filter must show A, B
-  I have 1 tiddler with tag ListWidget A my filter must show "empty"
-  I have 0 tiddler with tag ListWidget  my filter must show "empty"

I try somethink like 

<$list filter="[tag[TableOfContents]sort[title]nth[2]]">
<$list filter="[tag[TableOfContents]]"/>


but it don't work. 

понедельник, 5 декабря 2016 г., 20:52:27 UTC+3 пользователь PMario написал:

> Hi,
>
> Have a look at the list widget [1] "empty" parameter. ... But it only 
> works for filters, that return no result. Hence the name "emptyMessage"
>
> I'm confused a bit. 1 item is not empty. At least not for me? ... Your use 
> case also raises some questions for me, which you didn't describe in the 
> OP. 
>
> eg: 
>
>  - filter returns A -> should be empty
>  - filter returns B -> should be empty
>  - filter returns B and A -> should be shown. ... but how. Show A or B or 
> Both? ... Is the order important?
>
> -m
>
> [1] http://tiddlywiki.com/#ListWidget
>

-- 
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/17d3533f-779a-43ea-842f-72679f83b460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] <$list filter How to show empty list, if filter show less than two items?

2016-12-05 Thread PMario
Hi,

Have a look at the list widget [1] "empty" parameter. ... But it only works 
for filters, that return no result. Hence the name "emptyMessage"

I'm confused a bit. 1 item is not empty. At least not for me? ... Your use 
case also raises some questions for me, which you didn't describe in the 
OP. 

eg: 

 - filter returns A -> should be empty
 - filter returns B -> should be empty
 - filter returns B and A -> should be shown. ... but how. Show A or B or 
Both? ... Is the order important?

-m

[1] http://tiddlywiki.com/#ListWidget

-- 
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/f4cd9786-fc18-4453-a7c1-05ec58e1314d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.