[xwiki-users] Problem with XWiki Syntax 2.1 and parameter (including images)
Hey, I tried to google a solution but I did not found anything. Maybe somebody here can help me :-) I observed the following behaviour on my XWiki (v 7.1.1): Using the XWiki Syntax 2.1 for inserting images leads to a problem if I am using parameters. Let's say im using [[image:img.png||width="25px"]]. When I am saving the page the source code of the generated html is something like . After a refresh of the page the source code gets . After another refresh the source code gets . And so on and so on . After a lot of refreshes the src path is too long for my server (restricted to 1024 chars) and the image is not shown anymore. When I edit the page and save it the path gets "normal" again. Am I using the syntax wrong or is it (I guess that is the problem) a XWiki problem? I guess the path resolving has a bug but maybe somebody can help me without updating the XWiki? Thanks in advance, Patrick
Re: [xwiki-users] Nested document killed {{spaceindex}} macro?
I didn't found equivalent of {{spaceindex sort="modificationDate" count="20" /}} then I must modify hql query in: /bin/edit/Main/SpaceIndex?editor=object but I failed too too! :-( I would to list all documents (terminale page and child space) under a root space, the i use this query : #set ($docNames = $services.query.hql("from XWikiSpace as space where doc.space = space.reference and ((doc.space like ? )) order by $sortQuery").addFilter('currentlanguage').addFilter('hidden').setLimit($limit).bindValues([${spaceParam}]).execute()) - $spaceParam is my root Space - $sortQuery = 'doc.contentUpdateDate desc' but the query displayed this error: Caused by: org.hibernate.hql.ast.QuerySyntaxException: Invalid path: 'doc.space' [from com.xpn.xwiki.doc.XWikiSpace as space where doc.space = space.reference and ((doc.space like ? )) order by doc.contentUpdateDate desc] Thxs. (I didn't found the query of Document Tree in source code either) Pascal B En date de : Jeu 8.12.16, Pascal BASTIENa écrit : Objet: Nested document killed {{spaceindex}} macro? À: "XWiki Users" Date: Jeudi 8 décembre 2016, 18h18 Hello, With my xwiki7.0.1 to 8.4 upgrade process, I noticed that all my WebHome on spaces (with dashboard+{{spaceindex}} macro) are "broken". After a little bit of search, I understood that spaceindex macro list only direct children terminal page... In some different post from dev list, it seem that I must use {{documentTree}} macro instead. My spaces dashboard use {{spaceindex sort="modificationDate" count="20" /}} to list the 20 more recents page and I added a shortcut to /bin/view/Main/SpaceIndex?space=MySpace (broken too:-( ) Could you give me some advices how can I replace my "spaceindex" to: - list the 20 more recents page (terminale and none terminale) on current space? I didn't found a "modificationDate" sorting parameter in {{documentTree}} - replace my target /Main/SpaceIndex?space=MySpace by ... ??? Probably I must create a custom LT to list every sub pages Finaly, may be a caution text must be added on this page: http://extensions.xwiki.org/xwiki/bin/view/Extension/SpaceIndex+Macro (ie "don't use this macro anymore with nested page!" or "list only direct children terminal page ") Thxs for your help. Pascal BASTIEN
Re: [xwiki-users] User's edit history
Hi Chetan, > On 12 Dec 2016, at 05:46, Chetan Kumarwrote: > > Hello XWiki developers, > > > > I would like to know if there’s any in-built feature in XWiki that can > allow us to show a user’s page-edit history. > > > > I am aware of the activity-stream application. However, it only shows > recent changes. Our requirement is that a user, say Joe, is able to see his > entire edit history (say from past two years) in the form of a list where > each item in the list shows the page-title, timestamp of the edit, and any > ‘version summary’ he might have entered for that edit. The list should > display as paginated if it has more than 20 results. The other requirement > is that this application has to be performant as we can expect a few > hundred people to access their contribution-history every hour. > > > > Is there something already built into XWiki that can give us this > information? Or will we have to build a new application to return this data. The closest is the Activity Stream (AS) for a user: {{activitystream user=“”/}} As you say the default is to display only a few entries (20 by default). However there’s a macro parameter to control this (see http://extensions.xwiki.org/xwiki/bin/view/Extension/Activity+Macro). Now the AS is missing some features to do what you wish: * “Show more” button, http://jira.xwiki.org/browse/XWIKI-9896 * Provide filtering: http://jira.xwiki.org/browse/XWIKI-6698 * Very very slow ATM, needs to be rewritten with performance in mind So indeed right now the AS Macro is not a good choice. However you could use the AS API and build your own UI from it: http://bit.ly/2hkJZmk Note that this feature would be an interesting generic feature that would benefit from being contributed to xwiki-contrib! :) (see http://contrib.xwiki.org). Thanks -Vincent > Thank you for your help, > > Chetan