Hi Mark,

Yes, I posted that question there as well. Mat asked me to start a new 
thread. I suppose this is proper thread? 

I tried Mat's latest solution as well but, it doesn't work. 

*    tiddler_variable_in_the_loop was from your example. I assumed it 
contained the name of a tiddler. If not, then the example needs*
*    to be re-explained.*

What I meant is when I use details macro as below, it works as expected 
but, when I call it from within list widget, it fails to get the tiddler 
name, it just gets it as string and doesn't transclude its content. 

<<details sum:"[[my_tiddler]]" src:"{{my_tiddler}}">>   //it works fine for 
any tiddler  but, doesn't work inside list widget if I use {{!!title}} in 
place of my_tiddler; also {{!!text}} doesn't work if I use it for src:"" 
argument. 

Best,
-Rahul




-Rahul

On Saturday, May 23, 2020 at 11:26:24 AM UTC-4, Mark S. wrote:
>
> Mat's post here is probably want you want:
>
> https://groups.google.com/d/msg/tiddlywiki/egnHPo0LXkg/k6vKzyGeBQAJ
>
> On Saturday, May 23, 2020 at 7:12:02 AM UTC-7, Rahul Kashyap wrote:
>>
>> Hi Mark,
>>
>> thanks for reply. I am not sure what would be the 
>> tiddler_variable_in_the_loop 
>>
>> I tried with {{!!title}} which gives the title name but, without its 
>> content. Are there other way to get the tiddler_variable.
>>
>> Best,
>> -Rahul
>>
>> On Saturday, May 23, 2020 at 9:41:41 AM UTC-4, Mark S. wrote:
>>>
>>> The wikitext form of invoking the macro is limited. But you can use the 
>>> macrocall widget instead:
>>>
>>> <$macrocall $name=details
>>> sum=<<tiddler_variable_in_the_loop>> src={{{ 
>>> [<tiddler_variable_in_the_loop>get[text]]}}} />
>>>
>>> This is probably still not exactly what you want (the src will lose its 
>>> original formatting). The next step would be to move the macrocall inside 
>>> its own macro where substitution variables can be used.
>>>
>>> On Friday, May 22, 2020 at 10:36:28 PM UTC-7, Rahul Kashyap wrote:
>>>>
>>>> Hello everyone,
>>>>
>>>> My problem is related. I couldn't understand your instruction 
>>>> completely.  Could you please elaborate more? I'll describe my problem in 
>>>> more details below. 
>>>> Any help would be appreciated.
>>>>
>>>> I want to use a macro for all the tiddlers satisfying a certain filter 
>>>> esp. (demo/details/details-macro (
>>>> https://kookma.github.io/TW-Shiraz/#Install) macro of Shiraz. 
>>>>
>>>> I know that {{!!title}} or <$view field='title'/>  prints the title of 
>>>> the tiddlers  and I can use <$transclude mode="block"/> to transclude 
>>>> the content as well but, I couldn't transclude them inside the macro. 
>>>> I also tried a template unsuccessfully. 
>>>>
>>>> <$list filter="[tag[my_tag]]">
>>>>
>>>>
>>>> <<details sum:"[[tiddler_variable_in_the_loop]]" src:
>>>> "{{tiddler_variable_in_the_loop}}">>   // desired output with visible 
>>>> link and hidden translusion
>>>>
>>>>
>>>> <<details sum:"{{!!title}}" src:<$transclude mode="block"/> >>   // 
>>>> displays the title of the tiddler without link; do not transclude.
>>>> <<currentTiddler>>{{||$:/rkashyap/template/detail}}   // similar to 
>>>> above
>>>>
>>>>
>>>> <$transclude mode="block"/>   // transludes the whole content without 
>>>> hiding it
>>>> </$list>
>>>>
>>>>
>>>> The code below achieves the task if the title of the tiddlers are not 
>>>> CamelCase in which case it opens the tiddler which I don't want. 
>>>> <$appear show= {{!!title}} >
>>>> <$transclude mode="block"/>
>>>> </$appear>
>>>>
>>>>
>>>> Thanks,
>>>> -Rahul
>>>>
>>>> On Thursday, May 21, 2020 at 10:26:34 AM UTC-4, Mark S. wrote:
>>>>>
>>>>> You might be able to do it with the wikify. This works with the "now" 
>>>>> macro:
>>>>>
>>>>> <$wikify text="""<<now "YYYY-0MM-0DD">>""" name="datetid">
>>>>> <$transclude tiddler=<<datetid>>/>
>>>>> </$wikify>
>>>>>
>>>>> But since you've already made a JS macro, maybe you could just make a 
>>>>> version of it that returns the contents of the targeted tiddler.
>>>>>
>>>>> On Thursday, May 21, 2020 at 1:37:06 AM UTC-7, Tony K wrote:
>>>>>>
>>>>>> relevant portion of the code below
>>>>>>
>>>>>>
>>>>>> \define dn-ts(timestamp)
>>>>>> """<$macrocall $name="jstiddler" timestamp=$timestamp$ format="YYYY-
>>>>>> 0MM-0DD" />"""
>>>>>> \end
>>>>>>
>>>>>>
>>>>>> <<dn-ts 20200521065246330>>
>>>>>>
>>>>>>
>>>>>> this works and displays the time stamp is the required format i.e 
>>>>>> 2020-05-21
>>>>>>
>>>>>>
>>>>>> however what I need is to transclude the tiddler with title 
>>>>>> 2020-05-21 and that i can't achieve 
>>>>>>
>>>>>> thank you 
>>>>>>
>>>>>
On Saturday, May 23, 2020 at 11:26:24 AM UTC-4, Mark S. wrote:
>
> Mat's post here is probably want you want:
>
> https://groups.google.com/d/msg/tiddlywiki/egnHPo0LXkg/k6vKzyGeBQAJ
>
> On Saturday, May 23, 2020 at 7:12:02 AM UTC-7, Rahul Kashyap wrote:
>>
>> Hi Mark,
>>
>> thanks for reply. I am not sure what would be the 
>> tiddler_variable_in_the_loop 
>>
>> I tried with {{!!title}} which gives the title name but, without its 
>> content. Are there other way to get the tiddler_variable.
>>
>> Best,
>> -Rahul
>>
>> On Saturday, May 23, 2020 at 9:41:41 AM UTC-4, Mark S. wrote:
>>>
>>> The wikitext form of invoking the macro is limited. But you can use the 
>>> macrocall widget instead:
>>>
>>> <$macrocall $name=details
>>> sum=<<tiddler_variable_in_the_loop>> src={{{ 
>>> [<tiddler_variable_in_the_loop>get[text]]}}} />
>>>
>>> This is probably still not exactly what you want (the src will lose its 
>>> original formatting). The next step would be to move the macrocall inside 
>>> its own macro where substitution variables can be used.
>>>
>>> On Friday, May 22, 2020 at 10:36:28 PM UTC-7, Rahul Kashyap wrote:
>>>>
>>>> Hello everyone,
>>>>
>>>> My problem is related. I couldn't understand your instruction 
>>>> completely.  Could you please elaborate more? I'll describe my problem in 
>>>> more details below. 
>>>> Any help would be appreciated.
>>>>
>>>> I want to use a macro for all the tiddlers satisfying a certain filter 
>>>> esp. (demo/details/details-macro (
>>>> https://kookma.github.io/TW-Shiraz/#Install) macro of Shiraz. 
>>>>
>>>> I know that {{!!title}} or <$view field='title'/>  prints the title of 
>>>> the tiddlers  and I can use <$transclude mode="block"/> to transclude 
>>>> the content as well but, I couldn't transclude them inside the macro. 
>>>> I also tried a template unsuccessfully. 
>>>>
>>>> <$list filter="[tag[my_tag]]">
>>>>
>>>>
>>>> <<details sum:"[[tiddler_variable_in_the_loop]]" src:
>>>> "{{tiddler_variable_in_the_loop}}">>   // desired output with visible 
>>>> link and hidden translusion
>>>>
>>>>
>>>> <<details sum:"{{!!title}}" src:<$transclude mode="block"/> >>   // 
>>>> displays the title of the tiddler without link; do not transclude.
>>>> <<currentTiddler>>{{||$:/rkashyap/template/detail}}   // similar to 
>>>> above
>>>>
>>>>
>>>> <$transclude mode="block"/>   // transludes the whole content without 
>>>> hiding it
>>>> </$list>
>>>>
>>>>
>>>> The code below achieves the task if the title of the tiddlers are not 
>>>> CamelCase in which case it opens the tiddler which I don't want. 
>>>> <$appear show= {{!!title}} >
>>>> <$transclude mode="block"/>
>>>> </$appear>
>>>>
>>>>
>>>> Thanks,
>>>> -Rahul
>>>>
>>>> On Thursday, May 21, 2020 at 10:26:34 AM UTC-4, Mark S. wrote:
>>>>>
>>>>> You might be able to do it with the wikify. This works with the "now" 
>>>>> macro:
>>>>>
>>>>> <$wikify text="""<<now "YYYY-0MM-0DD">>""" name="datetid">
>>>>> <$transclude tiddler=<<datetid>>/>
>>>>> </$wikify>
>>>>>
>>>>> But since you've already made a JS macro, maybe you could just make a 
>>>>> version of it that returns the contents of the targeted tiddler.
>>>>>
>>>>> On Thursday, May 21, 2020 at 1:37:06 AM UTC-7, Tony K wrote:
>>>>>>
>>>>>> relevant portion of the code below
>>>>>>
>>>>>>
>>>>>> \define dn-ts(timestamp)
>>>>>> """<$macrocall $name="jstiddler" timestamp=$timestamp$ format="YYYY-
>>>>>> 0MM-0DD" />"""
>>>>>> \end
>>>>>>
>>>>>>
>>>>>> <<dn-ts 20200521065246330>>
>>>>>>
>>>>>>
>>>>>> this works and displays the time stamp is the required format i.e 
>>>>>> 2020-05-21
>>>>>>
>>>>>>
>>>>>> however what I need is to transclude the tiddler with title 
>>>>>> 2020-05-21 and that i can't achieve 
>>>>>>
>>>>>> thank you 
>>>>>>
>>>>>

-- 
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/98542b06-38a2-470b-b2d4-4016c66b6f6e%40googlegroups.com.

Reply via email to