Hi Alexandre,
On Wed, Sep 2, 2009 at 8:29 PM, Alexandre Souza <siqsou(a)gmail.com> wrote:
Hi,
I am development a bash script for adding a lot pages and panels
automatically in my xwiki.
I got to add pages with 'curl' command, as following:
*curl -u Admin:admin -X PUT -d @newpage.html -H "Content-Type: text/plain"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/NewPage
*
This works, but I'm having difficulty to add links in a side panel for the
pages created.
Is it possible make this with 'curl' too? If not, is there another way?
You simply need to access the panel XObject within the document holding your
panel and edit its content property to add the links to your pages. I think
there's an API for this since it's supported by XEclipse. You'll have to dig
a bit more into it to see how it works though.
Guillaume
Thanks,
Alexandre Souza
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Guillaume Lerouge
Product Manager - XWiki
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/