[
http://jira.xwiki.org/jira/browse/XE-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_23102
]
Vincent Massol commented on XE-197:
-----------------------------------
Here's the portion of code to generate the syntax page from the document in SVN
in XML format:
{code:none}
#set ($content =
$xwiki.getURLContent("http://svn.xwiki.org/svnroot/xwiki/xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/XWikiSyntax"))
#set ($newdoc = $xwiki.getDocument("Dummy"))
#set ($newdocprivate = $newdoc.getDocument())
$newdocprivate.fromXML($content)
$xwiki.renderText($newdoc.content, $newdoc)
{code}
> Include the XWiki Syntax page in the default wiki rather than link to the
> live xwiki.org web site
> -------------------------------------------------------------------------------------------------
>
> Key: XE-197
> URL: http://jira.xwiki.org/jira/browse/XE-197
> Project: XWiki Enterprise
> Issue Type: Improvement
> Components: Help Application
> Affects Versions: 1.3 M2
> Reporter: Vincent Massol
> Assigned To: Vincent Massol
> Fix For: 1.3 RC1
>
>
> Right now a pop up is opened with the content being rendered from xwiki.org.
> However if the user is in offline mode he won't be able to see the syntax.
> OTOH we don't want to duplicate the syntax page on xwiki.org so I suggest
> also to write some script code on xwiki.org to take the XML from SVN
> (pointing to the syntax page) and convert it to content of the fly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications