On Friday, June 13, 2014 2:28:28 PM UTC-7, julien bouchez wrote:
>
> I have added a new taggedTypes class in the ViewTemplate :
>
> *<div class='taggedTypes' macro='tiddler FetTypes
> with:{{tiddler.title}}'></div>*
>
> How to have this class AutoRefresh like viewer does when I place <<tiddler
> AutoRefresh>> inside ?
>
I assume you are referring to TiddlyTools' AutoRefresh "transclusion" script
(http://www.TiddlyTools.com/#AutoRefresh)
The TWCore automatically adds certain special TWCore attributes
(refresh="content" and tiddler="FetTypes") to the element that holds your
transcluded content (i.e., a span contained within the 'taggedTypes' DIV).
When the TWCore's refresh handler is triggered by a change to tiddler
content, it uses these attributes to determine which elements will be
re-rendered.
By default, the transcluded element should automatically refresh whenever
[[FetTypes]] is modified. However, I don't think this is quite what you
need, as the FetTypes tiddler content itself is unlikely to change very
often, but the *output* from that tiddler can vary, based on other tiddlers
that have changed.
Fortunately, there is a way to force the refresh of an element when *ANY*
tiddler is changed, rather than just the tiddler that was transcluded. To
do this, you need to add refresh="content" and force="true" to the
*containing* element in which the transcluded FetTypes tiddler is rendered,
like this:
*<div class='taggedTypes' refresh='content' force='true' macro='tiddler
FetTypes with:{{tiddler.title}}'></div>*
Let me know how it goes...
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
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.