[xwiki-users] New xwiki user looking for some guidance...

2009-01-12 Thread Kevin_C
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

[xwiki-users] Conditionally hiding content..

2009-01-12 Thread Kevin_C
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

Re: [xwiki-users] Registration Email Error

2009-01-13 Thread Kevin_C
This looks like it is related to your other message. I'd guess that the exceptions you are getting are the reason the variables aren't getting replaced. Just from what you've posted I'd say: I'm trying to set up my registration email (the XWiki Instance is running on my localhost) but the

[xwiki-users] Using one Class and Template for creating documents in more than one space...

2009-01-13 Thread Kevin_C
Hi again, If I create a class similar to the one in the FAQ tutorial but add one or more new properties to define a space and category could I use this class and associated design sheet and template to create FAQ documents for more than one space? Is it possible to programatically determine

Re: [xwiki-users] Using one Class and Template for creating documents in more than one space...

2009-01-13 Thread Kevin_C
OK, that makes sense.. In fact I think I saw something similar in the ToDo tutorial, I should have remembered that. Do you know how I would go about querying for the 5 most recently created documents of a given type within a space? What I'm trying to accomplish is something like: FAQs Space 1

Re: [xwiki-users] Using one Class and Template for creating documents in more than one space...

2009-01-13 Thread Kevin_C
Jean, Perfect! Had to make a couple little modifications but that was pretty spot on.. Here's what I ended up with: #set($hql = , BaseObject as obj where obj.name=doc.fullName and obj.name'${doc.space}.${class}ClassTemplate' and doc.space='MySpace') Thanks again! .:. Kevin -- View this

Re: [xwiki-users] serious xEclipse problems 1.2-rc-1

2009-01-13 Thread Kevin_C
You might want to start your own thread for this so people who might be more familiar with your issue can respond. I've never tried to use XEclipse as a plugin because I don't have Eclipse Ganymede installed. Sorry for no help! -- View this message in context:

Re: [xwiki-users] serious xEclipse problems 1.2-rc-1

2009-01-13 Thread Kevin_C
Well, it went to the users list but it's showing up under a thread I started in the forum view. Maybe it's just messed up. In order to use XEclipse as a plugin you have to have the Ganymede version of Eclipse. The way you are running it you aren't actually running it as a plugin. To run it as a

[xwiki-users] Custom class field as field on a different class

2009-01-13 Thread Kevin_C
Is it possible to create a simple custom class that can then be used within another custom class as a property? For example: Class A Category TAC Rule Class B Question Answer Category (populated from all Categories) Thanks! .:. Kevin -- View this message in context:

Re: [xwiki-users] Custom class field as field on a different class

2009-01-13 Thread Kevin_C
OK, I found an example of this but it's not really clear how the pieces fit together. ArticleClass has a property called Category which is basically what I am looking to do. This is the HQL query for that property: select prop.value from BaseObject as obj, StringProperty as prop where

Re: [xwiki-users] Using one Class and Template for creating documents in more than one space...

2009-01-14 Thread Kevin_C
Well, in order to create any kind of customizations for xwiki you have to understand how this works because everything is stored in the DB.. I'm a developer but I've only worked with Hibernate a very little bit, I'm looking forward to either some more detailed documentation on how to access

[xwiki-users] Linking to documents in different spaces

2009-01-14 Thread Kevin_C
I am using this query: #set($hql = , BaseObject as obj where obj.name=doc.fullName and obj.className='Space1.MyClass' and obj.name'${doc.space}.${class}ClassTemplate' and doc.space='MySpace') to return a list of documents from a different space and I am trying to now create a view link to the

Re: [xwiki-users] Custom class field as field on a different class

2009-01-14 Thread Kevin_C
Interesting... I just noticed that the Blog.Categories page just has a series of Category Objects added to it. Is there something special I need to do in order to use a link like the one used in the Categories app in order to add my object to a *holder* page? This is the link used for adding new

Re: [xwiki-users] groovy.lang.MissingMethodException

2009-01-14 Thread Kevin_C
Is Summary a property you've added to a custom class that this document is an instance of? By default an XWiki document doesn't have a summary property which I believe is why you are getting that error. Hope this helps! .:. Kevin -- View this message in context:

[xwiki-users] Working with query results...

2009-01-15 Thread Kevin_C
I have the following code in one of my pages and it does what I am expecting however I'd like to try and generalize it some. #set ($hql = , BaseObject as obj where obj.name = doc.fullName and obj.className = 'CPA_FAQs.FAQClass' and doc.space='MySpace') #set($recentDocs =

Re: [xwiki-users] Working with query results...

2009-01-15 Thread Kevin_C
## Add space=MySpace to the query string of the URL #set($lookupSpace = $request.space) I ended up using this as the code is in a default page for a parent space so I can't add the correct parameter to the Url. #set($space = $entry.substring(0, $entry.indexOf(.))) Thanks for the great info!

[xwiki-users] Generate Url to delete attached object..

2009-01-15 Thread Kevin_C
I have the following code stolen directly from the Blog Categories app: $doc.getURL( Add New Topic Is there an objectdelete action for getURL. This is probably in the code but I don't have the sources and it's not in the API docs. Thanks! .:. Kevin -- View this message in context:

Re: [xwiki-users] Generate Url to delete attached object..

2009-01-15 Thread Kevin_C
Ooops, I found it. It's objectremove now all I need to do is find out which index the object to remove is. -- View this message in context: http://n2.nabble.com/Generate-Url-to-delete-attached-object..-tp2163415p2163430.html Sent from the XWiki- Users mailing list archive at Nabble.com.

Re: [xwiki-users] Generate Url to delete attached object..

2009-01-15 Thread Kevin_C
Seems like maybe it is a bug with creating links using square brackets as the following works as expected: {table} Topic | T.A.C. Rule | #foreach($topic in $topics) #set($delUrl = $doc.getURL(objectremove, classname=${doc.fullName}amp;classid=${topic.number}amp;xredirect=${redirurl}))

[xwiki-users] Get class from space and retrieve list of attached objects..

2009-01-15 Thread Kevin_C
I have a class in one of my spaces that has instances of itself attached. Eg. MySpace MySpace.TopicsClass MySpace.TopicsClass[0] MySpace.TopicsClass[1] How can I get the class from the space? I've tried: #set ($hql = , BaseObject as obj where obj.name = doc.fullName and

Re: [xwiki-users] the panel for create new page disappear

2009-01-16 Thread Kevin_C
Use the Administration menu item at the top of your wiki and select Administrate Wiki. Then choose Panel Wizard. The New Page panel is under tools. Find it and drag it onto either the left or right column. If you don't have either column showing you'll need to choose the Page Layout tab at the

Re: [xwiki-users] Get class from space and retrieve list of attached objects..

2009-01-16 Thread Kevin_C
I thought your other post looked like what I was trying but I wasn't getting the results I expected with any of the getObject* methods.. It turns out I think I was getting fooled by a toString() method. My problem was this: #set($hql = , BaseObject as obj where obj.name = doc.fullName and

Re: [xwiki-users] Get class from space and retrieve list of attached objects..

2009-01-16 Thread Kevin_C
$xwiki.searchDocuments returns a list of document names (well, it is called search documents), and not objects or classes. The query does filter only the documents that do have the objects you're interested in, you'll just have to access them using the API, starting from the document name. That

Re: [xwiki-users] Strangeness with numbers...

2009-01-16 Thread Kevin_C
Yah, that makes sense.. Still trying to get the hang of all this. Thanks again!! .:. Kevin -- View this message in context: http://n2.nabble.com/Strangeness-with-numbers...-tp2168613p2170342.html Sent from the XWiki- Users mailing list archive at Nabble.com.

Re: [xwiki-users] Strangeness with numbers...

2009-01-16 Thread Kevin_C
Ugh, typo. Sorry. I ended up using $util.add($num, 1).. Thanks! .:. Kevin -- View this message in context: http://n2.nabble.com/Strangeness-with-numbers...-tp2168613p2170347.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___

Re: [xwiki-users] Strangeness with numbers...

2009-01-20 Thread Kevin_C
OK, then how do I add two numbers using the numbertool? Here's what I have: $numbertool.toNumber($tRule.indexOf('.')) This displays a number as a string just fine. Now, I need to add 1 to it. I've tried: $numbertool.toNumber($tRule.indexOf('.')).intValue()+1 ## displays 1+1

Re: [xwiki-users] the panel for create new page disappear

2009-01-20 Thread Kevin_C
I'm not sure. It seems like maybe your wiki is missing some of the pieces that mine has. Did you install the default xar file that is available from the xwiki site? Did you install all of the various pieces that it has in it? I'm not sure how you would go about checking whether or not these

[xwiki-users] xwiki features out of the box...

2009-01-20 Thread Kevin_C
I need to be able to support the following items with my xwiki implementation and I'm looking for someone to verify that xwiki has the ability (I understand there will be customization needed) to support these items: 1) provide view options such as a) most frequently viewed b) recently added