[xwiki-users] My orphaned pages panels do not work properly
Hello, I have some pages listed in the orphaned panel, but this page have a backlink in the backlink panel, so meybe I don´t understand the meaning of the orphaned pages panel, but I think that a page with a parent, is not orphaned. Here is the code of the panel: #panelheader('Páginas Huérfanas') #set ($query = where doc.parent is null or doc.parent='' and doc.name 'WebHome' order by doc.name asc) #foreach ($item in $xwiki.searchDocuments(${query})) #if ($xwiki.hasAccessLevel(view, $context.user, ${context.database}:${item})) #set($bentrydoc = $xwiki.getDocument($item)) * [${bentrydoc.fullName}] #end #end #panelfooter() Thanks for the help, Francisco, -- Francisco Hernández Cuchí Jefe de Servicios Sistemas de Información OFICINA ESPAÑOLA DE PATENTES Y MARCAS mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] My orphaned pages panels do not work properly
Hi, On Feb 16, 2009, at 11:46 AM, Hernández Cuchí, Francisco Ricardo wrote: Hello, I have some pages listed in the orphaned panel, but this page have a backlink in the backlink panel, so meybe I don´t understand the meaning of the orphaned pages panel, but I think that a page with a parent, is not orphaned. * orphaned means no parent. * backlinks means that some page points to you If you want no parent + no backlinks then you'd need to modify the query in your orphaned pages panel. Thanks -Vincent Here is the code of the panel: #panelheader('Páginas Huérfanas') #set ($query = where doc.parent is null or doc.parent='' and doc.name 'WebHome' order by doc.name asc) #foreach ($item in $xwiki.searchDocuments(${query})) #if ($xwiki.hasAccessLevel(view, $context.user, $ {context.database}:${item})) #set($bentrydoc = $xwiki.getDocument($item)) * [${bentrydoc.fullName}] #end #end #panelfooter() Thanks for the help, Francisco, ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] My orphaned pages panels do not work properly
Ok, Two questions then: -the concept of parent? I thought that pages were just spacename.pagename, and the parents where the link sources. -How can I get the pages with no link to them? Thanks, Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Vincent Massol Enviado el: lunes, 16 de febrero de 2009 12:04 Para: XWiki Users Asunto: Re: [xwiki-users] My orphaned pages panels do not work properly Hi, On Feb 16, 2009, at 11:46 AM, Hernández Cuchí, Francisco Ricardo wrote: Hello, I have some pages listed in the orphaned panel, but this page have a backlink in the backlink panel, so meybe I don´t understand the meaning of the orphaned pages panel, but I think that a page with a parent, is not orphaned. * orphaned means no parent. * backlinks means that some page points to you If you want no parent + no backlinks then you'd need to modify the query in your orphaned pages panel. Thanks -Vincent Here is the code of the panel: #panelheader('Páginas Huérfanas') #set ($query = where doc.parent is null or doc.parent='' and doc.name 'WebHome' order by doc.name asc) #foreach ($item in $xwiki.searchDocuments(${query})) #if ($xwiki.hasAccessLevel(view, $context.user, $ {context.database}:${item})) #set($bentrydoc = $xwiki.getDocument($item)) * [${bentrydoc.fullName}] #end #end #panelfooter() Thanks for the help, Francisco, ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] AUTO: MaryEllen Coleman/Poughkeepsie/IBM is out of the office. (returning 02/17/2009)
I am out of the office until 02/17/2009. Note: This is an automated response to your message ?users Digest, Vol 19, Issue 30 sent on 2/16/09 6:00:09. This is the only notification you will receive while this person is away. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] class property deletion / sql query
Hi guys, I'm aware of the fact, that there is not yet a feature for deleting class properties. I think I read somewhere about a workaround for this but can't find it anymore. I don't care, if the data remains for some documents, but I do not want to get it displayed, nor do I want the property to be fillable in new pages. Can you give me a hint what to do so, raw SQL is cool as well, if that is the only way. A second question, since I'm not yet an expert on xwiki datastructure and database model (I know of the xwiki.org docs on this) is the following: I want the pagealreadyexists page to show me, what template was used for the creation of the existing document. Like: Document 'blabla' exists and was built using template (class/object) of type 'blablabla'. I think this should be easy, how do I get the object name of the used template? Thanx guys, Sebastian ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
Hi Regarding accessing Panels Wizard problem on myxwiki. In my case I'm trying to create a new panel (tag cloud) so things are a bit more complex. So below is a guide on how to do it without the Panel Wizard. I think my programming rights for myxwiki.patternlanguagenetwork got corrupted due to recent upgrade issues so can I ask someone to reinstate them or to resave this page 'Panels.TagCloud'. Add TagCloud Panel without going through PanelWizard (require Programming Rights). 1. Create page called Panels.TagCloud ('xwiki/bin/view/Panels/TagCloud' then click on 'edit this page to create it.'.) 2. Add this line #includeForm(Panels.PanelSheet) 3. Click 'Save and View' 4. Click on Edit - Objects 5. Choose 'Panels.PanelClass' from the 'Add Object' panel on the right. 6. Click 'Add Object from this class' button 7. Fill in: Name=TagCloud, Panel Type=View, Description=Tag Cloud, Category=Navigation, Content= #panelheader('Tags Cloud') #set($query = select elements(prop.list) from BaseObject as obj, DBStringListProperty as prop where obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags') #set( $allTags = $xwiki.sort($xwiki.search($query))) #set( $previousTag = ) #set( $tagsWithCount = $xwiki.getHashMap()) #set( $count = 1) #set( $maxCount = 1) #foreach($tag in $allTags) #if ($tag == $previousTag) #set( $count = $count + 1) #if ($count $maxCount) #set ($maxCount = $count) #end #else #set( $count = 1) #set( $previousTag = ) #end #set( $dummy = $tagsWithCount.put($tag, $count)) #set( $previousTag = $tag) #end #set($query = select distinct elements(prop.list) from BaseObject as obj, DBStringListProperty as prop where obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags') #set( $tagsDistinct = $xwiki.sort($xwiki.search($query))) div style=font-size: 10px; text-align: justify; text-justify: auto; #foreach($tag in $tagsDistinct) #set( $currentCount = $tagsWithCount.get($tag)) ##set($size = 15 + ($currentCount * 150 / $maxCount)) #set($size = 10 + ($currentCount/2)) #set($size = $size + px) span style=font-size: $sizea href=$xwiki.getURL(Main.Tags, view, tag=$tag))$tag/a/span #end /div #panelfooter() 8. Click 'Save and View' 9. Go into XWikiPreferences and click Edit-Objects. 10. Find XWiki.XWikiprefferences and add value 'Panels.TagCloud' to property 'Panels displayed on the right:' 11. Click 'Save and View' Ajdin -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: 07 February 2009 09:17 To: XWiki Users Subject: Re: [xwiki-users] Panel Wizard doesn't show it Hi Antonio, On Feb 7, 2009, at 9:07 AM, Antonio Goncalves wrote: Hi, I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard it just doesn't show up. I click on the link, but nothing happens. hmmm we need to look into this since I've heard this problem reported twice over one week. If you agree, I'll ask Raffaello to give me the rights to go the Paris JUG wiki and try it myself from there. Is there a way to skip the wizard and set up the panels layout manually like the previous versions of XWiki ? Yes. Just go to the wiki administration page and then select edit -- Objects. Find the XWikiPreferences object and find the property for panels location and put the values you want in there. Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users 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] My orphaned pages panels do not work properly
Hernández Cuchí wrote: Ok, Two questions then: -the concept of parent? I thought that pages were just spacename.pagename, and the parents where the link sources. The parent of a document is an unique field of each document, which can be used to further create deeper treelike hierarchies than the simple space-documents relationship. You can set the parent of a document in edit mode. -How can I get the pages with no link to them? No backlinks and no parent: #foreach($item in $xwiki.searchDocuments( where doc.parent = '' and doc.name 'WebHome' and not exists(from XWikiLink link where link.fullName = doc.fullName))) * [$item] #end No backlinks: #foreach($item in $xwiki.searchDocuments( where not exists(from XWikiLink link where link.fullName = doc.fullName))) * [$item] #end Note that backlinks record only wiki links, but there are other means of referencing a document. For example, the above query returns Blog.WebHome as an unlinked document, although Main.Dashboard includes it to display the most recent news. Also, links from structured documents (like blog articles or user profiles) are not considered for backlinks, only links found in unstructured wiki content. Thanks, Francisco -Mensaje original- De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de Vincent Massol Enviado el: lunes, 16 de febrero de 2009 12:04 Para: XWiki Users Asunto: Re: [xwiki-users] My orphaned pages panels do not work properly Hi, On Feb 16, 2009, at 11:46 AM, Hernández Cuchí, Francisco Ricardo wrote: Hello, I have some pages listed in the orphaned panel, but this page have a backlink in the backlink panel, so meybe I don´t understand the meaning of the orphaned pages panel, but I think that a page with a parent, is not orphaned. * orphaned means no parent. * backlinks means that some page points to you If you want no parent + no backlinks then you'd need to modify the query in your orphaned pages panel. Thanks -Vincent Here is the code of the panel: #panelheader('Páginas Huérfanas') #set ($query = where doc.parent is null or doc.parent='' and doc.name 'WebHome' order by doc.name asc) #foreach ($item in $xwiki.searchDocuments(${query})) #if ($xwiki.hasAccessLevel(view, $context.user, $ {context.database}:${item})) #set($bentrydoc = $xwiki.getDocument($item)) * [${bentrydoc.fullName}] #end #end #panelfooter() -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Migrating articles into xwiki
Gerritjan Koekkoek wrote: Hi, I understand the concept, but what do I do with relations; Creator, Translation, translator. I advise you to look at a generated XML file, the structure will answer your questions. I also have some markup-tags like Title, Quote, Bulleted list, Information, Contact-information For this you can either use the syntax conversion feature of XWiki (as Vincent said), or manually process the wiki content to convert to the XWiki syntax. How would you develop a xml-schema for this; could I look at the database structure and assume required, optional constraints Are there any enumerations used in xwiki (list of possible values) for a field What is the best way to find-out about the standard POSSIBLE attributes of a xwiki document Look at the XWikiDocument java class (http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java), or at the hibernate mapping file (http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/resources/xwiki.hbm.xml). Or, look at the XML export of a document (http://www.xwiki.org/xwiki/bin/view/Main/WebHome?xpage=xml), as the format is straight-forward. Gerritjan On 14 feb 2009, at 18:55, Guillaume Lerouge wrote: Hi, XWiki Pages are stored as XML files. You can look at the XML representation of a standard XWiki pages (export as XAR, rename to ZIP, unzip, look inside the folder). Then try to find which XWL fields from your original XML format could be converted into XWiki document fields (especially web, name, title, creation date and content). Once you've decided which mapping to use, write and launch your XSLT script. Then you'll have a bunch of XWiki pages as XML. Look at the output of a XWiki XAR export to see what the description file looks like and write one with the name of your pages inside. Put everything into a folder, zip it, rename it to .xar, try importing it. If the import fails, try splitting it into a number of smaller XARs. Hope this helps, Guillaume On Sat, Feb 14, 2009 at 12:10 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi. We have a repository of articles (our Old CMS) we would like to import into xwiki automatically. These Articles are in a propietary XML format, one XML file per article. What would be the best approach? We have ability to restructure/transform xml into another xml by means of xslt. Which approaches could we research? Gerritjan -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Hibernate bug while trying to save modifications
Hi all, I found a really annoying bug today, and I am really lost solving it : I have created an application based on xwiki, i tried it on 3 different test servers, using the export import between each server. My application generate a lot of pages/objects. When I use the export/import between the servers, I import only the application, not the data. Everything worked fine, but I imported the application on the prod server friday. Since then, I can create an object. When i try modify it, I have the following error and stack trace : A problem occured while trying to service your request. Please contact the support if this happens again. Detailed information: Error number 3201 in 3: Exception while saving document Project.0,0,0,3,0 Wrapped Exception: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.xpn.xwiki.objects.LongProperty# ] com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document Project.0,0,0,3,0 Wrapped Exception: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.xpn.xwiki.objects.LongProperty# ] at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:570) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:131) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:124) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1268) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:173) at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:190) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) Wrapped Exception: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.xpn.xwiki.objects.LongProperty# ] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at
[xwiki-users] WritingComponents, First Try
Hi, I experiment http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents I'm at The component explained. I try mvn install (which is not in the tutorial, I'm crazy). I get that : Missing: -- 1) org.xwiki.platform:xwiki-core-component:jar:1.5-SNAPSHOT Try downloading the file manually from the project website. ... and etc. Here is pom.xml with the snapshot : properties !-- TODO: remove this if you inherit a project that has the core version set -- platform.core.version1.5-SNAPSHOT/platform.core.version /properties dependencies dependency groupIdorg.xwiki.platform/groupId artifactIdxwiki-core-component/artifactId version${platform.core.version}/version /dependency dependency groupIdjunit/groupId As I understand things, I don't inherit a project, so I suppose it's the automatic settings of platform.core.version which is false. What is the good one ? Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WritingComponents, First Try
Hi Hervé Hervé Agnoux wrote: Hi, I experiment http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents I'm at The component explained. I try mvn install (which is not in the tutorial, I'm crazy). I get that : Missing: -- 1) org.xwiki.platform:xwiki-core-component:jar:1.5-SNAPSHOT Try downloading the file manually from the project website. ... and etc. Here is pom.xml with the snapshot : properties !-- TODO: remove this if you inherit a project that has the core version set -- platform.core.version1.5-SNAPSHOT/platform.core.version /properties dependencies dependency groupIdorg.xwiki.platform/groupId artifactIdxwiki-core-component/artifactId version${platform.core.version}/version /dependency dependency groupIdjunit/groupId As I understand things, I don't inherit a project, so I suppose it's the automatic settings of platform.core.version which is false. Right, 1.5-SNAPSHOT was the latest snapshot version at the moment the tutorial has been written. AFAIK our policy is to keep snapshot versions on the maven repository for trunk + the latest branch, being currently 1.7 and 1.8 for the platform (would be too disk-hungry to keep them all). So 1.5-SNAPSHOT is definitely not available any longer. You can depend on more recent snapshots, like 1.7-SNAPSHOT or 1.8-SNAPSHOT. You can always check what snapshots are available visiting http://maven.xwiki.org The alternative is you depend on a released version. That's probably a better practice for components developed out of the XWiki project, since you can rely on the fact the artifacts behavior are not going to change without you noticing :) Recent released versions are 1.7.1 (stable branch) and 1.8-milestone-2 (bleeding edge). Note that your dependency is xwiki-core-component is needed only if your code uses classes from the component manager (typically, if you have a Composable component that lookup other components against the component manager). If you don't do that, you can remove this dependency. Hope this helps, Have fun! Jerome. What is the good one ? 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