Hi Tobias

Sorry for the late reply.

Transcluding with the curly braces syntax actually generates a nested pair
of a tiddler widget to set the current tiddler and a transclude widget to
do the transclusion. So the result is just like TWC - by default,
transcluding a tiddler sets the current tiddler to that tiddler.

> When something is tagged $:/tag/PageTemplate ...this context is?!? I
don't know

That's the point, neither do I! If there was a sensible default we could
implement it.

Anyhow, if you're underlying problem is that you'd like to be able to
create wikitext that displays differently according to whether it is in the
sidebar or in a tiddler, then there has been a thread about that here that
you should be able to find.

Best wishes

Jeremy.




On Fri, Nov 28, 2014 at 4:49 PM, Tobias Beer <[email protected]> wrote:

> Hi Jeremy,
>
>
>> Why would you expect "currentTiddler" to be defined outside of the story
>> river?
>>
> And what value would you expect it to have?
>>
>
> In TWc, there were two cases in addition to the "story-tiddler"...
>
>    1. a placeholder had the "tiddler" attribute set to the corrsponding
>    tiddler, e.g. SiteTitle
>    2. a transclusion had the "tiddler" attribute set to the corresponding
>    tiddler being transcluded via the tiddler macro
>
> So, there was that way of knowing from within either of these instances
> what placeholder we're in, i.e. what is being rendered. There even had to
> be special handling via *story.findContainingTiddler* to find the actual
> story tiddler within code. Now, I am not saying this was better, but it
> turns out I am missing that other variant now, especially when there is no
> story around my rendered tiddler.
>
> When something tagged *$:/tag/ViewTemplate* is rendered, then
> *currentTiddler* for that template is what? Exactly, the tiddler for
> which the template is rendered. When something is tagged
> *$:/tag/PageTemplate* ...this context is?!? I don't know. But I'd sure
> like to know from within the code of that tiddler as you can see ...call it
> *contextTiddler*. :)
>
> Best wishes, Tobias.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to