Thank you FrD!

I think I found the problem. My other tiddler with $:/tags/ViewTemplate has 
a code to show something for tiddlers tagged for example with slide!
When I transclude a tiddler tagged with slide using 

$:/core/ui/ViewTemplate

It seems the host tiddler is assumed not the transcluded one! I mean the 
code is run for the host tiddler not the transcluded one tagged with slide.

Mohammad


On Wednesday, August 1, 2018 at 12:35:51 PM UTC+4:30, FrD wrote:
>
> Hi,
>
> Well that's strange ! If you look at the code of $:/core/ui/ViewTemplate 
> you can see this near the end :
>
> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" 
> variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
>
> It seems the <$list> loop runs through all tiddlers tagged 
> $:/tags/Viewtemplate.
>
> Regards
>
> FrD
>
> Le mercredi 1 août 2018 09:55:44 UTC+2, Mohammad a écrit :
>>
>> That's quite true! Still there is a small problem!
>>
>> Those setting contents come from tiddlers tagged with 
>> $:/tags/ViewTemplate are missing in this transclusion!
>> I mean you may apply settings or produce contents inside a tiddler tagged 
>> with $:/tags/ViewTemplate
>>
>> *Mohammad*
>>
>>
>>
>> On Wednesday, August 1, 2018 at 12:15:28 PM UTC+4:30, FrD wrote:
>>>
>>> Hi,
>>>
>>> I think Mark S. already answered your question in the thread about 
>>> thumbnails : use 
>>> $:/core/ui/ViewTemplate
>>> when transcluding
>>>
>>> https://groups.google.com/d/msg/tiddlywiki/J7_Ne9_uy3E/U6SYjXhtAgAJ
>>>
>>> Regards
>>>
>>> FrD
>>>
>>> Le mercredi 1 août 2018 09:23:31 UTC+2, Mohammad a écrit :
>>>>
>>>>
>>>> In another post 
>>>> <https://groups.google.com/d/msg/tiddlywiki/J7_Ne9_uy3E/CSzrKq1LAgAJ>I 
>>>> asked for thumbnail image of tiddler. In that post I encountered the issue 
>>>> to transclude a tiddler as a whole, that means a snapshot of tiddler 
>>>> trancluded, this include Tiddler text + title and what ever is shown in 
>>>> the 
>>>> original tiddler and also those contents come from customized ViewTemplate!
>>>>
>>>> How this is possible?
>>>>
>>>> Mark S: One solution is to get everything from tiddler and using CSS 
>>>> make a copy where we want the transclusion, but this seems impractical!
>>>> Ton: Other solution was to use Cecily theme!
>>>> Eric: Use transformation
>>>>
>>>> More discussion: 
>>>> https://groups.google.com/d/msg/tiddlywiki/J7_Ne9_uy3E/CSzrKq1LAgAJ
>>>>
>>>> Because I thought this can be of interest for other people I put the 
>>>> question in a separate post! I appreciate other solutions if any!
>>>>
>>>>
>>>>
>>>> /Mohammad
>>>>
>>>

-- 
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/c69b8356-b88d-452c-9b8e-7160ce6ed3f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to