[tw] Re: [TW5] Multi-level transclusion

2016-08-01 Thread 'Mark S.' via TiddlyWiki
The two solutions I know of:

1. Put a transclusion reference to the template in each L1 tiddler (e.g. 
{{||L1Template}}). That way you don't duplicate all the code.
2. Rewrite the Root code with additional sub-lists so that it displays the 
way you intended.

On Monday, August 1, 2016 at 3:37:54 AM UTC-7, William RENOU wrote:
>
> I tried putting the viewTiddler code from L1 directly into the tiddler, 
> and it works perfectly. But I'd need to put the same code in each and every 
> tiddler of the same type.
> Possible workaround : instead of calling L2 through L1 from Root, maybe 
> calling both of them from Root might work, like a nested list ?
>
> Le lundi 1 août 2016 03:39:24 UTC+2, Mark S. a écrit :
>>
>> Well, I can see what the problem is, but I don't see what the solution is 
>> other than putting a template (e.g. {{||L1Template}}) into each L1 object.. 
>> Hopefully one of the gurus will have the magic.
>>
>> At the Level 1 level, the template works because the Level 2 objects have 
>> actual content.
>>
>> At the Root level, it doesn't work (well, it works, but doesn't do what 
>> you wanted it to do) because there's nothing actually in the Level 1 
>> objects. You were hoping that it would bring in the rendered L1 objects, 
>> but instead it's bringing in the *contents *of the L1 object(s) -- which 
>> are empty.
>>
>> If there is a workaround that would allow you to bring in the rendered 
>> contents of tiddler displayed via $:/tags/ViewTemplate it would be great to 
>> learn about it.
>>
>> Good luck!
>> Mark
>>
>> On Sunday, July 31, 2016 at 4:22:41 PM UTC-7, William RENOU wrote:
>>>
>>> Here's my root tiddler viewTemplate :
>>> <$list filter="[is[current]tag[rootTag]]">
>>>
>>>   <$list filter="[tag[L1Tag]field:someField{!!title}]]">
>>>
>>> ! {{!!title}}
>>> <<<
>>> {{!!text}}
>>> <<<
>>>   
>>>
>>> 
>>>
>>> Here's my level 1 viewTemplate :
>>> <$list filter="[is[current]tag[L1Tag]]">
>>>
>>>   <$list filter="[tag[L2Tag]field:someField{!!someValue}]">
>>>
>>> !! {{!!title}}
>>> <<<
>>> {{!!text}}
>>> <<<
>>>   
>>>
>>> 
>>>
>>> There's a field reference from level 1 tiddlers to the root Tiddler 
>>> (using the root tiddler's title). Sames goes for L2 to L1 : it's 
>>> referencing an ID on the L1 tiddler.
>>> My first idea was to remove the block quotes, but it hasn't solved the 
>>> issue of content not showing.
>>>
>>> Le lundi 1 août 2016 00:34:17 UTC+2, Eric Shulman a écrit :

 On Sunday, July 31, 2016 at 3:14:49 PM UTC-7, William RENOU wrote:
>
> I was wondering if transcluding content accross several levels was 
> possible ? 
> Here's what I'm trying to do :
>
> RootTiddler (A)
> + L1SubTiddler (Aa)
>   + L2SubTiddler (Aa1)
>   + L2SubTiddler (Aa2)
> + L1SubTiddler (Ab)
>   + L2SubTiddler (Ab1)
> + L1SubTiddler (Ac)
>
> Both root-level tiddlers and level 1 subtitlers are displayed using 
> viewTemplates. Level 2 tiddlers are transcluded in their Level 1 parent, 
> transcluded again in the root Tiddler. 
> But for some reason, while directly viewing a L1 tiddler displays its 
> L2 contents, opening the root Tiddler only displays the Level 1 contents.
>

 Show some code, please.  Or, better still, post your document online 
 somewhere.
 Then perhaps we can see what you are *actually* doing... rather than 
 just reading a description of what you *want* to do.

 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios
 InsideTiddlyWiki: The Missing Manuals




-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/9e5e24eb-1808-47bf-b003-59ad8459747d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Multi-level transclusion

2016-08-01 Thread William RENOU
I tried putting the viewTiddler code from L1 directly into the tiddler, and 
it works perfectly. But I'd need to put the same code in each and every 
tiddler of the same type.
Possible workaround : instead of calling L2 through L1 from Root, maybe 
calling both of them from Root might work, like a nested list ?

Le lundi 1 août 2016 03:39:24 UTC+2, Mark S. a écrit :
>
> Well, I can see what the problem is, but I don't see what the solution is 
> other than putting a template (e.g. {{||L1Template}}) into each L1 object.. 
> Hopefully one of the gurus will have the magic.
>
> At the Level 1 level, the template works because the Level 2 objects have 
> actual content.
>
> At the Root level, it doesn't work (well, it works, but doesn't do what 
> you wanted it to do) because there's nothing actually in the Level 1 
> objects. You were hoping that it would bring in the rendered L1 objects, 
> but instead it's bringing in the *contents *of the L1 object(s) -- which 
> are empty.
>
> If there is a workaround that would allow you to bring in the rendered 
> contents of tiddler displayed via $:/tags/ViewTemplate it would be great to 
> learn about it.
>
> Good luck!
> Mark
>
> On Sunday, July 31, 2016 at 4:22:41 PM UTC-7, William RENOU wrote:
>>
>> Here's my root tiddler viewTemplate :
>> <$list filter="[is[current]tag[rootTag]]">
>>
>>   <$list filter="[tag[L1Tag]field:someField{!!title}]]">
>>
>> ! {{!!title}}
>> <<<
>> {{!!text}}
>> <<<
>>   
>>
>> 
>>
>> Here's my level 1 viewTemplate :
>> <$list filter="[is[current]tag[L1Tag]]">
>>
>>   <$list filter="[tag[L2Tag]field:someField{!!someValue}]">
>>
>> !! {{!!title}}
>> <<<
>> {{!!text}}
>> <<<
>>   
>>
>> 
>>
>> There's a field reference from level 1 tiddlers to the root Tiddler 
>> (using the root tiddler's title). Sames goes for L2 to L1 : it's 
>> referencing an ID on the L1 tiddler.
>> My first idea was to remove the block quotes, but it hasn't solved the 
>> issue of content not showing.
>>
>> Le lundi 1 août 2016 00:34:17 UTC+2, Eric Shulman a écrit :
>>>
>>> On Sunday, July 31, 2016 at 3:14:49 PM UTC-7, William RENOU wrote:

 I was wondering if transcluding content accross several levels was 
 possible ? 
 Here's what I'm trying to do :

 RootTiddler (A)
 + L1SubTiddler (Aa)
   + L2SubTiddler (Aa1)
   + L2SubTiddler (Aa2)
 + L1SubTiddler (Ab)
   + L2SubTiddler (Ab1)
 + L1SubTiddler (Ac)

 Both root-level tiddlers and level 1 subtitlers are displayed using 
 viewTemplates. Level 2 tiddlers are transcluded in their Level 1 parent, 
 transcluded again in the root Tiddler. 
 But for some reason, while directly viewing a L1 tiddler displays its 
 L2 contents, opening the root Tiddler only displays the Level 1 contents.

>>>
>>> Show some code, please.  Or, better still, post your document online 
>>> somewhere.
>>> Then perhaps we can see what you are *actually* doing... rather than 
>>> just reading a description of what you *want* to do.
>>>
>>> -e
>>> Eric Shulman
>>> TiddlyTools / ELS Design Studios
>>> InsideTiddlyWiki: The Missing Manuals
>>>
>>>
>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/9b8c8cc3-17fe-470b-8b68-45a9fc720bdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Multi-level transclusion

2016-07-31 Thread 'Mark S.' via TiddlyWiki
Well, I can see what the problem is, but I don't see what the solution is 
other than putting a template (e.g. {{||L1Template}}) into each L1 object.. 
Hopefully one of the gurus will have the magic.

At the Level 1 level, the template works because the Level 2 objects have 
actual content.

At the Root level, it doesn't work (well, it works, but doesn't do what you 
wanted it to do) because there's nothing actually in the Level 1 objects. 
You were hoping that it would bring in the rendered L1 objects, but instead 
it's bringing in the *contents *of the L1 object(s) -- which are empty.

If there is a workaround that would allow you to bring in the rendered 
contents of tiddler displayed via $:/tags/ViewTemplate it would be great to 
learn about it.

Good luck!
Mark

On Sunday, July 31, 2016 at 4:22:41 PM UTC-7, William RENOU wrote:
>
> Here's my root tiddler viewTemplate :
> <$list filter="[is[current]tag[rootTag]]">
>
>   <$list filter="[tag[L1Tag]field:someField{!!title}]]">
>
> ! {{!!title}}
> <<<
> {{!!text}}
> <<<
>   
>
> 
>
> Here's my level 1 viewTemplate :
> <$list filter="[is[current]tag[L1Tag]]">
>
>   <$list filter="[tag[L2Tag]field:someField{!!someValue}]">
>
> !! {{!!title}}
> <<<
> {{!!text}}
> <<<
>   
>
> 
>
> There's a field reference from level 1 tiddlers to the root Tiddler (using 
> the root tiddler's title). Sames goes for L2 to L1 : it's referencing an ID 
> on the L1 tiddler.
> My first idea was to remove the block quotes, but it hasn't solved the 
> issue of content not showing.
>
> Le lundi 1 août 2016 00:34:17 UTC+2, Eric Shulman a écrit :
>>
>> On Sunday, July 31, 2016 at 3:14:49 PM UTC-7, William RENOU wrote:
>>>
>>> I was wondering if transcluding content accross several levels was 
>>> possible ? 
>>> Here's what I'm trying to do :
>>>
>>> RootTiddler (A)
>>> + L1SubTiddler (Aa)
>>>   + L2SubTiddler (Aa1)
>>>   + L2SubTiddler (Aa2)
>>> + L1SubTiddler (Ab)
>>>   + L2SubTiddler (Ab1)
>>> + L1SubTiddler (Ac)
>>>
>>> Both root-level tiddlers and level 1 subtitlers are displayed using 
>>> viewTemplates. Level 2 tiddlers are transcluded in their Level 1 parent, 
>>> transcluded again in the root Tiddler. 
>>> But for some reason, while directly viewing a L1 tiddler displays its L2 
>>> contents, opening the root Tiddler only displays the Level 1 contents.
>>>
>>
>> Show some code, please.  Or, better still, post your document online 
>> somewhere.
>> Then perhaps we can see what you are *actually* doing... rather than just 
>> reading a description of what you *want* to do.
>>
>> -e
>> Eric Shulman
>> TiddlyTools / ELS Design Studios
>> InsideTiddlyWiki: The Missing Manuals
>>
>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/c750559a-cee6-44cb-82ae-27d30aab3dc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Multi-level transclusion

2016-07-31 Thread William RENOU
Here's my root tiddler viewTemplate :
<$list filter="[is[current]tag[rootTag]]">

  <$list filter="[tag[L1Tag]field:someField{!!title}]]">

! {{!!title}}
<<<
{{!!text}}
<<<
  



Here's my level 1 viewTemplate :
<$list filter="[is[current]tag[L1Tag]]">

  <$list filter="[tag[L2Tag]field:someField{!!someValue}]">

!! {{!!title}}
<<<
{{!!text}}
<<<
  



There's a field reference from level 1 tiddlers to the root Tiddler (using 
the root tiddler's title). Sames goes for L2 to L1 : it's referencing an ID 
on the L1 tiddler.
My first idea was to remove the block quotes, but it hasn't solved the 
issue of content not showing.

Le lundi 1 août 2016 00:34:17 UTC+2, Eric Shulman a écrit :
>
> On Sunday, July 31, 2016 at 3:14:49 PM UTC-7, William RENOU wrote:
>>
>> I was wondering if transcluding content accross several levels was 
>> possible ? 
>> Here's what I'm trying to do :
>>
>> RootTiddler (A)
>> + L1SubTiddler (Aa)
>>   + L2SubTiddler (Aa1)
>>   + L2SubTiddler (Aa2)
>> + L1SubTiddler (Ab)
>>   + L2SubTiddler (Ab1)
>> + L1SubTiddler (Ac)
>>
>> Both root-level tiddlers and level 1 subtitlers are displayed using 
>> viewTemplates. Level 2 tiddlers are transcluded in their Level 1 parent, 
>> transcluded again in the root Tiddler. 
>> But for some reason, while directly viewing a L1 tiddler displays its L2 
>> contents, opening the root Tiddler only displays the Level 1 contents.
>>
>
> Show some code, please.  Or, better still, post your document online 
> somewhere.
> Then perhaps we can see what you are *actually* doing... rather than just 
> reading a description of what you *want* to do.
>
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
> InsideTiddlyWiki: The Missing Manuals
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/647d2751-dd66-4482-b8b6-e617a0254b78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Multi-level transclusion

2016-07-31 Thread William RENOU
What more information do you need ?

Le lundi 1 août 2016 00:32:25 UTC+2, Jed Carty a écrit :
>
> What you want is almost certainly possible, but you need to give more 
> information about what is going on. You describe sometihng like how the 
> threaded comments are displayed in twederation here 
> , but I can't give you anything 
> specific without more information.
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/637ed343-2902-4c7a-991e-3540a8bf708f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Multi-level transclusion

2016-07-31 Thread Eric Shulman
On Sunday, July 31, 2016 at 3:14:49 PM UTC-7, William RENOU wrote:
>
> I was wondering if transcluding content accross several levels was 
> possible ? 
> Here's what I'm trying to do :
>
> RootTiddler (A)
> + L1SubTiddler (Aa)
>   + L2SubTiddler (Aa1)
>   + L2SubTiddler (Aa2)
> + L1SubTiddler (Ab)
>   + L2SubTiddler (Ab1)
> + L1SubTiddler (Ac)
>
> Both root-level tiddlers and level 1 subtitlers are displayed using 
> viewTemplates. Level 2 tiddlers are transcluded in their Level 1 parent, 
> transcluded again in the root Tiddler. 
> But for some reason, while directly viewing a L1 tiddler displays its L2 
> contents, opening the root Tiddler only displays the Level 1 contents.
>

Show some code, please.  Or, better still, post your document online 
somewhere.
Then perhaps we can see what you are *actually* doing... rather than just 
reading a description of what you *want* to do.

-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals


-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/4ba1798a-a7ef-44b6-9976-fae692d07a5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Multi-level transclusion

2016-07-31 Thread Jed Carty
What you want is almost certainly possible, but you need to give more 
information about what is going on. You describe sometihng like how the 
threaded comments are displayed in twederation here 
, but I can't give you anything 
specific without more information.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/dd641c55-1502-49b8-a4df-c2a140af99c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.