Hello,
If you are certain of an error in FAQ Tutorial, you can edit the page and fix it IMO.
Xwiki is ... a wiki.
Thxs.
Pascal B
--------------------------------------------
En date de : Lun 30.1.17, Jesse Bright <jesse(a)abrightfamily.com> a écrit :
Objet: Re: [xwiki-users] FAQ Tutorial - Custom Creation Form
À: "XWiki Users" <users(a)xwiki.org>
Date: Lundi 30 janvier 2017, 16h36
I figured this out while
fixing the live table. The tutorial code references the
class and template pages as "FAQ.FAQClass" and
"FAQ.FAQTemplate". However the pages actually
created from the Class Editor wizard have a space:
"FAQ.FAQ Class" and "FAQ.FAQ Template".
After adding the space everything is working as expected. I
may have made a mistake in following the tutorial but it
didn't feel like it. Perhaps the tutorial needs updated
to reflect changes in the Class Editor.
Regards,
Jesse
Bright
Regards,
Jesse
>
On Jan 30, 2017, at 6:00 AM, Jesse <jesse(a)abrightfamily.com>
wrote:
>
> I am
trying to follow along while modifying the code to reflect
my app location which is “Corrections.2016” and it all
seems to work fine until I try to do the custom form
creation, which when submitted takes me to an "about
blank” page. Any thoughts on what I did wrong?
>
>
#if("$!targetDocName" != '' &&
$xwiki.exists($targetDocName))
>
{{warning}}The target document already exists. Please choose
a different name, or [[view the existing
document>>$targetDocName]]{{/warning}}
> #elseif("$!targetDocName" !=
'')
> {{warning}}You don't
have permission to create that document{{/warning}}
> #end
>
> {{html}}
> <form
action="" id="newdoc"
method="post">
>
<div>
> <input
type="hidden" name="parent"
value="${doc.fullName}"/>
> <input type="hidden"
name="template"
value="Corrections.2016.2016Template"/>
> <input type="hidden"
name="sheet" value="1"/>
> <input type="hidden"
name="spaceName"
value="Corrections.2016"/>
> Code Section: <input
type="text" name="docName"
value="Enter the code section here"
class="withTip" size="50"/>
> <span
class="buttonwrapper"><input
type="submit" value="Create this code
section" class="button"/></span>
> </div>
>
</form>
> {{/html}}
>
> Regards,
>
> Jesse Bright
Howdy,
Is it possible to setup an XWiki such that:
- Users can register AND validate email.
- After registration, users who have not been “approved” can only see one page that says “Please wait for approval for access to this wiki."
- Approved users have normal access controls.
Right now I have removed all rights from the XWikiAllGroup and I manually move users into the XWikiRegisteredUsers group (maybe a bad name since all users are registered, it just means I approved them for access). The only problem with this setup is that new users cannot validate their email until I have added them to the XWikiRegisteredUsers group. I have not yet figured out how to control access to that special Email Authorization page.
Thanks for any info!
Craig
Hello,
If you want something very simple to create, you can also use a class/sheet/template to make your checkbox:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial/FAQTutorialMa…
or : http://www.theserverside.com/news/1363830/XWiki-A-Platform-for-Collaborativ… (Understanding Classes and Objects create a todo app)
If you don't want store checkbox data, users could use the template (or another page)
Pascal BASTIEN
--------------------------------------------
En date de : Jeu 26.1.17, Jesse Bright <jesse(a)abrightfamily.com> a écrit :
Objet: [xwiki-users] List with Checkboxes
À: users(a)xwiki.org
Date: Jeudi 26 janvier 2017, 5h51
I am making a several lists with
tasks and associated checkboxes. The checkbox data will not
be stored or used in any way. It's only purpose is as a
reminder of tasks which have been completed.
My best idea for achieving this is to write a wiki macro
using the HTML macro to insert a checkbox input. However
this means I have to develop list tabbing behavior and write
my macro reference repeatedly in each list space.
Does any one know of a better or easier way to create a
checkbox list?
Regards,
Jesse
Hello,
After having succesfully migrated from a 300 pages mediawiki to xwiki
(which worked like a charm with the FilterStream app), I need to find a way
to automate modifications to the migrated xwiki pages.
In mediawiki, I could create "highlighted boxes" in which I put code by
simply adding a space caracter as the very first caracter of each line.
FilterStream application converted this empty space to "}}}" and "{{{"
which is totally the right way to convert this from the MW syntax to XWiki
syntax, but doesn't fit my needs.
Ideally, I'd like to convert every "{{{" tags to "{{code}}" and every "}}}"
tags to "{{/code}}"
Do you have any idea how to achieve this ?
Regards
Denis GERMAIN
The XWiki development team is proud to announce the availability of XWiki
9.0 Release Candidate 1.
This version opens the new 9.x cycle. It contains all improvements
introduced in versions 8.4.1 to 8.4.4, and brings admin and developer
features mostly. Among other things, XWiki deals better with big
attachments now.
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/Data/XWiki/9.0RC1/
Thanks for your support
-The XWiki dev team
I am making a several lists with tasks and associated checkboxes. The checkbox data will not be stored or used in any way. It's only purpose is as a reminder of tasks which have been completed.
My best idea for achieving this is to write a wiki macro using the HTML macro to insert a checkbox input. However this means I have to develop list tabbing behavior and write my macro reference repeatedly in each list space.
Does any one know of a better or easier way to create a checkbox list?
Regards,
Jesse
Ho great I didn't see that! Thxs Thomas
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HSharevariableb…
--------------------------------------------
En date de : Mar 24.1.17, Thomas Mortagne <thomas.mortagne(a)xwiki.com> a écrit :
Objet: Re: [xwiki-users] How to sort hashmap with velocity?
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>, "XWiki Users" <users(a)xwiki.org>
Date: Mardi 24 janvier 2017, 18h28
Note that if you are
using XWiki 8.3+ you don't need to go trough
xcontext to pass data between velocity macro
and other script macros.
Velocity variables
ends up in Groovy (as global variables) and the
opposite.
Ok, then I inesert groovy code between 2 velocity bloc to sort my map:
...
#end ##Fin foreach
$xcontext.put("xSiglesArray", $SiglesArray)
#end ## fin temporaire pour insérer le code groovy
{{/velocity}}
{{groovy}}
if(xcontext.get("xSiglesArray")){
SiglesArrayGv = xcontext.get("xSiglesArray");
// Trie le tableau (insensitive case )
SiglesArrayGv=SiglesArrayGv.sort { it.key.toLowerCase() };
xcontext.put("xSiglesArray", SiglesArrayGv);
xcontext.put("DoRegen", true);
}
{{/groovy}}
{{velocity}}
##
##Regénére la page et trie les entrées (suite)
#if ( $xcontext.get("DoRegen")== 'true' && $xcontext.get("xSiglesArray") )
##
#set ($SiglesArray= $xcontext.get("xSiglesArray"))
#foreach($Anchor in $AnchorsArray)
##
Thxs
--------------------------------------------
En date de : Jeu 19.1.17, Thomas Mortagne <thomas.mortagne(a)xwiki.com> a écrit :
Objet: Re: [xwiki-users] How to sort hashmap with velocity?
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>, "XWiki Users" <users(a)xwiki.org>
Date: Jeudi 19 janvier 2017, 14h58
On Thu, Jan 19, 2017 at
11:25 AM, Pascal BASTIEN
<pbasnews-xwiki(a)yahoo.fr>
wrote:
> Hello,
>
> with velocity I have a hashmap: sort of
variable with (key:value) that I want to sort, then I
use:
> #set ($myHashMap =
$collectionstool.getSortedMap(String, String))
> $myHashMap.put('Mykey3','My
value 3')
> http://platform.xwiki.org/xwiki/bin/view/ScriptingDocumentation/?url=http:%…
>
> It's working well
... except with uppercase because I want a sort with
insensitive case.
>
>
I tried to decrypt Javadoc and I found I could use:
String.CASE_INSENSITIVE_ORDER
> #set
($myHashMap =
$collectionstool.getSortedMap(String.CASE_INSENSITIVE_ORDER,
String))
> #set ($myHashMap =
$collectionstool.getSortedMap(String::compareToIgnoreCase,
String)) with java8
> but unfortunaly it
doesn't work (I have xwiki error)
Velocity is very far from supporting Java
syntax. Plus here you seems
to be mixing
CollectionsTool and TreeMap javadoc. CollectionsTool
contains only one getSortedMap() method and it
has no parameter.
There
does not seems to be any way to get a TreeMap configured
with
String.CASE_INSENSITIVE comparator in
Velocity. The main issue is that
you
can't create an object or access a static variable in
Velocity so
no way to use a method that
takes a Comparator as parameter even if
there was one (which is not the case for
maps).
Right now the only
alternatives seems to be:
* use Groovy
* write a script service in Java that provide
the feature
* patch CollectionsTool to add a
way to pass a comparator to the various methods
>
> Any idea to sort my
hashmap with with insensitive case?
>
> (Unfortunaly the better way I found is an
ugly way: I mix velocity with a piece of groovy but I'm
not satisfied at all because I use velocity loop and other
if.)
>
> Thxs for any
help.
>
> Pascal
B
--
Thomas
Mortagne
Hi,
I’m trying to use the Searchjql function to read data from our Jira server via the scripting api.
The Jira api allows to read any existing field, but I don’t understand how this can be done via the scripting api.
The second question I have is how to make a Json file out the answer which can be fed into a livetable.
There is also one issue I have. We have set up access to our jira server by password protected accounts only. If you have a pssword which contains a “$“ the api fails.
Any help is welcome.
Thanks, Wolfgang
Hi Markdown lovers,
Just wanted to announce that I’ve completely written XWiki support for the Markdown syntax (using flexmark-java instead of pegdown). It’s available as the “markdown/1.2” syntax inside of XWiki.
See http://extensions.xwiki.org/xwiki/bin/view/Extension/Markdown+Syntax+1.2 for details.
Please try it out and let me know how it goes.
If you find bugs please report them at http://jira.xwiki.org/browse/MARKDOWN
Thanks
-Vincent