Hi, You are right, WebHome pages are identical to any other terminal pages inside a space. There is no difference when creating a WebHome page inside a space from when creating any other terminal page inside a space. I`m not sure I understand what you actual problem is. When trying to create a WebHome or a terminal page, what is the step from which things appear to start behaving differently? Thanks, Eduard On Thu, Feb 11, 2016 at 4:29 PM, Giordano Ninonà <[email protected]> wrote:
Hi users,
In my java component I am handling the creation of spaces and pages. The point is to write a java method that can create and update spaces and terminal pages contained in them according to some data structure.
I already have created XClasses, XObjects and Sheets to handle the content representations of both spaces and terminal pages, but the problem is that I can´t put the pages inside the correct spaces. I thought that the space´s Webhome page is a document like any other page, thus I´ve managed it like the other terminal pages. Terminal pages creation is ok, meaning that the content are diplayed properly, but the they are contained in spaces that haven´t a page (if I go in the space´s page I am asked to create it because it doesn´t exist), meanwhile there are other pages which have the content that should be displayed in the space page.
Example of the structure that I have:
Space
Space(with no content/xobject)
Terminal Page Terminal Page . . .
Page with space´s content/xobject Space(with no content/object)
Terminal Page Terminal Page . . .
Page with space´s content/object) . . .
So my question is how do I have to create the space´s page if I want to associate an XObject for the content representation? I used resolver for both spaces and document, so I think that the references are handled correctly...
Sorry for the long post and thank you for your answers.
Giordano. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users