Hi devs,
I’ve analyzed the issue of Nested Spaces on the IRC Bot application
(
http://jira.xwiki.org/browse/XWIKI-12341) and I’ve found some interesting use case.
Use case:
* An Application lets the user configure where to save pages the application generates or
the Application simply generates pages in some space other than the app space.
* We want the breadcrumb of the generated pages to point to the App’s home page
Before NS:
* We’re calling setParent(“<app space>.WebHome”)
After NS (the problem!):
* We’re loosing the link to the app’s home page since the breadcrumb is currently using
references…
So the question is: how do we solve this use case?
I don’t have many answers. I can think of only 1 ATM:
* Keep the ability to set the parent in the Edit page UI
* When displaying the breadcrumb for a page, check if the page has specified a parent and
if so, uses it instead of the reference parent.
* Possibly remove the configuration option to disable parent/child relationship and always
use the parent when set, and the reference when not set up.
WDYT? Any idea for supporting this use case or for doing it differently?
Thanks
-Vincent