Re: [tw5] How to <$list> a "field" that contains "TextReference"?

2021-05-08 Thread Mohamed Amin
Thanks a lot Mohamed for you answer

On Saturday, May 8, 2021 at 11:21:59 AM UTC+2 Mohammad wrote:

> There was a missing parentheses in my previous code
>
> <$list filter="[tag[Books]]">
>   <$transclude field=caption/>
> 
>
>
>
> Best wishes
> Mohammad
>
>
> On Sat, May 8, 2021 at 1:49 PM Mohammad Rahmani  
> wrote:
>
>>
>>
>>
>> On Sat, May 8, 2021 at 8:23 AM Mohamed Amin  wrote:
>>
>>> I just discovered another AMAZING feature in TW5, which is the 
>>> capability of the "fields" to contain a TextReference (like {{!!someField}} 
>>> ).
>>>
>>> For example, in my "Books" Tiddlers (which has "book_title", "
>>> book_edition" and "book_date" fields), I can add a "caption" field, 
>>> with a value like =  {{!!book_title}} / {{!!book_edition}} - 
>>> {{!!book_date}}
>>>
>>> So If I used : {{!!caption}} inside my tiddler I'll get something like:
>>> Mybook01 / 1st Edition - 2014
>>> which is amazing, and work as "enclosive template".
>>>
>>> Now, My Question is, 
>>> How can I use this feature inside <$list> widget?ie. How can I wikify 
>>> the "TextRefernce" field value inside a list? 
>>>
>>> Note:
>>> If I used : <$list filter="[tag[Books]get[caption]]"/>
>>> The result is = "{{!!book_title}} / {{!!book_edition}} - {{!!book_date}}
>>> "
>>>
>>
>>
>>1. The filter is wrong for what you want
>>2. The result is correct, as you ask for caption not transcluded value
>>3. So do as below to get what you want
>>
>>
>> <$list filter="[tag[Books]">
>>  <$transclude field=caption/>
>>
>>  
>>
>>>
>>> But I need the following:
>>> Mybook01 / 1st Edition - 2020
>>> Mybook02 / 3rd Edition - 2014
>>> Mybook03 / 2nd Edition - 2017
>>> .
>>> .
>>>
>>> Thanks
>>>
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/ba53fab5-30ee-496e-a8f7-2f2e71bc7c12n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3493662f-7ca1-48f6-99f7-5821110947b3n%40googlegroups.com.


Re: [tw5] How to <$list> a "field" that contains "TextReference"?

2021-05-08 Thread Mohammad Rahmani
There was a missing parentheses in my previous code

<$list filter="[tag[Books]]">
  <$transclude field=caption/>




Best wishes
Mohammad


On Sat, May 8, 2021 at 1:49 PM Mohammad Rahmani 
wrote:

>
>
>
> On Sat, May 8, 2021 at 8:23 AM Mohamed Amin  wrote:
>
>> I just discovered another AMAZING feature in TW5, which is the capability
>> of the "fields" to contain a TextReference (like {{!!someField}} ).
>>
>> For example, in my "Books" Tiddlers (which has "book_title", "
>> book_edition" and "book_date" fields), I can add a "caption" field, with
>> a value like =  {{!!book_title}} / {{!!book_edition}} - {{!!book_date}}
>>
>> So If I used : {{!!caption}} inside my tiddler I'll get something like:
>> Mybook01 / 1st Edition - 2014
>> which is amazing, and work as "enclosive template".
>>
>> Now, My Question is,
>> How can I use this feature inside <$list> widget?ie. How can I wikify the
>> "TextRefernce" field value inside a list?
>>
>> Note:
>> If I used : <$list filter="[tag[Books]get[caption]]"/>
>> The result is = "{{!!book_title}} / {{!!book_edition}} - {{!!book_date}}"
>>
>
>
>1. The filter is wrong for what you want
>2. The result is correct, as you ask for caption not transcluded value
>3. So do as below to get what you want
>
>
> <$list filter="[tag[Books]">
>  <$transclude field=caption/>
>
>
>
>>
>> But I need the following:
>> Mybook01 / 1st Edition - 2020
>> Mybook02 / 3rd Edition - 2014
>> Mybook03 / 2nd Edition - 2017
>> .
>> .
>>
>> Thanks
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/ba53fab5-30ee-496e-a8f7-2f2e71bc7c12n%40googlegroups.com
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMA3Jqv27w12a-sJv-i82xV3FHOx41yTUe-OxOOorxVw0A%40mail.gmail.com.


Re: [tw5] How to <$list> a "field" that contains "TextReference"?

2021-05-08 Thread Mohammad Rahmani
On Sat, May 8, 2021 at 8:23 AM Mohamed Amin  wrote:

> I just discovered another AMAZING feature in TW5, which is the capability
> of the "fields" to contain a TextReference (like {{!!someField}} ).
>
> For example, in my "Books" Tiddlers (which has "book_title", "book_edition"
> and "book_date" fields), I can add a "caption" field, with a value like =
> {{!!book_title}} / {{!!book_edition}} - {{!!book_date}}
>
> So If I used : {{!!caption}} inside my tiddler I'll get something like:
> Mybook01 / 1st Edition - 2014
> which is amazing, and work as "enclosive template".
>
> Now, My Question is,
> How can I use this feature inside <$list> widget?ie. How can I wikify the
> "TextRefernce" field value inside a list?
>
> Note:
> If I used : <$list filter="[tag[Books]get[caption]]"/>
> The result is = "{{!!book_title}} / {{!!book_edition}} - {{!!book_date}}"
>


   1. The filter is wrong for what you want
   2. The result is correct, as you ask for caption not transcluded value
   3. So do as below to get what you want


<$list filter="[tag[Books]">
 <$transclude field=caption/>
   


>
> But I need the following:
> Mybook01 / 1st Edition - 2020
> Mybook02 / 3rd Edition - 2014
> Mybook03 / 2nd Edition - 2017
> .
> .
>
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/ba53fab5-30ee-496e-a8f7-2f2e71bc7c12n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDY%2BWFbx4AG81kWmHmQ5Aox6S%2B%2BoL1R_7gOT8kX9yPLUw%40mail.gmail.com.


[tw5] How to <$list> a "field" that contains "TextReference"?

2021-05-07 Thread Mohamed Amin
I just discovered another AMAZING feature in TW5, which is the capability 
of the "fields" to contain a TextReference (like {{!!someField}} ).

For example, in my "Books" Tiddlers (which has "book_title", "book_edition" 
and "book_date" fields), I can add a "caption" field, with a value like =  
{{!!book_title}} / {{!!book_edition}} - {{!!book_date}}

So If I used : {{!!caption}} inside my tiddler I'll get something like:
Mybook01 / 1st Edition - 2014
which is amazing, and work as "enclosive template".

Now, My Question is, 
How can I use this feature inside <$list> widget?ie. How can I wikify the 
"TextRefernce" field value inside a list? 

Note:
If I used : <$list filter="[tag[Books]get[caption]]"/>
The result is = "{{!!book_title}} / {{!!book_edition}} - {{!!book_date}}"

But I need the following:
Mybook01 / 1st Edition - 2020
Mybook02 / 3rd Edition - 2014
Mybook03 / 2nd Edition - 2017
.
.

Thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ba53fab5-30ee-496e-a8f7-2f2e71bc7c12n%40googlegroups.com.