Hi there. I’m returning to XWiki use after several years away. Glad to be back… it’s obvious that a lot of work has gone into the platform.
As an administrator, I’m trying to create a template provider. When I create the provider, not all pages are listed in the dropdown box. I simply get a suggested name based on the provider name, and the pages from the Help section:
The page with reference XWiki.MyTestTemplate doesn’t exist
The page exists but it’s marked hidden and your user isn’t configured to display hidden pages
I’m leaning towards the second option. Could you check?
Note that I think we should probably improve this and force listing hidden pages in this picker since it’s a technical picker and it’s good that template pages are hidden.
Also note that if the template page is hidden you might hit Loading...
I don’t think that’s the cause. The first problem is that I only see pages listed from Help as possible templates to choose from. Your example shows Sandbox pages, etc. I suspect my problem is related to this filtering.
The page is definitely there and active. I’ll see about capturing a recording that demonstrates what I’m seeing.
The user account didn’t have the preference to show hidden pages, so you were right about that. However, the page isn’t hidden. Now, after setting it to show hidden pages, I only see the default template name and AnnotationCode.
Even if I go and edit one of the existing templates, I still only see pages from the Help section (I turned show hidden back off, so it no longer shows Annotation Code):
Ok, only displaying Help pages was a false alarm. If I erase everything out of the search and start typing, I can see others.
However, selecting any page still causes me to get:
Detailed information:
Error number 11001 in 3: Template document xwiki:Sandbox.Test2 does not exist when adding to document WebHome
com.xpn.xwiki.XWikiException: Error number 11001 in 3: Template document xwiki:Sandbox.Test2 does not exist when adding to document WebHome
at com.xpn.xwiki.doc.XWikiDocument.readFromTemplate(XWikiDocument.java:4506)