Dave,

Try writing some Psudocode to describe what you want to do, then look at 
how to replace each element with TiddlyWiki code.

Separate each logical filter into clear statements, establish the list 
nesting pattern. Then we can continue to resolve it.

Regards
Tony



On Wednesday, 13 December 2017 07:35:42 UTC+11, Dave Gifford - 
http://www.giffmex.org/ wrote:
>
> Hi Tony M,
>
> Thank you for your kind and generous efforts. Your solution turns up 
> basically what mine does, a list of ALL the topics, and the relevant 
> bibliographic data under those that topics for which there are sources. But 
> since I want to hide the vast majority of topics, because they do not have 
> sources for them, I am still where I started. 
>
> My outer list filter is what I want help changing, so that it shows only 
> those topic tiddlers which are tagged to from other tiddlers and those 
> tiddlers that tag to them have data in their bibentry field. I seem to 
> recall doing something like this once, but can't find it anywhere.
>
> Blessings, Dave
>
>
>
> On Monday, December 11, 2017 at 7:23:30 PM UTC-5, TonyM wrote:
>>
>> OOps small eror, will edit above
>>
>> On Tuesday, 12 December 2017 11:22:17 UTC+11, TonyM wrote:
>>>
>>> Dave,
>>>
>>> So I would have thought something like this (not tested), *remove 
>>> comments*
>>>
>>> <$list filter="[!is[system]!tag[Sources]sort[title]]"> <!-- All eligible 
>>> Tiddlers
>>>
>>> <!-- Display relevant Topic header -->
>>> <$list filter="[all[current]tagging[]limit[1]]">
>>> <$view field="title"/> <!-- Only display title if there is more than one 
>>> detail
>>> </$list> <!-- end one title if details exist
>>>
>>> <!-- Display relevant Topic details -->
>>> <$list filter="[all[current]tagging[]]">
>>> <span class="indent1"><$transclude field="bibentry" mode="block"/></span>
>>> </$list> <!-- end details list
>>>
>>> </$list> <!-- end All eligible Tiddlers
>>>
>>>
>>> The above contains the coding pattern I suggest, it assumes your two 
>>> filters are correct for your application
>>>
>>> Eligible tiddlers
>>>
>>> "[!is[system]!tag[Sources]sort[title]]
>>>
>>> Details
>>> "[all[current]tagging[]]"
>>>
>>> Regards
>>> Tony
>>>
>>>
>>>
>>> On Tuesday, 12 December 2017 11:09:30 UTC+11, Dave Gifford - 
>>> http://www.giffmex.org/ wrote:
>>>>
>>>> oops no here is the correct list I had
>>>>
>>>> <$list filter="[!is[system]!tag[Sources]sort[title]]"><h2><$view 
>>>> field="title"/></h2><$list filter="[all[current]tagging[]]"><span 
>>>> class="indent1"><$transclude field="bibentry" 
>>>> mode="block"/></span></$list></$list>
>>>>
>>>> On Monday, December 11, 2017 at 6:55:21 PM UTC-5, TonyM wrote:
>>>>>
>>>>> Just a Quick Question that may help,
>>>>>
>>>>> Do you have a filter that says *all this but not that*?, such that 
>>>>> when there is no inner entry nothing is displayed?
>>>>>
>>>>> In a similar case I had three lists, The second and third list are not 
>>>>> themselves nested.
>>>>>
>>>>>
>>>>> The first lists all topics
>>>>> the second ends with limit[1} and displays the header eg Technology 
>>>>> (topic)
>>>>> the third is not limited and displays the details "inner" within the 
>>>>> topic. 
>>>>>
>>>>> *Pseudo code*
>>>>>
>>>>> List all Topics
>>>>>
>>>>> Header List /end list - Includes *all this but not that  and limit[1]*
>>>>> Detail List /end list - *all this but not that no limit*
>>>>>
>>>>> /end topic list
>>>>>
>>>>> Regards
>>>>> Tony
>>>>>
>>>>> On Tuesday, 12 December 2017 09:50:46 UTC+11, Dave Gifford - 
>>>>> http://www.giffmex.org/ wrote:
>>>>>>
>>>>>> Hi all
>>>>>>
>>>>>> I want to build bibliographies using the listwidget.
>>>>>>
>>>>>> The outer list would be a list of topics, tiddlers that are tagged to 
>>>>>> from tiddlers that have content in their bibentry field. 
>>>>>>
>>>>>> The list under each entry of the outer list would be a transclusion 
>>>>>> of the bibentry field of the tiddlers that tag to the topics.
>>>>>>
>>>>>> Example:
>>>>>>
>>>>>> Technology (topic) 
>>>>>>
>>>>>> Transclusion of bibentry field of Tiddler 'Book A' which has a 
>>>>>> Technology tag
>>>>>> Transclusion of bibentry field of Tiddler 'Book B' which has a 
>>>>>> Technology tag
>>>>>>
>>>>>> Warfare (topic)
>>>>>>
>>>>>> Transclusion of bibentry field of Tiddler 'Book C' which has a 
>>>>>> Warfare tag
>>>>>> Transclusion of bibentry field of Tiddler 'Book D' which has a 
>>>>>> Warfare tag
>>>>>>
>>>>>> I can get close to this, but the lists I get always also contain all 
>>>>>> the other outer topics, including the ones for which there are no 
>>>>>> tiddlers 
>>>>>> with bibentry fields that tag to those topics.
>>>>>>
>>>>>> I scoured this group and my old experiments to see if I already had 
>>>>>> something like this, but I can't find anything.
>>>>>>
>>>>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/00933d36-7128-4b46-9f2e-13651c185b75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to