From: Ben H. <ph...@gr...> - 2005-10-19 18:05:24
|
On Wed, Oct 19, 2005 at 10:38:01AM +0200, Reini Urban wrote: > Sorry, that I have to be very short. > Look at WikiFormRich together with CreatePage. I'm having trouble making them work together. Here's the page BenTestTempl: > !! QA test sheet for %%name%% >=20 > * Robot name: %%robot%% > * data: %%data%% Here's the page BenTest: > <?plugin WikiFormRich action=3DCreatePage > hidden[] name=3Dtemplate value=3D"BenTestTempl" > editbox[] name=3Ds text=3D"Enter new page name here" value=3D= "BenTest/RobotName" > editbox[] name=3Dname text=3D"your name goes here" > editbox[] name=3Drobot > editbox[] name=3Dexclude value=3D"" ?> First problem - you can't have a 'text' field as well as a 'value' field. It doesn't match the closing quote, so in the above example, the label of the exitbox becomes=20 > Enter new page name here" value=3D"benTest/RobotName" and the actual initial value of the editbox is empty. If you reverse the order of the two, the initial value of the box gets the whole string and the name is default. Second problem - while the variables 's' and 'template' seem to have an effect (it creates the page of the name entered in 's' and uses the template defined), none of the others seem to be interpolated into the created file. For example, in the template above, %%name%% does not get translated into the value I entered into the 'name' field. Question - what sort of formatting rules may I apply? For example, how would I get the box text on the left side instead of the right > your name goes here: ___________ instead of=20 > __________ your name goes here Can I adjust the size of text-entry boxes (I think I saw that option somewhere else... =20 Thoughts? thanks, -ben --=20 Ben Hartshorne email: be...@ha... http://ben.hartshorne.net |