Mohammad,
Thanks for that
<div class="timeline01">
<$list filter="[search:title[Tid0]]" template="my-list-template"/>
</div>
and inside the template wrapping it with the item class has no ill effect
when not using timeline01, so basically I am only making use of your
stylesheet.
I did create the following macro
\define preview-tiddlers(filter class)
<div class="$class$">
<$list filter="$filter$" template="Preview"/>
</div>
\end
<<preview-tiddlers "[tag[TableOfContents]]" "timeline01">>
It looks great, I learned alot today.
Regards
Tony
On Sunday, July 28, 2019 at 4:57:50 PM UTC+10, Mohammad wrote:
>
> Tony,
>
> It is possible. Remember how toc-menu is used
>
> <div class="tc-table-of-contents">
> <<toc-expandable "Contents">>
> </div>
>
>
>
> Then you have to use something like this
> <div class="timeline01">
> <$list filter="[tag[xx]]" template="my-list-template"/>
> </div>
>
> Where your my-list-template is as below
>
> <div class="item">
> <h3>__<$link to={{!!title}}>
> <$view field="title"/>
> </$link>__</h3>
> {{||$:/core/ui/ViewTemplate/subtitle}}
> <pre><$view field=text /></pre>
> </div>
>
>
>
>
> other cases
>
> <div class="timeline01">
> <$list filter="[search:title[Tid0]]" template="my-list-template"/>
> </div>
>
> --Mohammad
>
>
> On Sunday, July 28, 2019 at 8:43:33 AM UTC+4:30, TonyM wrote:
>>
>> Mohammad,
>>
>> Thanks for that. It appears not so easy to use for my special case as I
>> want. Rather than call it with a tag, and have it iterate
>> with [tag[$myTag$]]
>>
>> I wanted to use the list widget like this;
>> <$list filter="any filter" template=list-template></$list>
>>
>> Such that for each tiddler it applies your "style" in the list-template
>>
>> Here is a different example of this method
>>
>> Eg my-list-template
>>
>> <div class="tc-menu-list-item">
>> <h3>__<$link to={{!!title}}>
>> <$view field="title"/>
>> </$link>__</h3>
>> {{||$:/core/ui/ViewTemplate/subtitle}}
>> <pre><$view field=text /></pre>
>> </div>
>>
>>
>> Then in any tiddler
>>
>> <$list filter="[tag[xx]]" template=my-list-template></$list>
>>
>> Lists all the tiddlers using the above template, which displays a link to
>> the tiddler and displays the text within it.
>>
>>
>> *I was hoping to retrofit your design into the list-template but I do not
>> know enough.*
>>
>>
>> If we could it would allow your nice formating to be applied to any desired
>> list one chooses aqnd defines how to handle each item in the list-template
>>
>>
>> Regards
>>
>> Tony
>>
>>
>> On Sunday, July 28, 2019 at 1:17:24 PM UTC+10, Mohammad wrote:
>>>
>>> Hi Tony!
>>> See attached the code including macro/stylesheet and demo for
>>> timeline01.
>>>
>>> Simply drag and drop on https://tiddlywiki.com to see how it works!
>>>
>>> --Mohammad
>>>
>>>
>>> On Sunday, July 28, 2019 at 4:44:33 AM UTC+4:30, TonyM wrote:
>>>>
>>>> Mohammad,
>>>>
>>>> Could you share your wiki text and css for this with me, even if not
>>>> yet for publication so I can demonstrate my idea?
>>>>
>>>> Regards
>>>> Tony
>>>>
>>>> On Sunday, 28 July 2019 05:47:27 UTC+10, Mohammad wrote:
>>>>>
>>>>> Hi Tony!
>>>>> That's a good idea! So, if I understand correctly you suggest to have
>>>>> a template to format the output of list!
>>>>> and then one template could be a timeline!
>>>>>
>>>>> --Mohammad
>>>>>
>>>>> On Sunday, July 28, 2019 at 12:07:40 AM UTC+4:30, TonyM wrote:
>>>>>>
>>>>>> Mohammad,
>>>>>>
>>>>>> I think if you generalise it more as a way to list things with custom
>>>>>> css it would be of greater value than simply as a timeline.
>>>>>>
>>>>>> Perhaps others will be inspired to provide similar designer lists, or
>>>>>> list interesting content.
>>>>>>
>>>>>> I am not sure I would use the example for other than myself, with
>>>>>> only odd or even numbering.
>>>>>>
>>>>>> Love your contributions
>>>>>> Tony
>>>>>>
>>>>>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/89f13d0d-f7e9-475c-8776-5f5cb31a7ed5%40googlegroups.com.