-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
in the standard XWiki installation, there is a form in the menu to add
news. This form uses the article template.
How do I add a form that uses no special template? I.e. I want to get
the same page I get when creating a new, empty document
(edit/Main/NotExistingDocument)?
I found HowToCreateADocumentTemplate and DocumentTemplateExample. But
when I use this, a document is created from this template, but the user
does not get the textarea (or WYSIWYG editor) to actually change the
document:
#includeTopic("xwiki:XWiki.XWikiCommonJavascript")
<form action="" id="newdoc">
<input type="hidden" name="parent"
value="${doc.fullName}" />
<input type="hidden" name="template"
value="Doc.ExampleTemplate" />
<input type="hidden" name="webname" value="Doc"
size="8" />
Title: <input type="text" name="name" value="Name of your
document" />
<br />
<br />
<input type="button" value="Create this document" onclick='if
(updateName(this.form.name)) {this.form.action="../../inline/" +
this.form.webname.value + "/" + this.form.name.value;
this.form.submit(); }'>
</form>
Thanks,
Michael
- --
Michael Redinger
Zentraler Informatikdienst (Central IT Services)
Universitaet Innsbruck
Technikerstrasse 13 Tel.: ++43 512 507 2335
6020 Innsbruck Fax.: ++43 512 507 2944
Austria Mail: Michael.Redinger(a)uibk.ac.at
BB98 D2FE 0F2C 2658 3780 3CB1 0FD7 A9D9 65C2 C11D
http://homepage.uibk.ac.at/~c102mr/mred-pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org
iD8DBQFEyc8GD9ep2WXCwR0RAtnhAJ4wAu/GzeJ9XmiPW6UMuvihJR7kJQCgp0mM
qlDlxoJA3mBSwimM+d4ijmM=
=JwLV
-----END PGP SIGNATURE-----