Re: [xwiki-users] Re-organize the Drawer's entries
P5 is also my favorite because it draws more attention to the content. It's the more grown-up version. Op 26-10-2016 om 10:28 schreef Guillaume Delhumeau: No opinion? 2016-10-24 18:09 GMT+02:00 Guillaume Delhumeau < guillaume.delhum...@xwiki.com>: Hello dear developers and XWiki users. I would you to take a look at the issue http://jira.xwiki.org/browse/ XWIKI-13070. The problem is that the current order (that I have implemented based on my intuition) seems to not be clear for our users. The main point is that the menu mixes up global items (Home wiki, Wiki Index) and local ones (Administer Wiki, Page Index, Delete wiki, etc...). Caty and Oliver have made some proposals that you could find in the issue. They are called P1, P2, P3, P4 and P5. I propose you to express your preferences so we can implement it based on a consensus. Here are mine: P1: There is a logical order and separation between item. However, it seems the more used actions (Wiki Index, Page Index) are less visible than some other (Delete Wiki, Create Wiki...) P2: The order and the separation are logic. The "delete wiki" action is still very visible but all other items are good. P3: Same than P2. Except that having "Wiki Index" along with "User, Page and Application Index" mixes up local and global items. P4: Why not, but maybe the 3 first actions should be placed after the other ones, since they would be less used. Same remark about the mixing of local and global items. P5: A clear distinction between local and global scope. More used items are located first. This is my favorite one. So +1 for P5, +0 for the other options so far. Now, what about you? Thanks, Guillaume PS: I send this message to both devs and users mailing lists, because I think users are directly concerned by this topic. -- Guillaume Delhumeau (guillaume.delhum...@xwiki.com) Research & Development Engineer at XWiki SAS Committer on the XWiki.org project ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
And for one word only you close the span with (%%). Like so: (% class="plainmessage publish-message" %)$message(%%) Sorry vincent, did not want to seem like a wisenose :-) Greetings, Jan-Paul Vincent Massol wrote >Hi Pascal, > >(% class="plainmessage publish-message" %)((($message))) > >the (((…))) construct generates a DIV > >For a span you need: > >(% class="plainmessage publish-message" %)$message > >Thanks >-Vincent > >> On 19 Oct 2016, at 10:17, Pascal BASTIENwrote: >> >> (I resend my previous message: it seem xwiki users list didn't receive it or >> silent reject it) >> sorry maybe spaming? >> >> >> --- En date de : Mar 18.10.16, Pascal BASTIEN a >> écrit : >> >>> De: Pascal BASTIEN >>> Objet: riddle: howto insert a simple span with xwiki syntax? >>> À: "XWiki Users" >>> Date: Mardi 18 octobre 2016, 9h07 >>> Hello, >>> >>> With wiki syntax I failed to insert a simple span in a >>> velocity macro (Blog./BlogCode): >>> >>> #macro(publishMessageBox $message) >>> (% class="plainmessage publish-message" %)((($message))) >>> #end >>> >>> display: >>> >>> This article was published on 17/10/2016 >>> 16:47:06 >>> >>> >>> and I want a span in front of $message like this: >>> >>> This article was published >>> on 17/10/2016 16:47:06 >>> >>> >>> Is it possible (I can not use {{html}} because code is >>> escaped)? >>> >>> Here my test and what is displayed: >>> (% class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)((( )))$message))) >>> display >>> >>> >>> This article was published on 17/10/2016 >>> 16:47:06 >>> >>> >>> => With div instead span it is ok BUT there are >>> inserted :-( ! >>> >>> (% class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)$message))) >>> >>> >>> >>> This article >>> was published on 17/10/2016 16:47:06 >>> >>> >>> >>> => span inserted BUT I don't want end of span at the end >>> of the $message >>> >>> (% class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)((())) $message))) >>> >>> >>> >>> This article was published on 17/10/2016 >>> 16:47:06 >>> >>> >>> => With div instead span it is ok BUT there are >>> inserted :-( ! >>> >>> Have you got a solution? >>> Thxs >>> >>> Pascal B >>> > >___ >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
[xwiki-users] Application only saves input when xobject is opened in default language, not in other languages
Hi all, I have made an application with the following elements (with the default language set to English) * class * sheet * template The class (bookSystemCode.bookClass) has these objects on it: * XWiki.DocumentSheetBinding : XWiki.ClassSheet * AppWithinMinutes.MetadataClass : books * XWiki.ClassSheetBinding : bookSystemCode.bookSheet The sheet (bookSystemCode.bookSheet) has these objects on it: * XWiki.SheetClass : (empty) * XWiki.SheetDescriptorClass : edit The problem is that when I create a new XObject, fill the input fields and save the XObject it does not save the answers I have given in the input fields. This happens only when I open the XObject in another language as the default language. In the default language it works as it should. I understand that the XObject is linked to the default document but when done with AppWithinMinutes this change of language and saving the input works nicely. Can you give me a hint of what I am doing wrong here? Am I forgetting something? Thanks in advance Jan-Paul --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. https://www.avast.com/antivirus ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] saving a page using javascript
Hi good folks, Is there a way to save a page using javascript? I read the XWiki JavaScript API but could not find this functionality. Thanks in advance, Jan-Paul --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. https://www.avast.com/antivirus ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Date format in FAQ application
For more information on this subject you can refer to http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html Op 6-5-2016 om 11:02 schreef Clemens Klein-Robbenhaar: The right format is probably '-MM-dd hh:mm:ss'. with only one 'm' for minute it tries to show minute as single digit when ever possible ... which is just what your got Anybody, any idea ? I noticed the format is broken also in view/Main/AllDocs table. R. On 2016-04-25 11:18, Ryszard Łach wrote: Nope. I've set it to '-MM-dd hh:m:ss'. It works in other places (e.g. applications created via AppWithinMinutes) but not in FAQ. R. On 2016-04-25 10:59, Marius Dumitru Florea wrote: Setting the Date Format in Administration / Localization doesn't have any effect? On Wed, Apr 20, 2016 at 9:30 PM, Ryszard Łachwrote: Hi, again. How can I correct date format (to include leading zeros) in faq application? I suppose, that changing the default language of my wiki to 'pl' has broken the format and now 'Creation date' in list of faq entries looks like '2016-04-15 09:6:34' . TIA, R. ___ 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
Re: [xwiki-users] Creating a seperate login page in a space that is not blocked (ie XWiki)
Hi, Thanks for helping. My precise problem is that it is not possible to load the page XWiki.XWikiLogin with the use of XMLHttpRequest in javascript. I have tested this when logged in and when not logged in. This is the example code (from W3Schools.com, a little bit compressed): {{velocity}} {{html}} Using the XMLHttpRequest object Change Content function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.onreadystatechange = function() { </pre><tt>if (xmlhttp.readyState == 4 && xmlhttp.status == 200) </tt><tt>document.getElementById("demo").innerHTML = xmlhttp.responseText; </tt><pre style="margin: 0em;"> }; </pre><tt> xmlhttp.open("GET", </tt><tt>"$xwiki.getURL('XWiki.XWikiLogin','login')?xpage=plain", true); </tt><pre style="margin: 0em;"> xmlhttp.send(); } {{/html}} {{/velocity}} This results in a console logged javascript error report stating a "401: Unauthorized" error. I have tried it with another page in the XWiki space and that page /can/ be requested via GET. So I suspect it is not the space but the page (XWiki.XWikiLogin) that cannot be fetched via a GET request in javascript. Regards, Jan-Paul Op 10-2-2016 om 10:31 schreef Eduard Moraru: Hi, On Mon, Feb 1, 2016 at 12:36 PM, Jan-Paul Kleijn <em...@biggee.nl> wrote: 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. Please be more precise on your original problem. What have you tried and what has failed? The only particularity about the XWiki space is that it has a space-level edit right restriction, allowing only XWikiAdminGroup to edit, but that`s about it so I`m not sure you need to go through the trouble of creating a new login page. Thanks, Eduard 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 ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Creating a seperate login page in a space that is not blocked (ie XWiki)
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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to inject some velocity or groovy code into my 'app within minutes' template?
Hi Danny, To make a dropdown in Bootstrap, see this page: http://getbootstrap.com/components/#dropdowns To make a list of pages in XWiki, see this page: http://extensions.xwiki.org/xwiki/bin/view/Extension/List+All+Documents+In+A+Space Combine these two and you have a nice page viewing widget! Yours codingly, Jan-Paul Op 14-1-2016 om 13:57 schreef DannyS: Hi Marius, Sorry to ask again, but I'm quite lost. Is there any additional resources you could recommend? Or is there any apps that you know of which currently perform this type of behaviour, that I might examine their structure and code for help? Thanks Danny -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-inject-some-velocity-or-groovy-code-into-my-app-within-minutes-template-tp7597518p7597543.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ 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