Hi,
Is it possible to create a new object of a custom class using the RESTful API?
The documentation page only lists the following POST method, which
doesn't accept a class name:
/wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects[?start=offset&number=n]
I have tried things like the following:
curl -u Admin:admin -X POST -H "Content-type: text/plain" -H "Accept:
application/xml" -d "@test.xml"
http://localhost/xwiki/rest/wikis/xwiki/spaces/Test/pages/Test/objects/XWik…
Where test.xml contains some variation on:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<properties xmlns="http://www.xwiki.org">
<property type="com.xpn.xwiki.objects.classes.TextAreaClass" name="Text">
<attribute value="Text" name="name"/>
<attribute value="Test" name="prettyName"/>
<attribute value="0" name="unmodifiable"/>
<attribute value="0" name="disabled"/>
<attribute value="100" name="size"/>
<attribute value="10" name="rows"/>
<attribute value="" name="customDisplay"/>
<attribute value="Text" name="editor"/>
<attribute value="6" name="number"/>
<attribute value="0" name="picker"/>
<attribute value="" name="validationMessage"/>
<attribute value="" name="validationRegExp"/>
<value>
This is some text.
</value>
</properties>
Curl returns this:
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>The method specified in the request is not allowed for the resource identifi
ed by the request URI</h3><p>You can get technical details <a href="http://www.w
3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
Simpler syntax without the XML file still fails for me. In fact, I
can't seem to even get the basic "create object" method to work, even
without the class. For example:
curl -u Admin:admin -X POST
http://localhost/xwiki/rest/wikis/xwiki/spaces/Test/pages/Test/objects
Just comes back with a "malformed syntax" error.
Is there an example anywhere of how to do this?
Thank you,
Aaron
I am looking to modify the editor in two ways:
1) I would like to change the default editor to the new CKEditor per these instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#H… I get stuck at: "In order to open the CKEditor by default (i.e. replace the default editor) you can edit the CKEditor.EditMenuEntry page in Objects mode..."
2) I would like to change the “Is Minor Edit” to checked by default and these are the only instructions I can find: http://lists.xwiki.org/pipermail/users/2009-August/012857.html I can locate many files in the /usr/lib/xwiki/templates folder that start with the word ‘edit’ but none of them are ‘editactions.vm’.
I am sorry if these are two totally different questions but they both seem to be related, as in each case I am unable to find the avenue for changing the default editor behavior. Thanks for your time.
Regards,
Jesse
Hello,
I try to list the connected users.
I fall on "Connected Users List Macro" but it dates from 2014.
Should I use this extension or is there another way to list open
connections ?
Thank you,
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
Tél. 02.40.37.68.06
Mail : bruno.joffredo(a)ec-nantes.fr <mailto:bruno.joffredo@ec-nantes.fr>
_________________________________________________
Hello,
I quickly tested the latest version of CKEditor. Here are my remarks :
* when I push the "Source" button, nothing appears. On the button, the
loading sign turns without ever stopping
* the style "Marker" is invisible
* is it possible to add a button for "Typewriter Text" (useful for the
code or configuration files)
* the horizontal line is invisible
Regards,
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
Tél. 02.40.37.68.06
Mail : bruno.joffredo(a)ec-nantes.fr <mailto:bruno.joffredo@ec-nantes.fr>
_________________________________________________
We try to move two Apps Within A Minute to another xwiki installation. The
files import properly but no icon appears on the left site under
applications. How can we achieve that the Apps Within A Minute will appear
as a real application and not only as pages.
Thank you!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Moving-Apps-within-a-minute-to-another-Xw…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi users,
I'm trying new ways to spread the word about XWiki. One approach that seems
to be popular right now are review websites such as Getapp and G2Crowd. For
instance Drupal has a page on G2Crowd
<https://www.g2crowd.com/products/drupal/reviews>, so I thought it could be
interesting to try it out too.
In order to see whether this could work well for XWiki, I have created a
page on G2Crowd: *https://www.g2crowd.com/products/xwiki/reviews
<https://www.g2crowd.com/products/xwiki/reviews>*
It would be very cool if you could spend a bit of time to add a review of
your experience with XWiki there!
Thanks and happy XWikiing,
Guillaume
Hi all,
In various web applications these days it is now possible to copy and paste images into web pages which makes the process of adding an image to a document online so much easier as you do not need to save it off somewhere, then upload it. Copy and paste makes the process so much more efficient.
See the upload feature on http://imgur.com/ for example, where they also support drag and drop.
Thanks,
Stuart
Disclaimer: The contents of this E-mail plus any attachment is intended for the use of the addressee only and is confidential, proprietary and may be privileged. It will not be binding upon Trace Group or any group company (Trace). Opinions, conclusions, contractual obligations and other information in this message in so far as they relate to the official business of Trace must be specifically confirmed in writing by Trace. If you are not the intended recipient you must not copy this message or attachment, use or disclose the contents to any other person, but are requested to telephone or E-mail the sender and delete the message and any attachment from your system. Trace takes all reasonable precautions to ensure that no virus or defect is transmitted via this e mail, however Trace accepts no responsibility for any virus or defect that might arise from opening this E-mail or attachments.
Hi there,
The login page of XWiki is situated in the XWiki space. From this space
it is not possible to load pages with a XMLHttpRequest in javascript. I
want to work around this by creating a seperate login page with exactly
the same content as the current XWiki login page.
I would like to know if this will pose a security risk or not. I do not
understand why it should but I am asking you to make sure I am not
forgetting anything.
If you like I can share the procedure with you because I think it can be
an improvement over the current situation.
Kind regards,
Jan-Paul Kleijn
Hi Users,
i try to create a hql-query which gives me all documents which contain a
custom object and and a defined property. As properties i have in the object
a multiselect user-list. Now i want to get all documents in which a specific
user is selected in the object. How can i write the hql?
I tried something from
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples but
nothing seems to work because i always get no results.
Could you help me?
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/HQL-Query-on-custom-object-with-user-list…
Sent from the XWiki- Users mailing list archive at Nabble.com.