<!-- This template should be used with the tabs macro --><$tiddler tiddler=<<currentTab>>><$transclude tiddler="$:/core/ui/ViewTemplate"/></$tiddler>--
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 post to this group, send email to tiddl...@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/47a377ca-62fd-4df0-879d-0751a6b8c938%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Of course that is the problem.I want to show the tiddler as it will render normally, that's why I need to use core's the viewTemplate.Is not any mechanism to limit the number of recursions?
--
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 post to this group, send email to tiddl...@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/12367fb6-9bd8-4711-afc2-87030d664960%40googlegroups.com.
But you’re already inside the core’s ViewTemplate, so you can’t transclude it again with the same currentTiddler without creating the recursion. You’re modifying the view template to include a bunch of tabs, and then one of those tabs is transcluding the same view template.
The only way out is to detect the recursion and render something else instead.
<!-- This template should be used with the tabs macro --><$list filter="[is[current]!field:title<currentTab>]"><$tiddler tiddler=<<currentTab>>><$transclude tiddler="$:/core/ui/ViewTemplate"/></$tiddler></$list>Perhaps you could show a mockup of what you’re trying to achieve?
but I don't know how to guarantee to show the same thing the view template would do without using the view template.
--
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 post to this group, send email to tiddl...@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/1c41cd92-cb15-4042-a0e2-5f50dba040a9%40googlegroups.com.
Rethinking about this that will not work neither. It will certainly avoid the recursive transclusion, but because the tiddler is folded it will not show anything.
My only option is to create a clone of the default view template avoiding the tabs transclusion via filter and removing the folding part. Then I should make sure that it is up to date with core for the best experience.
Of course I took a closer look at your work about versionning. But I have a challenge that you don't : you use a tag to trigger the view template, and I don't want to attach any tag to the current tiddler. So my view template should be triggered in a different way, same thing for hidding the default body.
Regards
body .tc-tiddler-frame a[href="#NAMEOFTIDDLER"] {...}Here is how I did it:
* Use a special tab macro that renders everything except the current tiddler.
* That macro adds a special button as the first one, which corresponds to the current tiddler
* All the tabs folds the current tiddler and transclude the target tiddler using core's view template
* The first tab is an exception and acts the opposite:it unfolds the current tiddler and shows nothing, so it looks like the tab content is the current tiddler
Easy and without touching a single core tiddler.
Regards