Hi Mike, On Tue, Oct 13, 2009 at 5:26 PM, [email protected] < [email protected]> wrote:
> Hi, > > I've got lots and lots of pages created in xwiki/1.0 syntax. Now we decided > to migrate to V2.0. Furthermore it's noticeable that we use XMLRPC to upload > pages to our wiki. Migration lead to rendering problems in the new version > since it expects the pages to be in xwiki/2.0 format by default. I changed > the default to xwiki/1.0, cleared the wiki and did another upload and it > worked as expected. > > However this isn't the approach we would like to use in production. To > avoid migrating hundreds of pages (and lots of code that builds pages) to > 2.0 syntax but to keep the default value xwiki/2.0 we're somehow stuck. A > possible and reasonable compromise could be to set the syntax of a page > during creation time, meaning that legacy pages will be created as 1.0 > others maybe as 2.0, or (to start dreaming) in a way of autodetecting the > page's syntax. > I think there is a way you can set your existing pages to be created in 1.0 syntax. While uploading pages using the XML/RPC protocol, set the <syntaxId> tag to be in xwiki\1.0 syntax for your legacy pages: <syntaxId>xwiki/1.0</syntaxId> Also, note that right now Blog articles and user profiles are still created in 1.0 syntax in XE 2.0 even though new pages are created using the new syntax. You can look at the underlying code to see how it's done. > To make it short: > Is there a way we could easily upload our 1.0 pages to a 2.0 wiki without > changing the default value? Otherwise we would have to spend several days in > migrating our code, which costs us without giving us any additional > functionality. > To keep it short: yes, you can do that ;-) Guillaume > Thank you > Mike > > > > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users > -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
