Re: [xwiki-users] Databasetree seems to be missing
On 18 Sep 2015 at 11:10:44, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: > Hi Marius, > > On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea > (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote: > > > You'll have to customize the Field Palette for this, as documented on > > http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1 > > , in the App Within Minutes documentation. > > There’s something I don’t understand. I tried on a XWiki 7.2RC1 version and I > have the Database List field type listed in the AWM palette. > > Why would Gus not see it in this palette? s/this/his/ Thanks -Vincent > Thanks > -Vincent > > > > > Hope this helps, > > Marius > > > > On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope > > wrote: > > > Sorry I cut and paste from the rejection message I got! DOH! > > > > > > So I am trying to do a "app in minutes" and use database tree as a field > > > but > > > it is not in the field pallet to drag and drop, yet if I edit the class I > > > can manually add it in but then I get a ton of errors. What do I need to > > > do > > > to enable it so it shows up on the field pallet (again, I am assuming > > > under > > > Database List in the advanced section). > > > > > > Thanks > > > > > > > > > > > > > > > > > > -- > > > View this message in context: > > > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Databasetree seems to be missing
On 18 Sep 2015 at 11:29:53, Marius Dumitru Florea (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote: > On Fri, Sep 18, 2015 at 12:11 PM, vinc...@massol.net wrote: > > > > On 18 Sep 2015 at 11:10:44, vinc...@massol.net > > (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: > > > >> Hi Marius, > >> > >> On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea > >> (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) > >> wrote: > >> > >> > You'll have to customize the Field Palette for this, as documented on > >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1 > >> > , in the App Within Minutes documentation. > >> > >> There’s something I don’t understand. I tried on a XWiki 7.2RC1 version > >> and I have the Database List field type listed in the AWM palette. > >> > > >> Why would Gus not see it in this palette? > > Because he's referring to the Database Tree :) ok that explains it ;) Thanks -Vincent > > s/this/his/ > > > > Thanks > > -Vincent > > > >> Thanks > >> -Vincent > >> > >> > > >> > Hope this helps, > >> > Marius > >> > > >> > On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope > >> > wrote: > >> > > Sorry I cut and paste from the rejection message I got! DOH! > >> > > > >> > > So I am trying to do a "app in minutes" and use database tree as a > >> > > field but > >> > > it is not in the field pallet to drag and drop, yet if I edit the > >> > > class I > >> > > can manually add it in but then I get a ton of errors. What do I need > >> > > to do > >> > > to enable it so it shows up on the field pallet (again, I am assuming > >> > > under > >> > > Database List in the advanced section). > >> > > > >> > > Thanks > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > -- > >> > > View this message in context: > >> > > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Databasetree seems to be missing
You'll have to customize the Field Palette for this, as documented on http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1 , in the App Within Minutes documentation. Hope this helps, Marius On Thu, Sep 17, 2015 at 8:58 PM, HadleysHopewrote: > Sorry I cut and paste from the rejection message I got! DOH! > > So I am trying to do a "app in minutes" and use database tree as a field but > it is not in the field pallet to drag and drop, yet if I edit the class I > can manually add it in but then I get a ton of errors. What do I need to do > to enable it so it shows up on the field pallet (again, I am assuming under > Database List in the advanced section). > > Thanks > > > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > ___ > 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
Re: [xwiki-users] Migration away from TikiWiki - Forms based question.
Hi, On 17 Sep 2015 at 18:36:28, HadleysHope (justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com)) wrote: > Ok so I have been away and run through the FAQ tutorial. I have to say the > app in minutes is by far the easiest way to do it, I honestly started to > loose the will to live running through the other method, I can see that > xwiki is incredibly incredibly powerful in its flexibility in that way but > am glad there is another way to get things done because the learning curve > would otherwise be too steep for us to consider using xwiki. > > Ok, so I have manged to create two new apps one contains states and cities > i.e. > > Washington, Tacoma > Washington, Seattle > Texas,Houston > Taxas,Dallas > Kansas,Wichita > > And one that references the values stored in the first. My question is, is > there a way, without coding, that I can select "Washington" in one field and > it only displays the cities in Washington in another field. > > With Tiki this is accomplished with something called "Dynamic Lists" where > it looks at a field (linked, remote) to then populate a list based on > another (remote) field. I think we’re missing a good tutorial to explain how to do this. I’ll see what I can do. I’ll also check if I can quickly come up with an extension to make this simpler by adding a custom type in the AWM palette. FTR here’s what it means: * Create a first app to enter the data (city + state), using 2 fields. Either by using Strings or Static Lists. * Populate this first app by creating the 5 entries you have listed above * Create a second app with a “State” field of type DBList and use the class and field of the first app. Note: do not create a second “City” field * Edit the AWM-generated Class Sheet to add logic to generate the “City” field in the HTML form. Write some JS to get the value entered in the “State” field and do a backend REST query passing the state value (and make it return JSON data). Then generate the s of the based on the returned JSON. Also note that all this logic can be encapsulated in a new custom type for the Palette by using the custom displayer field (which you can’t see in the AWM app since it’s a very advanced field. You need to be in the standard Class editor to see it). So if I can succeed in coding this, I could publish this as an extension on extensions.xwiki.org and you’d be able to install it directly in your wiki using the Extension Manager. I just need to find a few hours to do this ;) (will try). Hope it helps, -Vincent > Thanks again for your help. > > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596044.html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Migration away from TikiWiki - Forms based question.
Sorry looks like I misread your last message, I did not understood you already did that part (thanks Vincent for the explanation). For the second part (field "pre-filter" by first field) I don't think HQL request will be enough and you will probably have to do your own custom displayer for it. On Fri, Sep 18, 2015 at 9:45 AM, Thomas Mortagnewrote: > http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application > use this a lot. For example each type of extension has it's own object > with various information and documentation associated to the type and > then in the extension class (ExtensionCode.ExtensionClass) the "type" > field is a database list linked to class > "ExtensionCode.ExtensionTypeClass" and field "id", no HQL request > involved (it's a bit like defining a foreign key in a database). > > On Fri, Sep 18, 2015 at 9:40 AM, Thomas Mortagne > wrote: >> HQL is just the last resort. As I indicated in my previous message in >> your case you can simply indicate the class and the field of the other >> kind of object where you want to look for possible values to select in >> your database list field. >> >> On Thu, Sep 17, 2015 at 9:48 PM, HadleysHope >> wrote: >>> Thomas, do you think I would need to use a HQL query to do this? do you know >>> of any examples I might look at for querying other fields to perform the >>> filter? I am entirely unfamiliar with HQL and as of right now struggling not >>> to just uninstall this and move on. >>> >>> >>> >>> -- >>> View this message in context: >>> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596051.html >>> Sent from the XWiki- Users mailing list archive at Nabble.com. >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >> >> >> >> -- >> Thomas Mortagne > > > > -- > Thomas Mortagne -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Databasetree seems to be missing
On Fri, Sep 18, 2015 at 12:11 PM, vinc...@massol.netwrote: > > On 18 Sep 2015 at 11:10:44, vinc...@massol.net > (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: > >> Hi Marius, >> >> On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea >> (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) >> wrote: >> >> > You'll have to customize the Field Palette for this, as documented on >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1 >> > , in the App Within Minutes documentation. >> >> There’s something I don’t understand. I tried on a XWiki 7.2RC1 version and >> I have the Database List field type listed in the AWM palette. >> >> Why would Gus not see it in this palette? Because he's referring to the Database Tree :) > > s/this/his/ > > Thanks > -Vincent > >> Thanks >> -Vincent >> >> > >> > Hope this helps, >> > Marius >> > >> > On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope >> > wrote: >> > > Sorry I cut and paste from the rejection message I got! DOH! >> > > >> > > So I am trying to do a "app in minutes" and use database tree as a field >> > > but >> > > it is not in the field pallet to drag and drop, yet if I edit the class I >> > > can manually add it in but then I get a ton of errors. What do I need to >> > > do >> > > to enable it so it shows up on the field pallet (again, I am assuming >> > > under >> > > Database List in the advanced section). >> > > >> > > Thanks >> > > >> > > >> > > >> > > >> > > >> > > -- >> > > View this message in context: >> > > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html >> > ___ > 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
Re: [xwiki-users] Migration away from TikiWiki - Forms based question.
HQL is just the last resort. As I indicated in my previous message in your case you can simply indicate the class and the field of the other kind of object where you want to look for possible values to select in your database list field. On Thu, Sep 17, 2015 at 9:48 PM, HadleysHopewrote: > Thomas, do you think I would need to use a HQL query to do this? do you know > of any examples I might look at for querying other fields to perform the > filter? I am entirely unfamiliar with HQL and as of right now struggling not > to just uninstall this and move on. > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596051.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XAR
Hi Eduard, Thanks for the explanation and the links. I am not looking for the Java way since we already have a XML exporter in place that is exporting the information in our environment (which is heavily object based) in a way that can be used by third parties. This is the way we are looking for a more final solution. We were looking for an easy and quick (intermediate) solution to bridge the gap so to speak. The strange thing is, that I use google to search extensively for things before i ask for info in this group. I was somewhat surprised to see the link (no 7) which is exactly what I needed! I thank you again for the help and I’m sorry that I have not been able to find it myself. Br, Peter > Hi Peter, > > Of course, though you might want to think a bit on the approach. > > 1) If you want to do it in XWiki using the scheduler plugin, you have to > write some groovy script [1] in the scheduled task that you create in order > to use the filter module [2] (or the old packager module [3], whichever you > choose) in order to export the pages you are interested in and save the > result (on the filesystem or as an attachment in a page). > > As inspiration, you could check out the source code (in java) of the export > action [4] which is exactly what is going on when you are exporting a page > from the UI. > > 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux > machine (possible the same one running the XWiki instance) and have that > task simply download (using something like cURL [6]) the result of a > manually crafter export URL (as detailed in our documentation [7]) > containing the list of pages to export. > > Hope this helps, > Eduard > > -- > [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting > [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module > [3] > https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java > [4] > https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244 > [5] https://en.wikipedia.org/wiki/Cron > [6] https://en.wikipedia.org/wiki/CURL > [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport > > > On Thu, Sep 17, 2015 at 3:49 PM, Peter Huismanwrote: > >> Hi, >> >> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m >> not looking for a DB based backup but merely for a backup of spaces / pages. >> >> With kind regards, >> >> Peter >> ___ >> 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
[xwiki-users] Reading Date Property
I am having trouble getting custom properties from a user profile. I have added a property of type String called "Code" {{velocity}} #set($fn= $userObj.getXWikiObject().get("first_name").value) $fn #set($c= $userObj.getXWikiObject().get("Code").value) $c {{/velocity}} When the code runs it displays Jeff $c If I go to the user profile the property Code has a value. I have checked the capitalization and it is correct. What is the correct way of doing this? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Migration away from TikiWiki - Forms based question.
Thanks so much for your help with this :) -- View this message in context: http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596079.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XAR
Hi, Glad to be able to help :) On Fri, Sep 18, 2015 at 11:10 AM, Peter Huismanwrote: > Hi Eduard, > > Thanks for the explanation and the links. > > I am not looking for the Java way since we already have a XML exporter in > place that is exporting the information in our environment (which is > heavily object based) in a way that can be used by third parties. This is > the way we are looking for a more final solution. We were looking for an > easy and quick (intermediate) solution to bridge the gap so to speak. > > The strange thing is, that I use google to search extensively for things > before i ask for info in this group. I was somewhat surprised to see the > link (no 7) which is exactly what I needed! I thank you again for the help > and I’m sorry that I have not been able to find it myself. > We always are in need of and appreciate any help on the documentation side. If you feel you could add anything that could make it easier to understand or even easier to find on a Google search, please go ahead. It`s a wiki and you are welcomed to edit away :) Thanks, Eduard > > Br, > > Peter > > > Hi Peter, > > > > Of course, though you might want to think a bit on the approach. > > > > 1) If you want to do it in XWiki using the scheduler plugin, you have to > > write some groovy script [1] in the scheduled task that you create in > order > > to use the filter module [2] (or the old packager module [3], whichever > you > > choose) in order to export the pages you are interested in and save the > > result (on the filesystem or as an attachment in a page). > > > > As inspiration, you could check out the source code (in java) of the > export > > action [4] which is exactly what is going on when you are exporting a > page > > from the UI. > > > > 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux > > machine (possible the same one running the XWiki instance) and have that > > task simply download (using something like cURL [6]) the result of a > > manually crafter export URL (as detailed in our documentation [7]) > > containing the list of pages to export. > > > > Hope this helps, > > Eduard > > > > -- > > [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting > > [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module > > [3] > > > https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java > > [4] > > > https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244 > > [5] https://en.wikipedia.org/wiki/Cron > > [6] https://en.wikipedia.org/wiki/CURL > > [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport > > > > > > On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman > wrote: > > > >> Hi, > >> > >> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m > >> not looking for a DB based backup but merely for a backup of spaces / > pages. > >> > >> With kind regards, > >> > >> Peter > >> ___ > >> 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 > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Using LDAP for page access rights with Kerberos auth
If you have an authenticator in front of XWiki that populate the REMOTE_USER request property you could use http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Trusted+LDAP which has been designed specifically for this use case. On Fri, Sep 18, 2015 at 3:05 AM, Debajit Adhikarywrote: > I have an XWiki setup that uses Kerberos for authentication. > > I would like to continue using Kerberos, but use LDAP groups for > controlling page access rights. > > How could I do this? > > (If you could point me in the right direction, or to any appropriate > documentation, that would be a big help) > > Thanks in advance > —Debajit > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Databasetree seems to be missing
Hi Marius, On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote: > You'll have to customize the Field Palette for this, as documented on > http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1 > , in the App Within Minutes documentation. There’s something I don’t understand. I tried on a XWiki 7.2RC1 version and I have the Database List field type listed in the AWM palette. Why would Gus not see it in this palette? Thanks -Vincent > > Hope this helps, > Marius > > On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope > wrote: > > Sorry I cut and paste from the rejection message I got! DOH! > > > > So I am trying to do a "app in minutes" and use database tree as a field but > > it is not in the field pallet to drag and drop, yet if I edit the class I > > can manually add it in but then I get a ton of errors. What do I need to do > > to enable it so it shows up on the field pallet (again, I am assuming under > > Database List in the advanced section). > > > > Thanks > > > > > > > > > > > > -- > > View this message in context: > > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Migration away from TikiWiki - Forms based question.
http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application use this a lot. For example each type of extension has it's own object with various information and documentation associated to the type and then in the extension class (ExtensionCode.ExtensionClass) the "type" field is a database list linked to class "ExtensionCode.ExtensionTypeClass" and field "id", no HQL request involved (it's a bit like defining a foreign key in a database). On Fri, Sep 18, 2015 at 9:40 AM, Thomas Mortagnewrote: > HQL is just the last resort. As I indicated in my previous message in > your case you can simply indicate the class and the field of the other > kind of object where you want to look for possible values to select in > your database list field. > > On Thu, Sep 17, 2015 at 9:48 PM, HadleysHope > wrote: >> Thomas, do you think I would need to use a HQL query to do this? do you know >> of any examples I might look at for querying other fields to perform the >> filter? I am entirely unfamiliar with HQL and as of right now struggling not >> to just uninstall this and move on. >> >> >> >> -- >> View this message in context: >> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596051.html >> Sent from the XWiki- Users mailing list archive at Nabble.com. >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users > > > > -- > Thomas Mortagne -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users