Currently edittwiki does not parse the attached forms for TWiki topics which means that when you save the page, it will be saved without the form data. This feature is being added and is targetted for the next (1.1.3) release.
You must have installed a current JRE/JDK for your platform and the java executable should be in your path. To test this, run java -version from a command prompt. You should get a response from your java installation with its release information.
This has been tested on Windows XP and should work on any platform that has a recent java JDK/JRE.
editTwiki is written in python and compiled into a java jar using Jython which makes it a regular java application packaged into a jar.
To install it, unzip the distribution into an installation directory. Next add the distribution's bin directory to your path and add the edittwiki.jar file to your CLASSPATH. Next, define the EDITTWIKI environment variable to point to to the edittwiki.cfg config file and edit the config file to reflect the twiki installation you want to use it with. Once you are setup, run the following:
edittwiki --help
This should display the usage information. You are done and ready to work.
Edittwiki defaults to using notepad as your editor. To set your own editor, define the EDITOR variable to the full path to your editor of choice. For example:
SET EDITOR=c:\tools\vim\vim63\gvim.exe
The basic commands are follows:
edittwiki -H host_section -T Web.Topic
If you have defined a twiki host section in your config file pointing to the twiki.org site, you would use this as follows:
edittwiki -H twiki -T Main.MyUserHomePage
The purpose of the config file is allow you to setup the connection details for the TWiki sites you use in advance. This keeps the amount of typing down to a minimum.
The following is a sample config file:
[general] host=twiki.org protocol=http userid=YourId password=YourPassw0rd [local] host=localhost:8080 protocol=http [external] host=external.wiki.com subdir=/twiki cgibin=bin protocol=http userid=YourId password=YouPassw0rd
The section name is used on the command line to specify which server you want to talk to. If you do not specify a section, it looks for the general section as a default.
The host entry is the FQDN of the hostname where TWiki is installed. If your twiki install is on a port other than port 80, you should add it to the host setting. For example:
host=my.weird.server.com:8080
This is either http or https and must match your TWiki's installation (obviously).
If your TWiki site is installed in the root directory of the server and you access it through a url like:
http://my.server.org/bin/view/Main/MyTopic
Then you can safely ignore this setting. If however you use a url like the following:
http://my.server.org/twiki/bin/view/Main/MyTopic
then you need to define the initial directory after the hostname via the subdir setting.
If your TWiki site has installed its scripts in a directory other than cgi-bin, you need to specify that here:
cgibin=bin
If your TWiki install is secured, you will be prompted to enter your credentials when you run the edittwiki tool. To avoid this hassle, define your userid and password in the config section for the secured host and you will not be prompted.
I have tried to test this as extensively as I can, but doubtless there are many bugs and assumptions which will cause issues for others with their individual TWiki installations. Please provide any feedback you may have to (etaekema at earthlink dot net).
| Add-on Author: | TWiki:Main/EdTaekema |
| Add-on Version: | 01 Jul 2004 (v1.000) |
| Change History: | 0.1 |
| 01 Jul 2004: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Java Version: | 1.3, 1.4 |
| License: | GPL |
| Add-on Home: | https://TWiki.org/cgi-bin/view/Plugins/EditTWikiExternalEditorAddOn |
| Feedback: | https://TWiki.org/cgi-bin/view/Plugins/EditTWikiExternalEditorAddOnDev |