Hi Sheila,
On Sep 24, 2007, at 5:20 PM, Sheila Hobeck wrote:
We would like some pages to have the same look and
feel and for
users to be able to add a page with a standard "look" to it. Can
that be done? I couldn't find any documentation on it.
Yes it can be done. We don't have any good documentation on that
unfortunately. You could start by reading the FAQ tutorial though:
http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
Then here's an example of creating a page using a form and using a
template (this is from the FAQ page on
xwiki.org):
http://www.xwiki.org/xwiki/bin/view/FAQ/?viewer=code&
<form action="" id="newfaq">
<input type="hidden" name="parent" value="FAQ.WebHome"
/>
<input type="hidden" name="template"
value="XWiki.FAQClassTemplate" />
<input type="hidden" name="sheet" value="1" />
<input type="hidden" name="webname" value="FAQ"/>
<input type="hidden" name="name" value=""/>
<table>
<tr>
<td>
<input type="text" name="faq" value=""
size="30"/>
</td>
<td>
<input type="submit" value="Add this FAQ" onclick='if
(updateName(this.form.faq,this.form.name)) { action="../../inline/" +
this.form.webname.value + "/" + this.form.name.value; this.form.submit
(); }' />
</td>
</tr>
</table>
</form>
When you got it to work, would be nice if you could contribute a
short tutorial on it :)
Hope it helps,
-Vincent