Sorry, that's not quite what I meant. My example wasn't very clear. Let's
assume the class Photos.PhotoClass has a property called "location"
indicating where the photo was taken. I'd like to be able to sort by that
"location" property.
> You can try
>
> #set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
prop.list list where obj.name=doc.fullName and
obj.className='Photos.PhotoClass' and obj.name<>'Photos.PhotoClassTemplate'
and obj.id=prop.id.id and prop.id.name='category' and list='${category}'
order by doc.creationDate")
> or
> #set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
prop.list list where obj.name=doc.fullName and
obj.className='Photos.PhotoClass' and obj.name<>'Photos.PhotoClassTemplate'
and obj.id=prop.id.id and prop.id.name='category' and list='${category}'
order by doc.date")
>
> depending if you want to sort by the creation date or update date of the
documents
--
"Any sufficiently advanced technology is indistinguishable
from magic." -- Arthur C. Clarke
--
Brian D. Switzer
email: herkamur [at] canada [dot] com
web: http://bswitzer.railfan.net/
Hello List
I will try to describe my problem as simple as possible:
I've created a User "abc" and a new Webspace "abc". Only the User "abc"
has Edit- and View-Rights on the Webspace "abc". That works fine. Now if
the user "abc" tries to seach a document on his webspace using the
normal search-dialog nothing is found. If i do the same search as admin,
searching is successfull.
Why that? Normaly the user "abc" should find the documents in a webspace
where he has view- and edit-rights?
What am i doing wrong?
Thanks and greets!
Ralph
We are in the process of evaluating Java based Wikis for integration into our company portal (based on Jetspeed 1.5). One key requirement is that each department should be restricted to its own private Wiki or a subset thereof.
I have studied the concept of Spaces or Webs which might support this requirement. On the other hand, there is the possibility of setting up a Virtual Wiki for each department.
(1) Is it possible to achieve the desired mapping from department to wiki?
(2) Is there a preferred way of achieving said goal, i.e. what are the relative advantages of choosing Spaces or Virtual Wikis?
(3) How do I identify a Wiki Space or Virtual Wiki resp., i.e. how do I make sure that each user is initially presented with "his" wiki?
Please bear in mind that ressources allocated for this project are restricted and the product has to be delivered within a very tight time frame. So if the desired integration would be possible yet would entail considerable effort I would be glad to be told so upfront.
Many thanks for your efforts,
Olaf Bergner
I downloaded and installed xwiki on my desktop. I was trying the FAQ tutorial and getting exceptions thrown.
XWikiClasses page did exist, however ClassItemSheet and ClassItemTemplate were not. Hence I copied the page code from xwiki.
When I filled in classname and clicked Create this Class button following exception is thrown.
Error number 3202 in 3: Exception while reading document XWiki.ClassTemplate
If I click on ClassTemplate link on class editor, following exception page appears.
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'parseContent' in class com.xpn.xwiki.api.XWiki threw exception class java.lang.NullPointerException : null
${doc.fullName}
$msg.get("login")
$msg.get("register")
XWiki Version 0.9.840
$msg.get("problemoccured")
$msg.get("detailedinformation"):
I am unable to get to ClassTemplate content just to revise its content from xwiki.
Please help.
Thanks,
Patrick
--
Sent from the XWiki- Users forum at Nabble.com:
http://www.nabble.com/ClassTemplate-t733043.html#a1919920
I'd like to select documents from the database by class via the following
(based on the blog code):
#set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
prop.list list where obj.name=doc.fullName and
obj.className='Photos.PhotoClass' and
obj.name<>'Photos.PhotoClassTemplate' and obj.id=prop.id.id and
prop.id.name='category' and list='${category}' order by doc.name")
This is fine, but I'd like to sort the results by another of the
parameters ("date") instead of by document name. I'm not a database
person, so I'm not sure how to accomplish this. Any guidance would be
most helpful.
--
Brian D. Switzer
e-mail: herkamur -=>at<=- canada -=>dot<=- com
web: http://bswitzer.railfan.net/
Hi all,
i encountered some problems using the xwiki and hope
you can help me. i downloaded the latest xwiki version
and installed everything using a postgresql database
and a tomcat 5.0.29.
The following problems occured:
1. The page
http://localhost:8080/xwiki/bin/view/Main/WebHome
could not be opened for some reason. the browser
keeps loading and loading, but nothing happens,
not even a timeout.
The same problem exists for the "Blog" link:
http://127.0.0.1:8080/xwiki/bin/view/Blog/WebHome
However the page
http://127.0.0.1:8080/xwiki/bin/view/XWiki/Menu
can be opened without problems. Logging in as Admin
user does work, too. So DB cannot be the problem.
Any ideas about this problem?
2. I deleted some page in the wiki, which resulted in
lots of execption that i cannot get rid of. at the moment
i cannot change anything due to this problem. the exception
is
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.ja
va:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
....
....
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:86)
at
com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernate
Store.java:350)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHi
bernateStore.java:982)
If you need the full exception, tell me.
3. I changed the language under "More Actions" -> "Web Preferences" from
"en" to
"de". After that it was no longer possible to change anything under
"Presentation"
the definition for the "XWiki Wiki Web", ... , "Top Menu", "HTTP Meta
Information"
we all empty and thus could not be edited. Changing the language back to
"en" does not work, because i am getting the errors mentioned in 2.)
4. When editing a page i can select the preview, which will show me a
preview of the
page, which is nice. However the preview page does not contain a back
button, that
takes me back to the edit page. there is only a save button. so, if i do
not want
to save the page i have to use the back button of the browser, which is
neither
good nor consistent. Adding a back button in the html page back to the
preview
page would be really appreciated.
So, my biggest problems are 1.) and 2.) at the moment. i'd really appreciate
if
you could help me, because i have to set up a wiki and want to use one
written
in java and xwiki seems to be best non-commercial java wiki.
regards,
Andreas
___________________________________________________________________________
Andreas Wüst
amites GmbH
Heumadener Straße 2
73760 Ostfildern
phone: 0711-4599939-34
fax: 0711-4599939-63
mailto:andreas.wuest@amites.de
http://www.amites.de
Hello,
By default, my xWiki site uses the code:
#set($category = "$request.category")
#set($nbitems = "10")
#set($nbstart = $request.nbstart)
1 Entries for category $category
#includeMacros("Blog.Macros")
to display News/Blog entries on the site. The Blog.Macros code displays a "Next" link at the bottom of the page when the number of items exceeds groups of 10. But the link itself is not being built correctly. If you are specifically viewing a category, the category parameter is dropped from the URL when Next is clicked.
What is the best way to get this fixed?
Also, I would like to make some changes to the way that information is displayed on my site; such as display 10 complete articles at a time, not excerpts from articles.
All help is greatly appreciated.