[TW5] <$list filter= looks like text. where is my mistake?

95 views
Skip to first unread message

sini-Kit

unread,
May 5, 2015, 3:15:38 AM5/5/15
to tiddl...@googlegroups.com
Hi! I try to finish my small macros, but it don't want to work. here is my experiments http://novye-podarki.ru/heeg203_vk4.html
now  my <$list filter="[is[current]tagging[]tag[$:/Note]sort[stoimost]] -[nazvanie[Букет]] "/>  is shown as text, but I want to see the list of tiddlers.
I put some part of filter parameters (-[nazvanie[Букет]]) with list of macros       
<$list filter="[[$:/_allvendors]fields[]sort[]]" variable="fieldName"><$macrocall $name="inner" fieldName=<<fieldName>>/></$list>                      

and this construction don't want to work.

here is the whole code of my macros
\define inner(fieldName)
<$set name="v" value={{$:/_allvendors!!$fieldName$}}>
<$list filter="[<v>regexp[^yes$]]" variable="x">
 -[nazvanie[$fieldName$]]
</
$list>
</$set>
\end

<$list filter="[is[current]tagging[]tag[$:/Note]each[nazvanie]get[nazvanie]]" variable="nazvanie">
<$checkbox tiddler="$:/
_allvendors" field= <<nazvanie>>   checked="no" unchecked="yes"  default="no" > ''<<nazvanie>>''  </$checkbox><br>
</$list>

<$list filter="
[is[current]tagging[]tag[$:/Note]sort[stoimost]]
<$list filter="[[$:/_allvendors]fields[]sort[]]" variable="fieldName"><$macrocall $name="inner" fieldName=<<fieldName>>/
></$list>
 
"> <span class="textboxwhite">
   {{||$:/_tile}}     </span> </$list>

Jeremy Ruston

unread,
May 7, 2015, 2:35:21 PM5/7/15
to TiddlyWiki
Hi sini-Kit

You've got an unterminated widget here:


here is the whole code of my macros
</$list>

<$list filter="
[is[current]tagging[]tag[$:/Note]sort[stoimost]] <<<<<<<<-----

<$list filter="[[$:/_allvendors]fields[]sort[]]" variable="fieldName"><$macrocall $name="inner" fieldName=<<fieldName>>/
></$list>

 
"> <span class="textboxwhite">
   {{||$:/_tile}}     </span> </$list>


Best wishes

Jeremy.

 

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/17f533f3-060c-40f7-a436-3dae6a5b7b33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

sini-Kit

unread,
May 10, 2015, 4:14:50 AM5/10/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi, Jeremy! Is there any way to put $list filter into $list filter ? I try many variants with $set, define and so on. and I always get the same result. I saw my list as  text code.  I think it must be a standard way to put to temp tiddler rendered result (ore something else), but I can't find it.

четверг, 7 мая 2015 г., 21:35:21 UTC+3 пользователь Jeremy Ruston написал:

Jeremy Ruston

unread,
May 11, 2015, 8:47:35 AM5/11/15
to sini-Kit, TiddlyWiki
Hi Sini-Kit


Hi, Jeremy! Is there any way to put $list filter into $list filter ? I try many variants with $set, define and so on. and I always get the same result. I saw my list as text.  I think it must be a standard way to put to temp tiddler rendered result (ore something else), but I can't find it.

I'm not sure that I understand exactly what you're asking. When nesting list widgets, one uses the "variable" attribute to save the outer list index:

<$list filter="[tags[]sort[title]]" variable="theTag">

The tag is: <$text text=<<theTag>>/>

<$list filter="">

Tag: <$text text="currentTiddler"/>

</$list>
</$list>
 
But I suspect that's not quite what you mean.

You can assign the result of a filter to a variable using the "set" widget:

<$set name="myVariable" filter="[tag[Introduction]]">

But it isn't currently possible to use the entries in the list within a filter.

Best wishes

Jeremy




четверг, 7 мая 2015 г., 21:35:21 UTC+3 пользователь Jeremy Ruston написал:
Hi sini-Kit

You've got an unterminated widget here:


here is the whole code of my macros
</$list>

<$list filter="
[is[current]tagging[]tag[$:/Note]sort[stoimost]] <<<<<<<<-----
<$list filter="[[$:/_allvendors]fields[]sort[]]" variable="fieldName"><$macrocall $name="inner" fieldName=<<fieldName>>/
></$list>
 
"> <span class="textboxwhite">
   {{||$:/_tile}}     </span> </$list>


Best wishes

Jeremy.

 

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/17f533f3-060c-40f7-a436-3dae6a5b7b33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages