* tiddlywebplugins.form / BinaryUploadPlugin.jsWhen I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.
* tiddlywebplugins.urlsI've installed this plugin and updated tiddlywebconfig.py accordingly. However, when I create a file "bags/urls/tiddlers/RewriteRoot/1" containing:"title:/wikitext:/recipes/default/tiddlers.wiki"I get:"404 Not FoundThe server has not found anything matching the Request-URI."Any ideas where I might be going wrong?
a number of labels in the locale object which can be overridden by creating a tiddler ...you'll need to ensure it runs _after_ the plugin itself
Hi Andrew* tiddlywebplugins.form / BinaryUploadPlugin.jsWhen I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.Where are you getting BinaryUploadPlugin.js from? The version in the TiddlySpace repo [1] has a number of labels in the locale object which can be overridden by creating a tiddler (you'll need to ensure it runs _after_ the plugin itself) with content similar to the following in it:
config.macros.binaryUpload.locale.titleDefaultValue = "OMG";
config.macros.binaryUpload.locale.tagsDefaultValue = "OMG";You can see the full list of values available near the top of the code. There currently isn't really a way of changing the upload button text but it's pretty stable now (i.e. it hasn't changed in years afaik) so you should be able to change it directly in the plugin code.* tiddlywebplugins.urlsI've installed this plugin and updated tiddlywebconfig.py accordingly. However, when I create a file "bags/urls/tiddlers/RewriteRoot/1" containing:"title:/wikitext:/recipes/default/tiddlers.wiki"I get:"404 Not FoundThe server has not found anything matching the Request-URI."Any ideas where I might be going wrong?When you say you have a file "bags/urls/tiddlers/RewriteRoot/1" presumably this means the tiddler title is actually "RewriteRoot" and not "/wiki" as it needs to be?You should be able tot create routes via twanager with, in your case:twanager url /wiki /recipes/default/tiddlers.wiki
Hi Ben,
On Wednesday, 12 November 2014 09:51:39 UTC, Ben Gillies wrote:Hi Andrew* tiddlywebplugins.form / BinaryUploadPlugin.jsWhen I create a tiddler using the binaryUpload macro, how do I customise the labels of the text entry fields for the binary tiddler name and tags? Can't see an obvious way and not sure whether it's in the plugin or elsewhere.Where are you getting BinaryUploadPlugin.js from? The version in the TiddlySpace repo [1] has a number of labels in the locale object which can be overridden by creating a tiddler (you'll need to ensure it runs _after_ the plugin itself) with content similar to the following in it:From the TiddlySpace repo. It wasn't so much about wanting to change the default text that populates the field, and rather instead putting a label to the side of it.
PEBKAC. Thanks, for the clarification, Ben — now working fine :o)Btw, is there any way of auto-generating short URLs, should you want to use this as a URL shortener with these in addition to short URLs that are specific? By which I suppose I'm asking if this has already been done, rather than whether it's possible.