> Is there a way to create and name a new tiddler with Startup
> Parameters that will include content and tags within the URI when the
> TiddlyWiki is opened by a browser?
As you noted, #newTiddler:Title does not support the additional
parameters that are available with the <<newTiddler>> macro.
One way to achieve the results you want is to define a completely
seperate startup command, e.g., "createTiddler", that acts as a pass-
thru to temporarily render and invoke <<newTiddler>> with params
supplied in the URL and then 'auto-click' the resulting "new tiddler"
link to process those params and display a fully-initialized tiddler
editor.
First, put the following in a tiddler, tagged with 'systemConfig':
------------
{{{
config.paramifiers.createTiddler = {
onstart: function(v) {
if(readOnly) return;
var d=document.createElement('div');
wikify('<<newTiddler title:'+v+'>>',d);
d.getElementsByTagName('A')[0].onclick();
}
};
}}}
------------------
Then, to use it, you would enter a URL like this:
path/to/tw.html#createTiddler:[[NewTitle tag:sometag
template:SomeTemplate etc...]]
(note: you might have to "URL-encode the spaces (%20) and square
brackets (%5B and %5D) above when saving it as a bookmark)
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--
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.