On Oct 16, 2012, at 8:46 PM, Sergiu Dumitriu <ser...@xwiki.com> wrote:

> On 10/16/2012 09:56 AM, Vincent Massol wrote:
>> Hi devs,
>> 
>> Just realized that we don't have direct way of getting a page's content 
>> (only the content)…
>> 
>> The best we can do is:
>> http://playground.xwiki.org/xwiki/bin/view/Sandbox/WebHome?xpage=plain&outputSyntax=xwiki
>> 
>> But that converts the content to XWiki Syntax.
>> 
>> Shouldn't we have a vm for just displaying the content? Or even better a 
>> REST URL?
> 
> http://www.xwiki.org/xwiki/bin/view/Main/WebHome?xpage=plain&raw=2
> 
> xpage=plain.vm has three modes, the normal one returns the rendered content, 
> raw=1 returns the code, but XML-escaped with the HTML MIME type, and raw=2 
> returns the raw code with the text/plain MIME type.

ok great, didn't know that!

We should document those parameters somewhere…

Thanks Sergiu
-Vincent
_______________________________________________
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to