Hello Mohammad,
Thank you very much for the solution. It's exactly what I was after.
You make everything appear so easy - I wish Santa could have brought me 
your coding skills for Christmas.

Best Wishes,

Scot


On Tuesday, 29 December 2020 at 16:21:24 UTC Mohammad wrote:

> Hi Scot,
>  The way you called macro is not correct.  If you want to create a number 
> of cards  from your tiddlers say tag with mylist do as below
>
> <$list filter="[tag[mylist]]"><$macrocall $name="card" header="My Test 
> Header" 
> title={{!!title}}
> text={{!!text}}
> footer={{!!footer}}
> />
> </$list>
>
> I have attached an example. Down the attached JSON and drag and drop into 
> https://kookma.github.io/TW-Shiraz/
> Open TEST.
>
> Do not forget your title should have the required information/fields.
>
>
> Best wishes
> Mohammad
>
>
> On Tue, Dec 29, 2020 at 6:24 PM scot <[email protected]> wrote:
>
>> On a similar note, I would like to use the card macro with a list of 
>> tagged items.
>> e.g. <$list filter="[tag[mylist]sort[title]]">
>>
>> This example does not work. Can you offer any help please.
>>
>> <<card 
>> <$list filter="[tag[mylist]sort[title]]"
>>
>> header:"Header"
>> title:<<title>>
>> subtitle:"subtitle"
>> text:"content"
>> footer:"footer"
>> width:"18rem"
>> class:"text-dark"
>>
>> />
>> >>
>>
>> Scot
>>
>> On Thursday, 4 June 2020 at 00:55:38 UTC+1 TW Tones wrote:
>>
>>> Your Welcome.
>>>
>>> Tony
>>>
>>>
>>> On Thursday, June 4, 2020 at 3:53:02 AM UTC+10, passingby wrote:
>>>>
>>>> Hello Tony,
>>>>
>>>> Thank you for your solution. Really appreciate your effort. 
>>>>
>>>> -passingby
>>>>
>>>> On Wednesday, June 3, 2020 at 1:46:21 AM UTC-7, TonyM wrote:
>>>>>
>>>>> Passingby;
>>>>>
>>>>> This example works for this use case by splitting the input on new 
>>>>> line.
>>>>>
>>>>> <$list filter="[<somelistmacro>splitregexp[\n]]" variable=item>
>>>>> <$macrocall $name="card" text=<<item>>/>
>>>>> </$list>
>>>>>
>>>>> However it seems a little odd that your list contains the * which is 
>>>>> usually reserved until displaying the list.
>>>>>
>>>>> If the list was tiddler titles you would possible use the enlist 
>>>>> operator.
>>>>>
>>>>> Regards
>>>>> Tony
>>>>>
>>>>>
>>>>>
>>>>> On Wednesday, June 3, 2020 at 5:07:35 PM UTC+10, passingby wrote:
>>>>>>
>>>>>> Hello all,
>>>>>>
>>>>>> I am trying out bootstrap cards of Shiraz plugin. I wanted a list to 
>>>>>> be passed as 'text' parameter so I thought I need to pass it via a macro 
>>>>>> call like this:
>>>>>>
>>>>>> \define somelistmacro()
>>>>>> * item 1
>>>>>> * item 2
>>>>>> * item 3
>>>>>> \end
>>>>>>
>>>>>> <$macrocall $name="card" text=<<somelistmacro>>/>
>>>>>>
>>>>>> But the wikitext list is not being rendered. What am I doing wrong?
>>>>>>
>>>>> -- 
>> 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/7ffc0eae-f396-4f58-adf4-7d7058c62fa8n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/7ffc0eae-f396-4f58-adf4-7d7058c62fa8n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/49ca8405-764e-4c44-b5d2-c087b2610777n%40googlegroups.com.

Reply via email to