Hi,
I am trying XWiki 7.3.
I want to add add a menu with icon in the top menu. I have read
http://platform.xwiki.org/xwiki/bin/view/ExtensionPoint/TopMenuLeft, but
still can not understand where to add the following:
{{velocity}}{{html clean="false"}} ## we need clean="false" because we want
to display the raw content
<li class="dropdown">
<a class="icon-navbar dropdown-toggle" data-toggle="dropdown"
role="button" arias-haspopup="true" aria-expanded="false"><span
class="sr-only">$services.localization.render('core.menu.toggleNavigation')</span>Some
text</a>
<ul class="dropdown-menu">
<li><a href="">Some link</a></li>
</ul>
</li>
{{/html}}{{/velocity}}
Could you give me advice where to add the above lines?
Thanks for your help very much.
Guofeng
I am having the hardest time figuring out how to convert terminal pages
into nested spaces. After the upgrade to 7.2 our document organization got
completely hosed and the only way I can currently determine to reorganize
our documents is a painstakingly manual process located here:
http://test.xwiki.org/xwiki/bin/view/Nested+Spaces/Convert+a+Terminal+Docum…
Am I missing something here? If someone has a better way to do this please
let me know.
Thanks!
Hi,
I have a panel with a documentTree to display documents but I'm not able
to make finder work properly.
For non-existing pages it returns correctly "No results!", but for
existing ones it works for some and fails for other writing both
following errors in catalina.out:
- Exception in macro #handleDocumentTreeRequest called at
49:template:XWiki.DocumentTree[line 3, column 1]
- Exception in macro #getSuggestions called at
43:template:XWiki.DocumentTree[line 43, column 1]
I'm affraid I can't I find a pattern to give you any clue... But here
some examples:
- Searching "02Audit", at "Doc.03BusinessProcesses.02Audit": working
- Searching "03Reports", at "Doc.03BusinessProcesses.03Reports": NOT working
- Searching "02Functionalities", at
"Doc.01Specifications.02Functionalities": working
- Searching "01Entities", at "Doc.01Specifications.01Entities": NOT working
Note that Search functionality (up-right on the page) works fine for all
cases.
FYI, this is my macro in the panel (copy of Navigation panel but with
finder=true):
{{documentTree showTranslations="false" showAttachments="false"
compact="true" openTo="document:$openToDoc" finder="true" /}}
What might be happening?
--
ASOL Email Un cordial saludo,
Iago Lluque
/
*Alínea Software Solutions S.L.*
Travesía del Comercio 3, 2º 36002 Pontevedra España
Tel: +34 986 845 699
Email: info(a)alineasol.com <mailto:info@alineasol.com>
Web: http://www.alineasol.com
/
Hello,
i want to tuse some Carousel/slider on Xwiki.
I find 2 of them:
- http://www.xwiki.org/xwiki/bin/view/Carousel/Slider I don't know if it is simple to use it
- and totem extension: http://extensions.xwiki.org/xwiki/bin/view/Extension/TotemApplication
but totem doesn't work on my xwiki 7.0.1 version :-(
A nice working xar example will be welcome to test :-)
Totem documentation is clear except one important point: last step missing: howt to display our new totem page? with include but which one?
Thxs for your help or any carousel you use on your xwiki.
Pascal B
Hello,
I'm running a fresh 7.2 XWiki install (RHEL 7, tomcat 7, postgreSQL 9.1)
and I'm experiencing strange behaviour when I try to create new pages in a
given space.
If I use the big "+" sign on the top of the page in the space I want, the
result is always the same : a new space is created instead of a new page.
This is not a "parenting" problem, the space in question is indeed child
of the parent space.
I can try to change the location of the page in the "Location in the page
hierarchy where this new page will be created." menu
But it doesn't appear in the page list of the space, and it appears in the
list of all the spaces.
The template doesn't seem to be the problem (Page Type). I can use a page
template or a blank page (default choice) in the page type.
The only workaround that I found is to create a new page through the space
WYSIWIG editor.
I edit the home page of the space, then in the WYSIWIG editor I click on
"Link" and then "XWiki Page". This way a link to a new unknown page is
created in the space, and then and only then can I create a page inside
the space.
This doesn't seem normal. Can someone give me some insights on what might
cause this ?
Regards,
Denis GERMAIN
Hi guys,
I have an error when trying to send an email from inside a job.
The error I get is :
2015-11-19 11:09:16,507 ERROR o.x.m.i.DatabaseMailListener - Failed to save mail status [messageId = [04e467fb-0982-475b-9e8d-e3b1cc58c3a1], batchId = [9e5aa5f2-2372-40c9-b4c0-f6c5b7579560], state = [ready], date = [Thu Nov 19 11:09:16 CET 2015], recipients = [p.huisman(a)ximml.nl], wiki = [testwiki]] to the database
org.xwiki.mail.MailStoreException: Failed to save mail status [messageId = [04e467fb-0982-475b-9e8d-e3b1cc58c3a1], batchId = [9e5aa5f2-2372-40c9-b4c0-f6c5b7579560], state = [ready], date = [Thu Nov 19 11:09:16 CET 2015], recipients = [p.huisman(a)ximm.nl], wiki = [testwiki]] to the database.
at org.xwiki.mail.internal.DatabaseMailStatusStore.save(DatabaseMailStatusStore.java:88) ~[xwiki-platform-mail-send-storage-6.4.4.jar:na]
at org.xwiki.mail.internal.DatabaseMailListener.saveStatus(DatabaseMailListener.java:151) [xwiki-platform-mail-send-storage-6.4.4.jar:na]
at org.xwiki.mail.internal.DatabaseMailListener.onPrepare(DatabaseMailListener.java:82) [xwiki-platform-mail-send-storage-6.4.4.jar:na]
at org.xwiki.mail.internal.thread.PrepareMailRunnable.prepareSingleMail(PrepareMailRunnable.java:162) [xwiki-platform-mail-send-default-6.4.4.jar:na]
at org.xwiki.mail.internal.thread.PrepareMailRunnable.prepareMail(PrepareMailRunnable.java:133) [xwiki-platform-mail-send-default-6.4.4.jar:na]
at org.xwiki.mail.internal.thread.PrepareMailRunnable.run(PrepareMailRunnable.java:94) [xwiki-platform-mail-send-default-6.4.4.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: org.xwiki.mail.MailStoreException: Failed to delete mail status (message id [04e467fb-0982-475b-9e8d-e3b1cc58c3a1]) from the database.
at org.xwiki.mail.internal.DatabaseMailStatusStore.delete(DatabaseMailStatusStore.java:194) ~[xwiki-platform-mail-send-storage-6.4.4.jar:na]
at org.xwiki.mail.internal.DatabaseMailStatusStore.save(DatabaseMailStatusStore.java:76) ~[xwiki-platform-mail-send-storage-6.4.4.jar:na]
... 6 common frames omitted
Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate execute
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1305) ~[xwiki-platform-legacy-oldcore-6.4.4.jar:na]
at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:1413) ~[xwiki-platform-legacy-oldcore-6.4.4.jar:na]
at org.xwiki.mail.internal.DatabaseMailStatusStore.delete(DatabaseMailStatusStore.java:182) ~[xwiki-platform-mail-send-storage-6.4.4.jar:na]
... 7 common frames omitted
Caused by: org.hibernate.QueryParameterException: could not locate named parameter [id]
at org.hibernate.engine.query.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:101) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
at org.hibernate.engine.query.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:107) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
at org.hibernate.impl.AbstractQueryImpl.determineType(AbstractQueryImpl.java:460) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:430) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
at org.xwiki.mail.internal.DatabaseMailStatusStore$4.doInHibernate(DatabaseMailStatusStore.java:189) ~[xwiki-platform-mail-send-storage-6.4.4.jar:na]
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1299) ~[xwiki-platform-legacy-oldcore-6.4.4.jar:na]
... 9 common frames omitted
The code I use is base on the example on http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Sender+API#HCompa… <http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Sender+API#HCompa…> :
I Inject the following:
@Inject
MailSenderConfiguration mailConfiguration;
@Inject
@Named("text/html")
MimeBodyPartFactory<String> htmlPartFactory;
@Inject
@Named("database")
private Provider<MailListener> mailListenerProvider;
@Inject
MailSender mailSender;
The calls are:
[…]
MailListener maillistener = this.mailListenerProvider.get();
Session session = Session.getInstance(this.mailConfiguration.getAllProperties());
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress("p.huisman(a)ximm.nl"));
message.addRecipient(RecipientType.TO, new InternetAddress("p.huisman(a)ximm.nl"));
message.setSubject("XML Export");
Multipart multipart = new MimeMultipart("mixed");
Map<String, Object> parameters = new HashMap<>();
parameters.put("alternative", "text");
multipart.addBodyPart(this.htmlPartFactory.create(resultaat, parameters));
message.setContent(multipart);
MailResult result = this.mailSender.sendAsynchronously(Arrays.asList(message), session, maillistener);
[…]
The error is created on the this.mailSender.sendAsynchronously call. I’m using the 6.4.4 version.
Any help and suggestions of what I’m doing wrong is appreciated.
With kind regards,
Peter
I guess there is a type in the code: in org <eclipse-javadoc:%E2%98%82=XMLExporter/%5C/Users%5C/peterhuisman%5C/.m2%5C/repository%5C/org%5C/xwiki%5C/commons%5C/xwiki-commons-job%5C/6.4%5C/xwiki-commons-job-6.4.jar%3Corg>.xwiki <eclipse-javadoc:%E2%98%82=XMLExporter/%5C/Users%5C/peterhuisman%5C/.m2%5C/repository%5C/org%5C/xwiki%5C/commons%5C/xwiki-commons-job%5C/6.4%5C/xwiki-commons-job-6.4.jar%3Corg.xwiki>.job <eclipse-javadoc:%E2%98%82=XMLExporter/%5C/Users%5C/peterhuisman%5C/.m2%5C/repository%5C/org%5C/xwiki%5C/commons%5C/xwiki-commons-job%5C/6.4%5C/xwiki-commons-job-6.4.jar%3Corg.xwiki.job>.internal <eclipse-javadoc:%E2%98%82=XMLExporter/%5C/Users%5C/peterhuisman%5C/.m2%5C/repository%5C/org%5C/xwiki%5C/commons%5C/xwiki-commons-job%5C/6.4%5C/xwiki-commons-job-6.4.jar%3Corg.xwiki.job.internal>.AbstractJob <eclipse-javadoc:%E2%98%82=XMLExporter/%5C/Users%5C/peterhuisman%5C/.m2%5C/repository%5C/org%5C/xwiki%5C/commons%5C/xwiki-commons-job%5C/6.4%5C/xwiki-commons-job-6.4.jar%3Corg.xwiki.job.internal(AbstractJob.class%E2%98%83AbstractJob>.progressManager , the stepPropress (with a P) is defined where it should be stepProgress - or is there a reason for this?
Br,
P
Hi all,
Is there a way to set a different color theme to an "space" with the
Nested Pages feature? Previously with spaces it was possible.
I see that rights are inherited, but not color theme.
--
ASOL Email Un cordial saludo,
Iago Lluque
/
*Alínea Software Solutions S.L.*
Travesía del Comercio 3, 2º 36002 Pontevedra España
Tel: +34 986 845 699
Email: info(a)alineasol.com <mailto:info@alineasol.com>
Web: http://www.alineasol.com
/
Just an FYI,
the Open Source Initiative will be hosting a free webinar on XWiki with
Vincent Massol, today at 12:00noon ET, 6:00pm CET
Details at: http://wiki.opensource.org/bin/Communities/OSIdeas
Hope you can join us,
Patrick
--
|| | | |||| || || | |||| ||| | |||
Patrick Masson
General Manager & Director
Open Source Initiative
855 El Camino Real, Ste 13A, #270
Palo Alto, CA 94301
United States
OSI Phone: (415) 857-5398
Direct Phone: (970) 4MASSON
Skype: massonpj
Em: masson(a)opensource.org
Ws: www.opensource.org
Good day.
Had xwiki set up and running for a while now. This morning windows 7 dicided
to do a system recovery on startup. Now when I try to run XWiki I get a HTTP
500 error:
java.lang.NullPointerException
com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:695)
com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
com.xpn.xwiki.web.Utils.getComponent(Utils.java:719)
com.xpn.xwiki.web.XWikiRequestProcessor.processPath(XWikiRequestProcessor.java:47)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:154)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
Any ideas where to start looking for the problem? I went over the
configuration and all looks fine and MySQL is running and tomcat7 is
running..
Not sure how to recover.
Thanks
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-startup-HTTP-500-issue-tp7596904.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi all,
I'm trying the new stable version of XWiki (7.3) and I'm facing problems
with group rights.
I'm unable to keep them set, as if I leave Rights page and then come
back again all rights I've tuned up remain unset (reseted to "default" I
think...)
Is anybody else having this issue? Any workaround?
Thanks in advance!
--
ASOL Email Un cordial saludo,
Iago Lluque
/
*Alínea Software Solutions S.L.*
Travesía del Comercio 3, 2º 36002 Pontevedra España
Tel: +34 986 845 699
Email: info(a)alineasol.com <mailto:info@alineasol.com>
Web: http://www.alineasol.com
/
Hi Thomas,
I managed to do what I wanted. Apparently I mixed up some of the environments. I used the DocumentClass to get a document after I set did the setWiki() but that didn’t work. Once I switched to the XWikiDocument, it worked like a charm. I will most likely have to do some rework to have access to my components from a job :-)
Thanks for the help by answering my questions.
Br,
Peter
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com <mailto:thomas.mortagne@xwiki.com>>
Onderwerp: Antw.: [xwiki-users] Question on Jobs and context (Peter Huisman)
Datum: 16 november 2015 18:27:13 CET
Aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Antwoord aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
You should never use the same ExecutionContext or XWikiContext in
different threads since they are really not designed for this and you
will have weird random issue at best.
You can find a example of a component getting the current XWikiContext
and setting the current wiki id on
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi… <https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…>.
We just switched to 7.3 and loved it! Cleaner look and Nested Spaces was what
we where looking for. Thank you very much for this awesome work!
What we are irritated about is something which is hopefully just a lack of
understanding about rights. We have had groups and adjusted single pages
according to our access policies. Everything worked as expected. After
update to 7.3 all rights do not function anymore! The rights were not
changed but now every user can access every single page - even "Administer
Wiki" on the main wiki and on each subwiki!
We reinvented our whole security rules and rights to the certain pages with
no success.
Could someone please support us in narrowing down this issue?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Irritating-problems-with-rights-tp7596882…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I want to upgrade from Xwiki-5.4.5 to 7.3, but some problems occurs.
I create a backup db, and run 7.3 instance on the backup one.
1. The "Spaces" feature seems disappears, all old spaces are organized in a single root tree.
I can not manage access privilege by Space.
2. The wikis application can not be removed, there is nothing in the "Installed Application", and I DO NOT want the multi wikis.
3. I want to export the old content from the old wiki, and import it into new wiki, but I cannot export only my selected Spaces.
Anyone can point me some way to solve?
Hi Thomas,
I figured something like this. I have however been trying to pass various parameters to the request but this has not resulted in any succes: Passing the entire context (either ExecutionContext or XWikiContext) did’t work and neither did setting the WikiId or the database. Can you help me on this with an example on what (and how) to set?
Br,
Peter
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com <mailto:thomas.mortagne@xwiki.com>>
Onderwerp: Antw.: [xwiki-users] Question on Jobs and context
Datum: 14 november 2015 14:13:17 CET
Aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Antwoord aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
You can change the context with in the XWikiContext. See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWi… <http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWi…>
for how to access it from a component.
Hi,
I downloaded xwiki-enterprise-xwiki-enterprise-7.3 source and try to build
it.
I have created settings.xml following the instruction in
http://dev.open-sankore.org/xwiki/bin/view/Community/Building.
At first, it is failed when building xwiki-enterprise-ui-common. Maven
complain that Could not find artifact
uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0.
So I add
<!-- snuggletex-jeuclid -->
<repository>
<id>www2.ph.ed.ac.uk-releases</id>
<url>http://www2.ph.ed.ac.uk/maven2</url>
</repository>
to settings.xml, remove ./m2/respository/uk (to prevent stopping building
from the cache), then build from start again.
xwiki-enterprise-ui-common built successfully, but when building building
xwiki-enterprise-data-hsqldb, I got the following error:
[ERROR] Failed to execute goal
org.xwiki.platform:xwiki-platform-tool-packager-plugin:7.3:import (default)
on project xwiki-enterprise-data-hsqldb: Execution default of goal
org.xwiki.platform:xwiki-platform-tool-packager-plugin:7.3:import failed:
Plugin org.xwiki.platform:xwiki-platform-tool-packager-plugin:7.3 or one of
its dependencies could not be resolved: The following artifacts could not
be resolved: uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0,
org.restlet.jse:org.restlet:jar:2.0.14,
org.restlet.jee:org.restlet.ext.servlet:jar:2.0.14,
org.restlet.jse:org.restlet.ext.jaxrs:jar:2.0.14,
org.restlet.jse:org.restlet.ext.jackson:jar:2.0.14,
org.restlet.jse:org.restlet.ext.jaxb:jar:2.0.14: Failure to find
uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0 in
http://maven.xwiki.org/externals was cached in the local repository,
resolution will not be reattempted until the update interval of
xwiki-plugins-externals has elapsed or updates are forced -> [Help 1]
uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0 has just been
downloaded when building xwiki-enterprise-ui-common.
I do not know how to fix it, your help is appreciated.
NOTE: I have also added
<!-- use Restlet -->
<repository>
<id>maven-restlet</id>
<name>Public online Restlet repository</name>
<url>http://maven.restlet.org</url>
</repository>
to settings.xml before.
Thanks for your help
Guofeng
Hello,
I think I resoved my issue with an include to launch my query:
In my Class in "Computed Field" to display a query in "Custom Display", I simply inserted an include function
#set ($HqlQuery ="select distinct doc.fullName, doc.name, doc.creationDate, CategorieProp.value, ProcessusProp.value from XWikiDocument as doc
, xxxxxxxxxxxxxxxxxxxxxxx
order by doc.creationDate desc")
##
#includeInContext("FormSMQ.MyQuery")
## set ($ResultQuery=$services.query.hql("$HqlQuery").execute())
#if ($listtool.isEmpty($!ResultQuery) || ! $ResultQuery )
* //(Aucune amélioration)//
#else
yyyyyyy
and FormSMQ.MyQuery, who's belong to Admin user, contains
{{velocity}}
#set ($ResultQuery=$services.query.hql("$HqlQuery").execute())
{{/velocity}}
Pascal
--------------------------------------------
En date de : Lun 16.11.15, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
Objet: Full form statements requires programming right issue?
À: "XWiki Users" <users(a)xwiki.org>
Date: Lundi 16 novembre 2015, 11h36
Hi,
I writed an application form with template + class + sheet
(owner is admin).
In my Class I use a "Computed Field" to display a query
result with "Custom Display".
It is an hql query with select. I know that we must have PR
to launch a hql query with select but my template + class +
sheet owner is admin.
If a "simple" user create a new form (with myClass object)
he obtain a naughty velocity error: <<Full form
statements requires programming right>>
How can I resolve this problem? It it a bug?
Thxs for any help
Hi,
I writed an application form with template + class + sheet (owner is admin).
In my Class I use a "Computed Field" to display a query result with "Custom Display".
It is an hql query with select. I know that we must have PR to launch a hql query with select but my template + class + sheet owner is admin.
If a "simple" user create a new form (with myClass object) he obtain a naughty velocity error: <<Full form statements requires programming right>>
How can I resolve this problem? It it a bug?
Thxs for any help
Hi Thomas,
Thanks for that. Maybe a very silly question but how do I get a job to run in a specific Wiki?
Br,
Peter
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com <mailto:thomas.mortagne@xwiki.com>>
Onderwerp: Antw.: [xwiki-users] Question on Jobs and context
Datum: 13 november 2015 14:52:51 CET
Aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Antwoord aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Right now there is no standard for it. Usually jobs that need to run
in a specific wiki or with specific user for example are provided with
this wiki/user as a job request parameter.
On Fri, Nov 13, 2015 at 2:51 PM, Peter Huisman <p.huisman(a)ximm.nl <mailto:p.huisman@ximm.nl>> wrote:
> Hi,
>
> Im getting my head around job building. One question I have: If I start a job, the context of the job is not the context I need. The script I run is in a subWiki but the context of the job is in the main Wiki. What is the best way to change the context in the job to match the wiki that I am using to start the job?
>
> With kind regards,
>
> Peter
> _______________________________________________
> users mailing list
> users(a)xwiki.org <mailto:users@xwiki.org>
> http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>
--
Thomas Mortagne
Hi,
Im getting my head around job building. One question I have: If I start a job, the context of the job is not the context I need. The script I run is in a subWiki but the context of the job is in the main Wiki. What is the best way to change the context in the job to match the wiki that I am using to start the job?
With kind regards,
Peter
The XWiki development team is proud to announce the availability of XWiki
7.3.
This is a stabilisation release focusing on the Nested Pages feature which
was introduced in XWiki 7.2.
Lots of polishing has been done for the Nested Pages feature integration,
targeting the consequences on the UI redesign and the changes at
applications level. The release includes a couple of bug fixes, a few
dependency upgrades and new UI extension points available for extension
developers.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki73
The following people have contributed code to this release:
Clemens Robbenhaar
Ecaterina Moraru (Valica)
Eduard Moraru
Gabriela Smeria
Guillaume Delhumeau
Jean SIMARD
Manuel Smeria
Marius Dumitru Florea
Pascal Bastien
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
--- En date de : Ven 6.11.15, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
> De: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> Objet: [xwiki-users] (About XWIKI-12570:Access right doesn't work well with subgroups) Try to remove some version from document with groovy
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Vendredi 6 novembre 2015, 16h19
> Hi,
>
> I try without success to remove some version from document
> with groovy :-(
>
> To refresh group cache I add & remove a member in a user
> group but I don't want my group be poluted by this
> operation.
>
Here correct code with Thomas help :-)
{{groovy}}
// My group to update
def MyGroup = xwiki.getDocument('XWiki.GF_PiloteP3')
print("Current Version : " + MyGroup.getVersion()+ " \n")
// My temp user
udoc = xwiki.getDocument('XWiki.xwikilecteur')
// Add this temp user
gObj = MyGroup.newObject('XWiki.XWikiGroups')
gObj.set('member',udoc.fullName)
MyGroup.save()
// Remove this temp user
MyGroup.removeObject(gObj)
MyGroup.save()
// get document Archive
def gArch = MyGroup.getDocumentArchive()
print("Prev version: " + gArch.getPrevVersion(gArch.getLatestVersion()) + " \n")
print("Last version: " + gArch.getLatestVersion() + " \n")
//remove 2 previous version archive
//gArch.removeVersions(gArch.getLatestVersion(), gArch.getPrevVersion(gArch.getLatestVersion()), xcontext.context)
// must remove 3 version because last saved add one version
gArch.removeVersions(gArch.getLatestVersion(), gArch.getPrevVersion(gArch.getPrevVersion(gArch.getLatestVersion())), xcontext.context)
MyGroup.save()
print("Current Version : " + MyGroup.getVersion()+ " \n")
{{/groovy}}
The XWiki development team is proud to announce the availability of XWiki
7.3 Release Candidate 1. This release candidate includes a couple of bug
fixes and a few dependency upgrades, as well as some improvements related
to Nested Pages. The extension developers should check the new UI extension
points available for the top menu.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki73RC1
The following people have contributed code to this release:
Clemens Robbenhaar
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hi,
I don't know where to put question about specific extension.
I would like to ask for suggesting some functionality to PlantUML Macro
extension.
http://extensions.xwiki.org/xwiki/bin/view/Extension/PlantUML+Macro
I would like to have option to parameterize type of ouput of PlantUML, e.g.
image or svg and with option to set the default output type.
Is it possible to add this? I know that not all types of diagrams support
svg, but for that case I would use explicit type.
Thank you
Best regards,
Miroslav Galajda