[xwiki-users] What is a quick way to know the reference to a wiki page so you can use the include macro with it?
Hi everyone, I have spent some time trying to use the Include macro without success. It requires a reference to the entity (e.g. document) that I want to be included, but it is not obvious how to correctly generate this reference value. Some guides say it should be in the form of . but where are spaces in XWiki? I know XWiki has subwikis but I don't see spaces anywhere. And I tried . too, to no avail. No errors were displayed either. Thanks! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] What is a quick way to know the reference to a wiki page so you can use the include macro with it?
Hi, > On 25 Nov 2016, at 09:18, Cuong Hoang wrote: > > Hi everyone, > > I have spent some time trying to use the Include macro without success. It > requires a reference to the entity (e.g. document) that I want to be > included, but it is not obvious how to correctly generate this reference > value. Some guides say it should be in the form of . name> but where are spaces in XWiki? I know XWiki has subwikis but I don't > see spaces anywhere. And I tried . too, to no > avail. No errors were displayed either. See https://www.xwiki.org/xwiki/bin/view/FAQ/How+can+I+get+the+reference+of+a+page Thanks -Vincent > Thanks! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Extension Release notes 1.3.1 : releasenotechanges macro
Hi Yann, > On 24 Nov 2016, at 14:23, Yann wrote: > > Hello, > > I am new to xwiki (though like it a lot already...), I have installed the > release notes extension (1.3.1) but I have a problem with the > {{releasenotechanges}} macro. I may not use it properly, but I can't get my > changes appear in the release note page. I changed the default macro to use > the {{changes...}} macro instead, and it works better (but i need to > manually enter the product, version etc...) which is less convenient. Yep that’s why I introduced that {{releasenotechanges}} indeed :) > Once again I think I may not be using the extension correctly, but if > someone could point me to the documentation that could help me understand > how it works it would be much appreciated. (of course i have read this page > http://extensions.xwiki.org/xwiki/bin/view/Extension/Release+Notes+Application/ > ) It’s probably not very clear but at http://extensions.xwiki.org/xwiki/bin/view/Extension/Release+Notes+Application/#HPrerequisites26InstallationInstructions there’s an explanation about how to install a Demo application using the Release Notes app. Could you try installing it and see if it helps? > Also is there a way to change the default template of the RN to adapt it to > different context (for instance different languages)? Good point. I haven’t implemented support for multilanguage release notes. You could open a jira at http://jira.xwiki.org/browse/RN (and provide a pull request if you know how to do that :)). The template can be configured (see http://extensions.xwiki.org/xwiki/bin/view/Extension/Release+Notes+Application/#HConfiguration) but this won’t work to dynamically decide what template to use based on various parameters. ATM of you want to do this, you’ll need to modify a page: ReleaseNotes.Code.HomeExistingReleaseNotes and modify the following lines: #set ($configDoc = $xwiki.getDocument("${topSpace}.Code.ReleaseNotesConfig")) #set ($defaultProduct = $configDoc.getValue('product')) #set ($defaultTemplateReferenceString = $configDoc.getValue('template')) If you compute the reference to the doc you wish to use as template in the variable $defaultTemplateReferenceString the rest should work fine. Thanks -Vincent > Regards, > > Yann > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] API/Scripting : create user and attach some files to its profile
Hi, I'm working on a registration system around xwiki. The basic workflow is the user is created in a LDAP directory at registration time. Then the user can login to xwiki. It's only upon the first successful login to xwiki that the user's xwiki profile is created in xwiki database. Now here is my point : how could I prepare the user profile *before* he gets connected ? For example I would be able to attach some files to XWiki. and why not some others attributes. Is anyone already achieved this ? Cheers ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Extension Release notes 1.3.1 : releasenotechanges macro
Hi Vincent, Thanks a lot for your answer. I was able to install the demo (through mvnrepository.com not through the extension manager but that was not a problem) and it works fine. The problem with my own RNs is that the {{releasenotechanges}} macro does not detect the changes or can't make the link between the changes I created and the release note, so I guess (I was convinced actually) that the macro works fine but that I do something wrong. In fact I don't understand what parameters the macro uses to link changes / RN. Playing with the demo Xwiki RNs, I was able to add changes that were immediatly displayed on the corresponding RN, but I noticed something weird when I displayed the object page for the RN and the changes : the version parameter is not the same... For the changes version = 8.3-rc-1 For the RN version = 8.3RC1 (I thought the link was made on the product + version parameters.) If I configure the version parameter for the change to 8.3RC1, the change won't show up in the RN (8.3RC1). If I revert back to 8.3-rc-1 it appears again. I think I am pretty close to the solution just need to know the right parameters for the link. Regarding multilanguage support, I am going to open a jira as soon as I can. For the last part I need to learn a little bit more about Xwiki but will definetely try it when I feel more confortable. Thanks again for your help, Yann On Fri, Nov 25, 2016 at 9:59 AM, Vincent Massol wrote: > Hi Yann, > > > On 24 Nov 2016, at 14:23, Yann wrote: > > > > Hello, > > > > I am new to xwiki (though like it a lot already...), I have installed the > > release notes extension (1.3.1) but I have a problem with the > > {{releasenotechanges}} macro. I may not use it properly, but I can't get > my > > changes appear in the release note page. I changed the default macro to > use > > the {{changes...}} macro instead, and it works better (but i need to > > manually enter the product, version etc...) which is less convenient. > > Yep that’s why I introduced that {{releasenotechanges}} indeed :) > > > Once again I think I may not be using the extension correctly, but if > > someone could point me to the documentation that could help me understand > > how it works it would be much appreciated. (of course i have read this > page > > http://extensions.xwiki.org/xwiki/bin/view/Extension/ > Release+Notes+Application/ > > ) > > It’s probably not very clear but at http://extensions.xwiki.org/ > xwiki/bin/view/Extension/Release+Notes+Application/# > HPrerequisites26InstallationInstructions there’s an explanation about how > to install a Demo application using the Release Notes app. > > Could you try installing it and see if it helps? > > > Also is there a way to change the default template of the RN to adapt it > to > > different context (for instance different languages)? > > Good point. I haven’t implemented support for multilanguage release notes. > You could open a jira at http://jira.xwiki.org/browse/RN (and provide a > pull request if you know how to do that :)). > > The template can be configured (see http://extensions.xwiki.org/ > xwiki/bin/view/Extension/Release+Notes+Application/#HConfiguration) but > this won’t work to dynamically decide what template to use based on various > parameters. > > ATM of you want to do this, you’ll need to modify a page: > ReleaseNotes.Code.HomeExistingReleaseNotes and modify the following lines: > > #set ($configDoc = $xwiki.getDocument("${topSpace}.Code. > ReleaseNotesConfig")) > #set ($defaultProduct = $configDoc.getValue('product')) > #set ($defaultTemplateReferenceString = $configDoc.getValue('template')) > > If you compute the reference to the doc you wish to use as template in the > variable $defaultTemplateReferenceString the rest should work fine. > > Thanks > -Vincent > > > Regards, > > > > Yann > > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] What is a quick way to know the reference to a wiki page so you can use the include macro with it?
I usually go to the page I need and view it and can get the info from the url, space/pagename at the end, of course replacing the / with a . for that macro. I don't know if that works on all setups of xwiki, but... Paul Pinkerton KnowledgeNow Project/ ACLCO -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: November-25-16 3:34 AM To: XWiki Users Subject: Re: [xwiki-users] What is a quick way to know the reference to a wiki page so you can use the include macro with it? Hi, > On 25 Nov 2016, at 09:18, Cuong Hoang wrote: > > Hi everyone, > > I have spent some time trying to use the Include macro without > success. It requires a reference to the entity (e.g. document) that I > want to be included, but it is not obvious how to correctly generate > this reference value. Some guides say it should be in the form of > . name> but where are spaces in XWiki? I know XWiki has subwikis but I > name> don't > see spaces anywhere. And I tried . too, > to no avail. No errors were displayed either. See https://www.xwiki.org/xwiki/bin/view/FAQ/How+can+I+get+the+reference+of+a+page Thanks -Vincent > Thanks! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users