Hi all, I've the a page provaChildren created into a space named space1. If I execute inside a plugin this line document=xwiki.getDocument("space1.provaChildren" ,context); I get a new document but writing the code #set($cDoc=$xwiki.getDocument("space1.provaChildren")) into a page I get the existing page Why this difference ... how can I get the existing page into my plugin? Thanx a lot Raffaele
2008/1/24, Raffaele Viola <[email protected]>:
Hi all,
I've the a page provaChildren created into a space named space1.
If I execute inside a plugin this line document= xwiki.getDocument("space1.provaChildren" ,context); I get a new document but writing the code #set($cDoc=$xwiki.getDocument(" space1.provaChildren")) into a page I get the existing page
Why this difference ... how can I get the existing page into my plugin?
I think that your page name is really " space1.provaChildren" and not "space1.provaChildren" as spaces are taken into account in page names.
Thanx a lot Raffaele
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi Raffaele, You've asked a lot of questions recently. This is great and shows that you're diving deep into xwiki! What would be nice is if you could contribute back something to the community from your work. I can think of: * answer other people's emails * write FAQ entries on xwiki.org * write some missing developer tutorial on xwiki.org etc Of course that's totally up to you but it would be nice... ;) -Vincent On Jan 24, 2008, at 5:19 PM, Thomas Mortagne wrote:
2008/1/24, Raffaele Viola <[email protected]>:
Hi all,
I've the a page provaChildren created into a space named space1.
If I execute inside a plugin this line document= xwiki.getDocument("space1.provaChildren" ,context); I get a new document but writing the code #set($cDoc=$xwiki.getDocument(" space1.provaChildren")) into a page I get the existing page
Why this difference ... how can I get the existing page into my plugin?
I think that your page name is really " space1.provaChildren" and not "space1.provaChildren" as spaces are taken into account in page names.
Thanx a lot Raffaele
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (3)
-
Raffaele Viola -
Thomas Mortagne -
Vincent Massol