One of our users accidently modified the search script, which prevented all other users from searching. All of our users have scripting right as they use "App within a Minute".
I found that these users may modify system scripts and I was unable to protect this scripts from modifications.
We are running Xwiki 7.4.2.
Users rights set:
View, Edit, Comment, Script, Register.
Any Idea what to do?
Wolfgang
Hello,
In our department, the actuel wiki is based on Mindtouch/dekiwiki and we
want to go to for a global wiki for the company with Xwiki.
To do that, we need to transfer our data from the actual wiki and I
managed to extract all the pages in HTML format (600+ files).
I have found in the mailing list history a reply from Vincent in August
2013 to a similar request :
------
Hi Jason,
I don't know of any existing Mindtouch converter to XWiki. However there
are several handmade converter tools on http://extensions.xwiki.org that
could serve as examples.
What is the markup syntax used by Mindtouch? I have the feeling they
only provide HTML which would be fine since XWiki's Rendering can
convert HTML into wiki markup for example (or keep it as HTML too).
So converting a page would be:
* Read the export format from Mindtouch (what is it? XML?)
* Use the XWiki API to create a wiki page, convert the HTML content to
wiki markup (easy to do), add attachments
Also note that Thomas Mortagne (one of the XWiki committer) is currently
working on a wiki stream API that is an ideal scaffolding for
importing/exporting wikis:
https://github.com/xwiki-contrib/wiki-stream . But there's non trivial
dev work to be done to make it work.
Another idea is to contact one of the companies providing professional
services around XWiki and ask them how much it would cost for a
conversion:
http://www.xwiki.org/xwiki/bin/view/Main/Support#HProfessionalSupport
Hope it helps,
-Vincent
------
Could you please point me to the right direction to convert my 600+ HTML
pages to xwiki markup ?
If you have any information to help me for the integration, that would
be very kind of you
Thank you for your help.
Daniel.
The XWiki development team is proud to announce the availability of XWiki 7.4.3.
This is a bugfix release that fixes important bugs discovered in the 7.4.2 version.
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/ReleaseNotesXWiki743/
The following people have contributed code to this release (sorted alphabetically):
Alexandru Cotiuga
Clemens Robbenhaar
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
The XWiki development team is proud to announce the availability of XWiki
8.1 Milestone 2.
This milestone release brings a new parameter to the Document Macro, the
synchronization of the avatars coming from LDAP and the support of feeds
delivered over HTTPS in the RSS Macro.
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/ReleaseNotesXWiki81M2
The following people have contributed code to this release (sorted
alphabetically):
- Alexandru Cotiuga
- Clemens Robbenhaar
- Eduard Moraru
- Guillaume Delhumeau
- Lukas Raska
- Manuel Smeria
- Marius Dumitru Florea
- Thomas Mortagne
- Vincent Massol
- Yuri Konotopov
Thanks for your support
-The XWiki dev team
Hello everyone,
I want to disable the skin preview functionality from my xwiki instance. so
that urls in the form https://mywiki.com?skin=colibri do not actually
change the current skin, and just use my default.
The reason for this is that I've overridden a skin with extra functionality
and made that my default skin, reverting to a different one now breaks some
of the wiki functionality that relies on my changes.
Any idea on where the modifications to support this can be made?
Thanks
Hi all,
tomorrow we will perform some operations on www.myxwiki.org to migrate
it to a new virtualization platform.
These operations will last around 4h (depending on how fast the
data-transfer will be)
We are going to start around 9h30 (Paris time) and if everything goes
fine the wiki should be back at the end of the morning.
During the operations the wiki will stay up and accessible but it will
be set in read-only mode.
We apologize for the inconvenience.
Thanks,
Fabio Mancinelli
Infrastructure Manager
XWiki SAS
Hello all:
working on an App Within Minutes application, and I'm including a Database
List field. It keeps including as one of the results an item called
Blog.BlogPostTemplate. where on earth is that coming from, why is it getting
into my list, and how do I get rid of it?
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Blog-BlogPostTemplate-in-Database-List-tp…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi all,
we are going to perform some operations on l10n.xwiki.org to migrate
it to a new virtualization platform.
These operations will last around 4h (depending on how fast the
data-transfer will be)
We are going to start at 16h30 (Paris time) and if everything goes
fine the wiki should be back at the end of the day.
During the operations the wiki will stay up and accessible but it will
be set in read-only mode.
We apologize for the inconvenience.
Thanks,
Fabio Mancinelli
Infrastructure Manager
XWiki SAS
Hi all,
I'm an XWiki newbie. I've written a script that generates an HTML file,
and then I upload it as an attachment to XWiki. When I create a link on
that file, and then click the link, I get the HTML file downloaded by the
browser, rather than displayed.
>From what I've read, this may be caused either by something in my HTML or
by an XWiki setting.
In the HMTL, my headeer looks like this:
<!DOCTYPE html><html><head><meta http-equiv="Content-Type"
content="text/html; c
harset=utf-8" /><h1 align=center>NITS Solutions AWS Server
List</h1><style>table
, th, td { border: 2px solid black; border-collapse: collapse;
}</style></head>
My undedrstanding is that the 'text/html' should tell the browser to
display rather than download.
Also, in the xwiki.properties file, in the Attachment section, I found the
'attachment.download.whitelist' and 'attachment.download.blacklist', but
both were commented out, which I assume means this feature is disabled? I
even tried uncommenting the whitelist and making sure it contained
'text/html', and then bouncing, but it made no difference.
Can anyone offer me a clue? I just want my simple little document to
display rather than download.
Thanks,
-Mark
I made an App within Minuts application that is basically a list of job
responsibilities. It's just two fields, job name and job description. Can I
change the "edit" behaviour? If I go to the main page, there is a live table
showing a list of all the job descriptions. If you want to "edit" one, you
press the edit action, and it takes you to the data input screen to edit the
job description. But when you press the "save" button, I want it to save the
data and automatically take you back to the main App screen (the list of
jobs). Casual users won't know that they are supposed to go back to the main
screen.
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Changing-App-within-minutes-behaviour-tp7…
Sent from the XWiki- Users mailing list archive at Nabble.com.
So I was trying to do a custom mapping of an xobject to a mysql file, I think
I followed the instructions (but obviously not) and it doesn't work. Where
in the logs will I find error messages (if any) from hibernate?
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Hibernate-logs-tp7599172.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi.
I have a problem with solr search (Xwiki 7.2.4), I suppose it is language-related. My config is:
Multilingual=no
Supported languages = pl
Default language = pl
I have imported some documents (from .xar-s) from older xwiki instance. Most of them had (wrong) language - it was set to 'en' in old wiki. Because I want to clear up the new installation, I've changed 'xwd_default_language' for this documents in database to 'pl', restartex xwiki, removed solr index.
Is it possible, that I missed something and it that's why I cannot find some documents by part of title?
R.
It is my understanding that XWiki includes the Apache Batik library to handle
SVG content, so my question is why does XWiki not handle SVG content
natively (without the SVG Macro), and why does the browser have to support
SVG? With Batik, shouldn't XWiki be able to render the SVG without the help
of the browers?
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-SVG-and-Apache-Batik-tp7599123.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi!
When I try to delete group page with 4000+ members then I see error below.
I resolve this error with attached files by disable version control, but I
don't know how resolve it in this case.
-Xms512m -Xmx6144m -XX:MaxPermSize=256m
I tried increase Xmx to 14000m, but not helped
Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:435)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:798)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.lang.StringBuffer.ensureCapacityImpl(StringBuffer.java:338)
at java.lang.StringBuffer.append(StringBuffer.java:204)
at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:673)
at org.suigeneris.jrcs.util.ToString.toString(ToString.java:42)
at
com.xpn.xwiki.doc.XWikiDocumentArchive.getArchive(XWikiDocumentArchive.java:200)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4512)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4540)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:4280)
at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:4192)
at
com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:193)
at
com.xpn.xwiki.doc.XWikiDeletedDocument.<init>(XWikiDeletedDocument.java:89)
at
com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:122)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3580)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3558)
at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:97)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:407)
... 49 more
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-delete-group-page-with-4000-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi.
Is there an easy way to add link to Jira Issue Collector to every page in xwiki? It should be sufficient to add a some javascript in <head> </head>, but looking and Flamingo skin's docs It is not clear to me how to do this.
Best regards,
R.
Hi all,
I'm wanting to create a simple XWiki "app" and being new to this wanted
to get some advice before starting.
What I want is probably not too far removed from the FAQ app, so it may
well look a bit like this, but I wanted to get some pointers before
heading off in the wrong direction.
The app is essentially a directory of "things" where each "thing" will
be its own wiki page, and there will be a master page that lists them
all and allow pagination, filtering etc. (livetable etc.)
The "things" will have a small number of "fields", not too different
from the FAQ app. But where it may differ is that the page for each
"thing" should also allow free form editing of the wiki page so that
arbitrary additional info can be added (even including scripts etc.)
This arbitrary extra info will just be part or the page, not part of the
directory.
The page for each "thing" will therefore be a combination of structured
info (the fields) appearing at the top of the page in a consistent
manner across all pages), and non-structured info appearing below this.
All advice greatly appreciated.
Tim
Hi,
starting a few days ago, our XWiki application isn't running anymore.
After restarting Tomcat, the following Stacktrace is shown. The XWiki
version is 5.2.1. The logfiles mostly also show this stacktrace.
Any help is welcome, thank you in advance.
Matthias
javax.servlet.ServletException: java.lang.RuntimeException: Component
manager has not been initialized before lookup for
[org.xwiki.model.reference.DocumentReferenceResolver< java.lang.String
>] for hint [currentmixed]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
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)
root cause
java.lang.RuntimeException: Component manager has not been initialized
before lookup for [org.xwiki.model.reference.DocumentReferenceResolver<
java.lang.String >] for hint [currentmixed]
com.xpn.xwiki.web.Utils.getComponent(Utils.java:700)
com.xpn.xwiki.XWikiContext.<init>(XWikiContext.java:151)
com.xpn.xwiki.web.Utils.prepareContext(Utils.java:382)
com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:426)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:125)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
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)
--
Matthias Albert
Rastatter Straße 26
76199 Karlsruhe
Tel. +49 (0)721 885744
Email: matthias.albert(a)posteo.de
Dear all,
a view weeks ago we updated our xwiki application from version 6.2 to version 7.4, but since upgrading the wiki we encountered several problems with the ACE editor. The problems causes unexpected behaviors (loading the article content in the ace editor will never end due to javascript errors) when editing articles or create new ones.
The root problem seems to be the Xuake script (http://baseurl/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1) tries to intialize the ace library, but I guess something is missing.
Below is listed the console output when running the create new page wizzard in the xwiki.
HTML1406: Invalid tag start: "<?". Question marks should not start tags.
WebHome (1,2)
-------------------------------------------------------------------------------------------------------
SCRIPT1010: Expected identifier
WebHome (1,9)
--------------------------------------------------------------------------------------------------------
SCRIPT5009: 'ace' is undefined
Xuake (143,7)
-------------------------------------------------------------------------------------------------------
SCRIPT5007: Unable to get property 'noConflict' of undefined or null reference
WebHome (81,54)
---------------------------------------------------------------------------------------------------------
SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.
WebHome
---------------------------------------------------------------------------------------------------------
SCRIPT1002: Syntax error
text.js (1,1)
--------------------------------------------------------------------------------------------------------
SCRIPT5007: Unable to get property 'normalize' of undefined or null reference
require.min.js (20,263)
---------------------------------------------------------------------------------------------------------
SCRIPT5022: Load timeout for modules: text!ace/css/editor.css_unnormalized2,jsTree,text!ace/theme/textmate.css_unnormalized3
http://requirejs.org/docs/errors.html#timeout
require.min.js (8,137)
---------------------------------------------------------------------------------------------------------
SCRIPT438: Object doesn't support property or method 'getLayout'
prototype.js (11,59324)
---------------------------------------------------------------------------------------------------------
SCRIPT438: Object doesn't support property or method 'getLayout'
prototype.js (11,59324)
---------------------------------------------------------------------------------------------------------
SCRIPT438: Object doesn't support property or method 'getLayout'
prototype.js (11,59324)
---------------------------------------------------------------------------------------------------------
SCRIPT438: Object doesn't support property or method 'getLayout'
prototype.js (11,59324)
--------------------------------------------------------------------------------------------------------
Hopefully somebody has an idea what is missing and can give me some help with that issue.
Let me thanks you for your investigations in advice.
Mit freundlichen Grüßen / Kind regards
Sebastian Schabbach
Hi,
I am evaluating the XWiki Rendering Framework for a project of ours.
It was no problem to create a little POC to render some sample XWiki syntax
into HTML. Next I tried to write a little colour macro that simply renders
some text in a colour which is specified as a macro parameter. However, I
did not manage to get the macro executed. In the resulting HTML output I
get the error message:
Unknown macro: colour.The "colour" macro is not in the list of registered
macros. Verify the spelling or contact your administrator.
Now I have the following questions:
Is it possible at all to render a macro and execute it standalone with the
rendering framework (as opposed to running it in the XWiki Platform)?
As mentioned above, I implemented a little POC application that simply
renders XWiki syntax. The macro itself I implemented as a standalone jar. I
put the macro jar in the class path and the macro's package to the
context.txt of the POC application. Is that correct so far?
Am I missing something totally altogether?
Thanks for your help in advance.
Regards,
Thomas
Hi Users,
i want to hide the header bar on the login screen and marked for that
###template("startpage.vm")
out in login.vm. Then i restart the server. But nothing changed. I cleared
the browser cache but this is not the problem.
Is this not the right place?
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/Hide-Harder-Bar-on-Login-Screen-tp7599022…
Sent from the XWiki- Users mailing list archive at Nabble.com.
So I am writing this Quality Manual using XWiki; The main manual is one page,
has many headings, and a TOC. There's also a bunch of supporting procedures,
all linked to one another, and the system is really slick
The problem is, we sometimes need to hand out hard printed copies of the
manual to source inspectors to take with them. So when I go to print the
manual, I want to include an Index with page numbers like in a book. Is
there a way to do that?
Dan.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Printable-Index-tp7599082.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi.
Is there a way to migrate (xwiki 7.2.4) an application created via AppWithinMInutes to another node in the same wiki tree, with all documents created by the app ? The easy way (move parent document with all children) doesn't seem to work.
TIA,
R.
Hi
I started off on something I thought would be simple, but my limited knowledge is failing me and Google isn’t bringing up anything useful.
Basically, I have a url that returns JSON content (for the sake of this example – assume the url is https://status.com/api/status.json)
The content returned by the URL is:
{"page":{"id":"9jyl5nk7mszv","name":"Custodian DataCentres","url":"http://status.custdc.net","updated_at":"2016-04-19T15:45:36.626+01:00"},"status":{"indicator":"none","description":"All Systems Operational"}}
What I wanted to do was to simply read that JSON and then process the values and possibly output something like:
Status: All Systems Operational
Last Update: 2016-04-19T15:45:36
So far I have managed to get the URL content with:
{{velocity}}
#set($jsoncontent = $xwiki.getURLContent(‘https://status.com/api/status.json’))
$jsoncontent
{{/velocity}}
This is where I get stuck. How do I get the $jsonconent into an array or somehow read the values?
Apologies for the basic question, but I hope someone can either point me in the right direction or provide an example I can work from. Thanks.
Kind regards,
Mahomed Hussein
Custodian Data Centre
Email: Mahomed(a)CustodianDC.com
http://www.CustodianDC.com