From: Reini U. <rei...@gm...> - 2005-10-20 13:54:13
|
Sorry, I can answer these detailed questions after my holidays. Thursday I'll be back. On 10/19/05, Ben Hartshorne <ph...@gr...> wrote: > 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%% > > > > * 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 > > 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. The order of WikiFormRich options is important and quite fragile. > 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. This should work and worked as I tested it. I'll try to fix it if it's broken ASAP. > > 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 > > __________ your name goes here > > Can I adjust the size of text-entry boxes (I think I saw that option > somewhere else... I had an option to leave out <br> -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |