Thank you very much - this was exactly what i was looking for - and a
little more :-) !

Could you please show me how to custom the script to run update on a
prespecified tag -
Then I would use it for a button labelled "tagname update"... - if I
can

Thanks again.. Måns Mårtensson

On 11 Feb., 02:19, Eric Shulman <[email protected]> wrote:
> > ITW uses tiddleruploadplugin - and uploads individual tiddlers
> > automatically when you click finish.
> > The tiddlers don't get uploaded when i use toggletag - therefore I
> > have to use TiddlyTweakerPlugin to select all tiddlers tagged with a
> > certain tag - and afterwards I hit the "update tiddlers"-button.
>
> The reason this works is that, in order to update the tiddlers,
> TiddlerTweakerPlugin invokes the TW core function, store.saveTiddler()
> which also triggers the upload processing that has been added by
> UploadTiddlerPlugin.  However, for your purposes, you don't really
> need most of what TiddlerTweaker is doing... rather, you just need get
> the set of tagged tiddlers and invoke store.saveTiddler() on each, so
> that UploadTiddlerPlugin can be properly triggered.
>
> Here's an inline 'onclick' script [1] that should do the trick: (note:
> untested code... just wrote it right here...)
>
> <script label="touch tagged tiddlers">
> var tag=prompt('Enter a tag'); if (!tag||!tag.length) return;
> var tids=store.getTaggedTiddlers(tag);
> store.suspendNotifications();
> for (var i=0; i<tids.length; i++) { var t=tids[i];
>    store.saveTiddler
> (t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields);}
>
> store.resumeNotifications();
> </script>
>
> Just place the above script into a tiddler.  Then, click the 'touch
> tagged tiddlers' command link.  You will be prompted to enter a single
> tag value, and then any matching tiddlers will be 'touched' (without
> changing any values) so that they will also be automatically uploaded.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
> TiddlyTools / ELS Design Studios
>
> [1] requireshttp://www.TiddlyTools.com/#InlineJavascriptPlugin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to