Hi Zachary
2013/3/13 zacharykane <kane.zach(a)gmail.com>
Right, I just wanted to play it safe - I wasn't
sure what the
XmlHttpRequest
object would allow as far as verbs. It works as intended.
Also, sure the rest doesn't accept templates - that's a shame but oh well.
I'm trying now to get the template content into a created page. I've
figured
I can fetch the content of the template page, using a GET, and put that
<content> element's content into the parameter of the create page
arguments.
Current tests seem to work out - haven't tried more complicated templates
but header images and subtitles come across.
I mentioned the /edit/ URLs in passing that if you do put certain
parameters
(?template= in this case) it will put the template into the WYSIWYG editor
of the specified Page, very slick.
There is 2 options to avoid this behaviour.
- First: just add "?editor=inline" in the URL.
- Or, use a class sheet binding if your document is supposed to have an
object (you can see:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module)
Anyway, if anyone knows of a way to "create pages with templates" that
sounds better than what I described above I'd love to hear it!
I hope what I proposed help you.
Louis-Marie