Actually, the warning message is a bit misleading (my bad).. It would only give the #else if you don't have an assigned app or topic querystring (you may need to add checks to ensure they're non-empty as well). You could change the #else to show an index of existing help pages, this way you have an easy index to return to (and would be linked to the help topic in question). In terms of automatic topic creating options (if the user has permissions on the space used), this is already taken care of based on how xwiki works (when you try and access a document and/or space that does not exist, you will get an xwiki page warning you that the document does not exist and the option to create it). Either way, a change would be added to the script like so (to prevent blank document+blank space): Example code for the "launch.help" page #if(($request.app && "" != $request.app) && ($request.topic && "" != $request.topic)) #set($helpApp=$request.app) #set($helpTopic=$request.topic) #set($openDocName="${helpApp}.${helpTopic}") #set($newDoc=$xwiki.getDocument($openDocName)) $response.sendRedirect($xwiki.getURL($newDoc.fullName)) #else #warning("An invalid topic and/or application was selected.") #end -----Original Message----- From: RonaldH [mailto:[email protected]] Sent: 12 April 2007 16:19 To: [email protected] Subject: [xwiki-users] RE: xwiki as help system and external mappings Hmm I think I understand what you mean, or hope I do. The only question that now remains is that you state that I should create a new page per help item. If you mean by this that I should know all the urls in advance and create those pages for it, thats the route I dont want to go, since I dont know all the urls yet in advance and I dont want to maintain all the urls and mappings to the xwiki. I would rather feed xwiki a parameter for a specific topic/url and if that does not exist ask the user to create a help page for this (if allowed to create help that is of course). Regards Ronald Esbach, Brandon wrote:
Create a new page "launch.help". Create a new page per help item and application, eg: "mynewapp.createusers" "mynewapp.creategroups"
-- View this message in context: http://www.nabble.com/xwiki-as-help-system-and-external-mappings-tf35656 07.html#a9961571 Sent from the XWiki- Users mailing list archive at Nabble.com.