Re: [xwiki-users] SH/BAT file plugin
To achieve this I would create an xwiki class shellscript that contains a single field, named shcode which is pure text. Then I would create velocity script that dispalys the page or downloads the code based on some http servlet $request parameters. I would not try to dig out the shell code from the wiki page. Note that you can access the servlet request as well as response object so you can make downloading just anything, not only text/html. Regards Peter Verhás Péter +36(30)9306805 pe...@verhas.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] link to headlines xwiki1.7
Hi folks, i've heard that in xwiki 1.7 it is possible to link to headlines in other xwiki documents. is this information correct? i am trying to figure this out. the only way i found, is to manually attach an anchor to a headline and append this #anchorname at the end of the link to the file. is there any change in 1.7 of an comfortable way to do this? in the doc i found this: anchor: An optional anchor name pointing to an anchor defined in the referenced link. Note that in XWiki anchors are automatically created for titles. Example: TableOfContentAnchor. unfortunately there are no anchors automatically created for titels (btw toc isn't working, is this a hint what causes this?) I use a fresh new xwiki war deployed to a tomcat (using an old xwiki database 1.1.2.5797 with mysql) best regards ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] link to headlines xwiki1.7
Hi Dustin, On Jan 12, 2009, at 10:57 AM, Dustin Bensing wrote: Hi folks, i've heard that in xwiki 1.7 it is possible to link to headlines in other xwiki documents. is this information correct? i am trying to figure this out. the only way i found, is to manually attach an anchor to a headline and append this It's always been possible to link to a section header even in past versions since our headers automatically generate anchors. All you need to do is find the anchor's name. The rule is: H followed by the header without spaces. For example if you have: 1.1 Project List that'll generate an anchor named HProjectList. You can view source in your browse to see the generated anchors if you need to. So linking to it from another page would be: [labelSpace.Page#HProjectList] #anchorname at the end of the link to the file. is there any change in 1.7 of an comfortable way to do this? in the doc i found this: anchor: An optional anchor name pointing to an anchor defined in the referenced link. Note that in XWiki anchors are automatically created for titles. Example: TableOfContentAnchor. unfortunately there are no anchors automatically created for titels (btw toc isn't working, is this a hint what causes this?) I use a fresh new xwiki war deployed to a tomcat (using an old xwiki database 1.1.2.5797 with mysql) best regards ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [myxwiki] XWiki Enterprise 1.7.1 Upgrade
Hello, The myxwiki.org server has been upgraded to XE 1.7.1, if you own a wiki hosted there you should have a look at : http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise171 We also recommend you upgrade to the latest wiki version. To upgrade you must download the last XWiki XAR from : http://www.xwiki.org/xwiki/bin/view/Main/Download And follow the upgrade guide available at : http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments Thanks, JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki Enterprise Manager
Hello, I'm using XWEM 1.3 RC1 (based on XE 1.5). I have now time to update our wikis, but I don't see recent updates of Enterprise Manager. Is there any reason ? Gaëtan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [myxwiki] XWiki Enterprise 1.7.1 Upgrade
Thanks, but I tried to say that XE stable version is now 1.7.1, but XEM satble version is still 1.4.1, based on XE 1.6.2. Is there a XEM based on 1.7.1 ? I didn't found it. XEM isn't maintained any more ? I'm sorry, I just don't know. Jean-Vincent Drean a écrit : Hello, The myxwiki.org server has been upgraded to XE 1.7.1, if you own a wiki hosted there you should have a look at : http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise171 We also recommend you upgrade to the latest wiki version. To upgrade you must download the last XWiki XAR from : http://www.xwiki.org/xwiki/bin/view/Main/Download And follow the upgrade guide available at : http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments Thanks, JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- __ Gaëtan GUYODO Chargé de mission Centre Antipoison - Hôpital Fernand WIDAL 200, rue du faubourg St Denis 75475 PARIS Cedex 10 Tél: 01 40 05 49 63 / Fax: 01 40 05 48 56 __ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [myxwiki] XWiki Enterprise 1.7.1 Upgrade
Hi Gaetan, On Jan 12, 2009, at 11:30 AM, Gaëtan GUYODO wrote: Thanks, but I tried to say that XE stable version is now 1.7.1, but XEM satble version is still 1.4.1, based on XE 1.6.2. Is there a XEM based on 1.7.1 ? I didn't found it. XEM isn't maintained any more ? I'm sorry, I just don't know. It definitely is. A new version based on 1.7.1 will be out soon. That said you can easily install XE 1.7.1 and transform it into a XEM: http://manager.xwiki.org/xwiki/bin/view/AdminGuide/Installation Jean-Vincent Drean a écrit : Hello, The myxwiki.org server has been upgraded to XE 1.7.1, if you own a wiki hosted there you should have a look at : http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise171 We also recommend you upgrade to the latest wiki version. To upgrade you must download the last XWiki XAR from : http://www.xwiki.org/xwiki/bin/view/Main/Download And follow the upgrade guide available at : http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments Thanks, JV. Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] link to headlines xwiki1.7
Hi Vincent thanks for your reply!first time i read your mail i thought you havn't really read my mail :) but after a while i tried your For example if you have: 1.1 Project List interestingly there is a http://www.dict.cc/englisch-deutsch/interestingly.htmldifference in creating title1, title2 .. etc for headlines in the WYSIWYG editor or using the headline notation in the WIKI editor as you mentioned. the difference is that only the headline notation creates automatically anchors and then appears in the table of contetn. is there a http://www.dict.cc/englisch-deutsch/difference.htmlpossibility to make these real headlines in the WYSIWYG editor?http://www.dict.cc/englisch-deutsch/possibility.html beste regards ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki Enterprise Manager
Hi, Where are you looking ? I can see 1.3 and 1.4.1 in http://www.xwiki.org/xwiki/bin/view/Main/Download On Mon, Jan 12, 2009 at 10:29 AM, Gaëtan GUYODO gaetan.guy...@lrb.aphp.fr wrote: Hello, I'm using XWEM 1.3 RC1 (based on XE 1.5). I have now time to update our wikis, but I don't see recent updates of Enterprise Manager. Is there any reason ? Gaëtan ___ 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] XWiki Enterprise Manager
On Mon, Jan 12, 2009 at 11:47 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: Hi, Where are you looking ? I can see 1.3 and 1.4.1 in http://www.xwiki.org/xwiki/bin/view/Main/Download Also we are releasing XEM 1.5 (based on 1.7.1) today. On Mon, Jan 12, 2009 at 10:29 AM, Gaëtan GUYODO gaetan.guy...@lrb.aphp.fr wrote: Hello, I'm using XWEM 1.3 RC1 (based on XE 1.5). I have now time to update our wikis, but I don't see recent updates of Enterprise Manager. Is there any reason ? Gaëtan ___ 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
Re: [xwiki-users] XWiki Enterprise Manager
Thanks, that's this one (1.5) I'm waiting for... thanks again for your work ! Gaëtan Thomas Mortagne a écrit : On Mon, Jan 12, 2009 at 11:47 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: Hi, Where are you looking ? I can see 1.3 and 1.4.1 in http://www.xwiki.org/xwiki/bin/view/Main/Download Also we are releasing XEM 1.5 (based on 1.7.1) today. On Mon, Jan 12, 2009 at 10:29 AM, Gaëtan GUYODO gaetan.guy...@lrb.aphp.fr wrote: Hello, I'm using XWEM 1.3 RC1 (based on XE 1.5). I have now time to update our wikis, but I don't see recent updates of Enterprise Manager. Is there any reason ? Gaëtan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne -- __ Gaëtan GUYODO Chargé de mission Centre Antipoison - Hôpital Fernand WIDAL 200, rue du faubourg St Denis 75475 PARIS Cedex 10 Tél: 01 40 05 49 63 / Fax: 01 40 05 48 56 __ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [myxwiki] XWiki Enterprise 1.7.1 Upgrade
Thanks Vincent, I was just surprised not to find a recent released, and not to see XEM into Jira calendar... But I know now you're still maintaining XEM. Gaëtan Vincent Massol a écrit : Hi Gaetan, On Jan 12, 2009, at 11:30 AM, Gaëtan GUYODO wrote: Thanks, but I tried to say that XE stable version is now 1.7.1, but XEM satble version is still 1.4.1, based on XE 1.6.2. Is there a XEM based on 1.7.1 ? I didn't found it. XEM isn't maintained any more ? I'm sorry, I just don't know. It definitely is. A new version based on 1.7.1 will be out soon. That said you can easily install XE 1.7.1 and transform it into a XEM: http://manager.xwiki.org/xwiki/bin/view/AdminGuide/Installation Jean-Vincent Drean a écrit : Hello, The myxwiki.org server has been upgraded to XE 1.7.1, if you own a wiki hosted there you should have a look at : http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise171 We also recommend you upgrade to the latest wiki version. To upgrade you must download the last XWiki XAR from : http://www.xwiki.org/xwiki/bin/view/Main/Download And follow the upgrade guide available at : http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments Thanks, JV. Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- __ Gaëtan GUYODO Chargé de mission Centre Antipoison - Hôpital Fernand WIDAL 200, rue du faubourg St Denis 75475 PARIS Cedex 10 Tél: 01 40 05 49 63 / Fax: 01 40 05 48 56 __ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Scripting issue - xwiki
Hi I wander if anyone can help. I have found a discussion on IRC between users asyd and lucaa but the was no answer to the problem. I have two Groovy Classes saved as two pages page1 and page2. I also have some scripting outside class in page1. So page1 class requires an instance of page2 class and I use xwiki.parseGroovyFromPage(somespace.page2) which works fine until I introduce a third page / script called page3. In page3 I use xwiki.parseGroovyFromPage(somespace.page1) REMEMBER: page1 also uses parseGroovyFromPage to call page2. I get NullPinterException when page1 class tries to access a method of page2 class. I then tried to create an instance of page1 and page 2 classes in my page3 script then pass page2 instance as parameter to page1 but still the same error. Is there any way around this except putting all content (page1 and page2) into one class? I would really appreciate some feedback. If you require the code to be sent I'll gladly do that. Thanks Ajdin B. NOTICE This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee. Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Scripting issue - xwiki
Hi again My problem was that in my Velocity script (page3) I forgot to add $ in front of some variable names (Groovy doesn't use $) so the real values were not passed across correctly and the object was not created correctly therefore NullPointerException (Null Pointer Exception). Anyway, for those who get stuck like me, this is the correct way to include groovy class within another groovy class. Velocity script : #set($wsd = $xwiki.parseGroovyFromPage(GroovyScripts.Class1)) #set($discard2 = $wsd.setXWiki($xwiki, $context)); Groovy Class1: def groovyHTTP = xwiki.parseGroovyFromPage(GroovyScripts.Class2); //then groovyHTTP.someMethod(someParam); Groovy Class2: //some methods * Some tags: Include groovy class in velocity script, pass value from velocity to groovy * Ajdin -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Ajdin Brandic Sent: 12 January 2009 13:50 To: XWiki Users Subject: [xwiki-users] Scripting issue - xwiki Hi I wander if anyone can help. I have found a discussion on IRC between users asyd and lucaa but the was no answer to the problem. I have two Groovy Classes saved as two pages page1 and page2. I also have some scripting outside class in page1. So page1 class requires an instance of page2 class and I use xwiki.parseGroovyFromPage(somespace.page2) which works fine until I introduce a third page / script called page3. In page3 I use xwiki.parseGroovyFromPage(somespace.page1) REMEMBER: page1 also uses parseGroovyFromPage to call page2. I get NullPinterException when page1 class tries to access a method of page2 class. I then tried to create an instance of page1 and page 2 classes in my page3 script then pass page2 instance as parameter to page1 but still the same error. Is there any way around this except putting all content (page1 and page2) into one class? I would really appreciate some feedback. If you require the code to be sent I'll gladly do that. Thanks Ajdin B. NOTICE This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee. Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University. ___ 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] [ANN] XWiki Enterprise Manager 1.5 released
The XWiki development team is pleased to announce the release of XWiki Enterprise Manager 1.5. This release is based on XWiki Enterprise 1.7.1. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM15 Thanks -The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Scripting issue - xwiki
Glad you found the answer and thanks for posting the solution. -Vincent On Jan 12, 2009, at 3:37 PM, Ajdin Brandic wrote: Hi again My problem was that in my Velocity script (page3) I forgot to add $ in front of some variable names (Groovy doesn't use $) so the real values were not passed across correctly and the object was not created correctly therefore NullPointerException (Null Pointer Exception). Anyway, for those who get stuck like me, this is the correct way to include groovy class within another groovy class. Velocity script : #set($wsd = $xwiki.parseGroovyFromPage(GroovyScripts.Class1)) #set($discard2 = $wsd.setXWiki($xwiki, $context)); Groovy Class1: def groovyHTTP = xwiki.parseGroovyFromPage(GroovyScripts.Class2); //then groovyHTTP.someMethod(someParam); Groovy Class2: //some methods * Some tags: Include groovy class in velocity script, pass value from velocity to groovy * Ajdin -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Ajdin Brandic Sent: 12 January 2009 13:50 To: XWiki Users Subject: [xwiki-users] Scripting issue - xwiki Hi I wander if anyone can help. I have found a discussion on IRC between users asyd and lucaa but the was no answer to the problem. I have two Groovy Classes saved as two pages page1 and page2. I also have some scripting outside class in page1. So page1 class requires an instance of page2 class and I use xwiki.parseGroovyFromPage(somespace.page2) which works fine until I introduce a third page / script called page3. In page3 I use xwiki.parseGroovyFromPage(somespace.page1) REMEMBER: page1 also uses parseGroovyFromPage to call page2. I get NullPinterException when page1 class tries to access a method of page2 class. I then tried to create an instance of page1 and page 2 classes in my page3 script then pass page2 instance as parameter to page1 but still the same error. Is there any way around this except putting all content (page1 and page2) into one class? I would really appreciate some feedback. If you require the code to be sent I'll gladly do that. Thanks Ajdin B. NOTICE This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee. Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University. Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] New xwiki user looking for some guidance...
Hi all, First, I'm a total wiki newb. I've been tasked with evaluating xwiki for use by the state agency I work for in order to determine whether or not xwiki can meet our needs as a means to share information both internally and externally. From my initial poking around it looks like xwiki will be fairly easy to work with once I've had the opportunity to wrap my head around some of the seemingly less documented pieces like the Object model and development process. My first task is to replace a set of existing FAQs that have been done with static HTML files. I've worked through the FAQ tutorial but my needs are a bit more extensive and I'm not sure exactly how to modify the example to meet these needs. Here are the main requirements I'm needing to address: 1) Support for Categories and Sub-Categories for questions. Used for displaying questions grouped by sub-category within each of the main Categories. Would this just be a matter of adding a category property to my FAQ class? How would I then access the full list of Categories from the main space in order to link to each set of FAQs? 2) Within each Category (I figured I'd create each main category as a new Space) support for specifying certain users who can add new Questions and Answers. I think I kind of have an idea on how to do this using the user/group frameworks. I just wanted to get an idea of whether this sort of restriction is doable within the existing rights system. 3) Creation of global template for creating/editing and viewing FAQ entries. This is similar to the FAQ tutorial with a main difference being the ability to specify an existing sub-category or to create a new sub-category for the main category the user has permission to create questions/answers for. 4) Main space that acts as a sort of jumping off point for the FAQs. Contains links to all of the main FAQ categories and possibly some general information about submitting new questions and such. I figured I would create a main space and have the re-usable objects defined in it and then have a single page that acts as the entry point to the FAQs. Are there docs for the xwiki object model? How can I find out what properties and methods are available on xwiki objects? Are there docs that explain how to use velocity scripting to do custom queries to retrieve the data to be displayed in a given page? - Does this all seem doable in the xwiki system? Does it make sense to develop each major category of FAQ as a Space within the wiki? I'm doing this mainly because of the editing restrictions, is it necessary? Can someone provide a general idea of how I might go about creating this FAQ system that allows questions to be categorized and then fetched/displayed by Category/Sub-Category?!? Thanks!! Kevin Cummings -- View this message in context: http://n2.nabble.com/New-xwiki-user-looking-for-some-guidance...-tp2146187p2146187.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
[xwiki-users] XWiki+JBoss+SSO Kerberos (Active Directory) on Windows Server 2003
Hi guys, I'm very enthusiastic about getting everything out of the XWiki environment I'm about to set up for my company. As a matter of fact, right now I'm thinking about the best solution for getting Kerberos authentication/authorization to work as all 12000 employees are already part of the company's Active Directory. I've read the XWiki article about Auth issues and am now thinking about what would be the best/easiest/strongest solution. The solution mentioned in the Wiki wants to use Apache Webserver mit mod_auth_kerb. As for now, I did not succeed in building a working mod_auth_kerb module for Win32, which somehow disencourages me to follow this suggestion. Anyway I wonder, whether I would only be able to authenticate users or whether there would be a way to have XWikis builtin auth features cooperate with the Kerberos mechanism. The I just came across josso which seems to a framework which can be deployed into a JBoss Application Server and work as an authentication gateway to any josso-enabled applications running on JBoss. Is XWiki capable of doing this? And the question about XWikis auth mechanism from before remains. Any other suggestions and hints for such are scenario from you guys are highly appreciated , since the whole AD/Kerberos/JBoss stuff is rather new to me. Again, many thanx in advance for any potential reply on this, it's really important to me. Cheers, Sebastian ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki+JBoss+SSO Kerberos (Active Directory) on Windows Server 2003
Hi, If you setup an authentication which correctly sets the REMOTE_USER field then you should be able to use it with XWiki. You can then use the AppServerTrustedAuthentication module to accept your user and create it's user page. You can activate it using this in xwiki.cfg xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.AppServerTrustedAuthServiceImpl Implementing XWiki in Kerberos itself is a lot of work and not really usefull since you can have it in Apache or the App server. Ludovic Sebastian Kannengiesser a écrit : Hi guys, I'm very enthusiastic about getting everything out of the XWiki environment I'm about to set up for my company. As a matter of fact, right now I'm thinking about the best solution for getting Kerberos authentication/authorization to work as all 12000 employees are already part of the company's Active Directory. I've read the XWiki article about Auth issues and am now thinking about what would be the best/easiest/strongest solution. The solution mentioned in the Wiki wants to use Apache Webserver mit mod_auth_kerb. As for now, I did not succeed in building a working mod_auth_kerb module for Win32, which somehow disencourages me to follow this suggestion. Anyway I wonder, whether I would only be able to authenticate users or whether there would be a way to have XWikis builtin auth features cooperate with the Kerberos mechanism. The I just came across josso which seems to a framework which can be deployed into a JBoss Application Server and work as an authentication gateway to any josso-enabled applications running on JBoss. Is XWiki capable of doing this? And the question about XWikis auth mechanism from before remains. Any other suggestions and hints for such are scenario from you guys are highly appreciated , since the whole AD/Kerberos/JBoss stuff is rather new to me. Again, many thanx in advance for any potential reply on this, it's really important to me. Cheers, Sebastian ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] New xwiki user looking for some guidance...
Kevin_C a écrit : Hi all, First, I'm a total wiki newb. I've been tasked with evaluating xwiki for use by the state agency I work for in order to determine whether or not xwiki can meet our needs as a means to share information both internally and externally. From my initial poking around it looks like xwiki will be fairly easy to work with once I've had the opportunity to wrap my head around some of the seemingly less documented pieces like the Object model and development process. My first task is to replace a set of existing FAQs that have been done with static HTML files. I've worked through the FAQ tutorial but my needs are a bit more extensive and I'm not sure exactly how to modify the example to meet these needs. Here are the main requirements I'm needing to address: 1) Support for Categories and Sub-Categories for questions. Used for displaying questions grouped by sub-category within each of the main Categories. Would this just be a matter of adding a category property to my FAQ class? How would I then access the full list of Categories from the main space in order to link to each set of FAQs? You might want to steal the category/subcategory system of the new blog application just released in XWiki 1.8M1 or available as a separate xar here http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/applications/xwiki-application-blog/1.0-SNAPSHOT/ 2) Within each Category (I figured I'd create each main category as a new Space) support for specifying certain users who can add new Questions and Answers. I think I kind of have an idea on how to do this using the user/group frameworks. I just wanted to get an idea of whether this sort of restriction is doable within the existing rights system. In general spaces should be used for mainly security purposes. So this seems a good reason for your use-case. However wouldn't you want an entry to be in multiple categories ? This will be complex with spaces. 3) Creation of global template for creating/editing and viewing FAQ entries. This is similar to the FAQ tutorial with a main difference being the ability to specify an existing sub-category or to create a new sub-category for the main category the user has permission to create questions/answers for. This could be a reuse of both the FAQ and/or BLOG applications. 4) Main space that acts as a sort of jumping off point for the FAQs. Contains links to all of the main FAQ categories and possibly some general information about submitting new questions and such. I figured I would create a main space and have the re-usable objects defined in it and then have a single page that acts as the entry point to the FAQs. You can create macros and sheets and make the easily available. You can insert sheets using #includeForm(pagename) and macros using #includeMacros(pagename) Are there docs for the xwiki object model? How can I find out what properties and methods are available on xwiki objects? Are there docs that explain how to use velocity scripting to do custom queries to retrieve the data to be displayed in a given page? Check http://platform.xwiki.org You might want to start with the tutorials - Does this all seem doable in the xwiki system? yes Does it make sense to develop each major category of FAQ as a Space within the wiki? Only if rights is needed I'm doing this mainly because of the editing restrictions, is it necessary? This is a decent reason. You can also store rights using groups on a per entry basis. But this is not so easy to manage. If you are sure each category will have a specific group allowed to edit a space is good. Can someone provide a general idea of how I might go about creating this FAQ system that allows questions to be categorized and then fetched/displayed by Category/Sub-Category?!? Steal the new blog application Ludovic Thanks!! Kevin Cummings -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Conditionally hiding content..
Using the example @: http://www.xwiki.org/xwiki/bin/view/FAQ/Howtodisablecommentsandattachments I am able to remove all of the sections at the bottom of pages, Comments, Attachments, History and Information. Now what I would like to do is show some of these items conditionally based on the users permissions. Would I do this via the Custom Display option in the class editor? How would I access the properties within the class? Something like: #if($hasAdmin || $hasSpaceAdmin) showcomments = yes #else showcomments = no #end Would I use a #set directive to set the property or is there something else I need to do in order to set this value? Is this even the right place for this type of action? Thanks in advance! .:. Kevin -- View this message in context: http://n2.nabble.com/Conditionally-hiding-content..-tp2147464p2147464.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