Hey All,
I've seen a couple of threads out in the web about importing an "XAR" file programatically, however it seems they might be out of date a bit. Has anyone had any luck using the API that xwiki has to do such a thing?
Thanks,
Chris.
Hi Pascal,
Internally we generate an anchor id based on the heading text:
/**
* Generate a unique id attribute using the passed text as the seed value. The generated id complies with the XHTML
* specification. Extract from <a href="http://www.w3.org/TR/xhtml1/#C_8">XHTML RFC</a>:
* <p>
* <code> When defining fragment identifiers to be backward-compatible, only strings matching the pattern
* [A-Za-z][A-Za-z0-9:_.-]* should be used.</code>
* </p>
*
* @param prefix the prefix of the identifier. Has to match [a-zA-Z].
* @param text the text used to generate the unique id
* @return the unique id. For example "Hello world" will generate prefix + "Helloworld".
*/
public String generateUniqueId(String prefix, String text)
Called with:
id = idGenerator.generateUniqueId("H", text);
This is why for the text “Level1 - Séct-io'n 4” we generate “HLevel1-SE9ct-io27n4"
What we could do though is allow the user to enter the heading text instead of the id and generate the id internally. However there’s stil the issue that generateUniqueId will generate a unique id (if you have twice the same heading, the second heading id will have “-1” suffixed..
In any case I agree it’s not user-friendly for this use case but also when specifying the anchor in the wiki link syntax and you should open a JIRA issue IMO.
Thanks
-Vincent
On 28 May 2014 at 14:50:28, Pascal BASTIEN (pbasnews-xwiki@yahoo.fr(mailto:pbasnews-xwiki@yahoo.fr)) wrote:
> Hello,
>
> The include function is to hard to use with some non-us character like french: éèà'ç ...
>
>
> By example, I have a document with this section:
>
> = Level1 - Séct-io'n 4 =
>
> Bla bla
>
> if I want to include this section: "Level1 - Séct-io'n 4" I must use this include
> {{include reference="Pagefille2" section="HLevel1-SE9ct-io27n4"/}}
>
> I must replace special character with unicode code:
> http://www.utf8-chartable.de/
>
> I can use another way?
> I must open a bug on http://jira.xwiki.org/ ?
>
> NB: anchor doesn't work with include.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hello,
The include function is to hard to use with some non-us character like french: éèà'ç ...
By example, I have a document with this section:
= Level1 - Séct-io'n 4 =
Bla bla
if I want to include this section: "Level1 - Séct-io'n 4" I must use this include
{{include reference="Pagefille2" section="HLevel1-SE9ct-io27n4"/}}
I must replace special character with unicode code:
http://www.utf8-chartable.de/
I can use another way?
I must open a bug on http://jira.xwiki.org/ ?
NB: anchor doesn't work with include.
I have been tasked with updating an older Xwiki site and am just looking for
some info/links on what I am looking at. We are currently using 2.7.2 and I
want to upgrade to the latest 5.4.4. How much info am I going to lose and
can any of it be imported/exported? Thanks for any insight. I am new to
xwiki and will be doing a lot of reading.
Thanks all for any help or insight.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Massive-upgrade-tp7590389.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello XWiki community,
I have been following other open source communities and there one, the
XenServer community, that has a nice initiative, the Xen Document Day:
http://wiki.xenproject.org/wiki/Xen_Document_Days/TODO
" Xen Project document days are all day IRC events, facilitated by members
of the Xen Project community. The purpose of Xen Project Document Days is to
Improve user documentation
Improve developer documentation, including the creation of man pages,
etc.
Improve and maintaining the wiki: this means fixing important pages,
retiring old ones, help identify what is and isn't important, write new
pages, etc."
Do you think that this idea could be applicable to XWiki?
Danilo
Grupo Energisa
Danilo Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.oliveira(a)energisa.com.br | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
Hello,
trying to install UI upgrade using distribution wizard I get a message
for "XWiki
Enterprise - UI - Common 5.4.4":
Programming right is required to install extension
[org.xwiki.platform:xwiki-platform-search-solr-api-5.4.4] on namespace
[wiki:rosmi]
class org.xwiki.extension.InstallException: Failed to resolve
extension at
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:698)
...
Entire text from UI attached to this email.
I guess the limitation of a xwiki farm was that I will not have any
programming rights. Can I just skip this upgrade? Or wait for a fix?
Many thanks,
Roman
2014-04-22 14:50 GMT+02:00 Guillaume Fenollar <guillaume.fenollar(a)xwiki.com>
:
> The upgrade ended successfully.
>
> If you're an admin of your wiki, you'll see the Distribution Wizard when
> you log in. Don't skip this step and do your wiki's upgrade properly, it's
> important.
>
> If you have any question regarding the pages upgrade, feel free to ask
> here.
>
> Thanks,
>
> Guillaume Fenollar
>
>
> 2014-04-22 12:02 GMT+02:00 Guillaume Fenollar <
> guillaume.fenollar(a)xwiki.com>
> :
>
> > Hello all,
> >
> > I'll perform an XWiki upgrade of myxwiki.org farm from 5.2 to 5.4.4, to
> > prevent it from crashing again.
> > It'll start today at 12:30 CEST (GMT+2) and shouldn't take more than two
> > hours.
> >
> > Thank you for your understanding.
> >
> > Guillaume
> >
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Sometime it would be usefull to set "someware" one or more variables to use
in the wiki text in order to change them in a single point and see value
change propagated in every page containing the variable.
Is it possible ?
How ?
Tks
--
View this message in context: http://xwiki.475771.n2.nabble.com/Using-variables-tp7590678.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello Marius,
I could make the webservice and PoC works but I am not using the method $jsontool.serialize.
What is the impact if I not use this serialize method?
Ps.: I have updated the documentation.
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiJSONWebServiceKickStart
Thanks.
Danilo
Grupo Energisa
Danilo Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.oliveira(a)energisa.com.br | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
-----Mensagem original-----
De: users [mailto:users-bounces@xwiki.org] Em nome de Marius Dumitru Florea
Enviada em: terça-feira, 20 de maio de 2014 08:14
Para: XWiki Users
Assunto: Re: [xwiki-users] Spatial Map Extension
On Mon, May 19, 2014 at 10:20 PM, Danilo Amaral de Oliveira <danilo.oliveira(a)energisa.com.br> wrote:
> Hello People,
>
> We are planning to develop an extension that will link and show the documents of a specific wiki spacially allowing the user explore the page dynamically. The idea is similar to the "Just map it" extension.
>
> Our first step was to look some javascript framework available to draw the relationships that could work for us and we came to conclusion that the sigma.js or d3.js will work fine...
> But, I am worried with the data connection, how can I parse the data from the DB to the extension dynamically?
>
> Do you think the kind of webservice bellow could work?
> dev.xwiki.org/xwiki/bin/view/Drafts/XWikiJSONWebServiceKickStart
The direction is ok, but:
* you should use the 'get' action instead of 'view' to access the webservice:
$xwiki.getURL('Main.WebService', 'get', $escapetool.url({
'outputSyntax': 'plain',
'limit': 10
}))
* the webservice should build the JSON in memory using plain Java objects (maps, lists, strings, numbers, boolean) and then serialize it. In Velocity you can use:
$jsontool.serialize({
'foo': [1, 2, 3],
'bar': {
'color': 'red',
enabled: true
},
'name': 'XWiki'
})
For writing the webservice I would start with Velocity and then move to Groovy but only if really needed.
Hope this helps,
Marius
>
> Thank you!
>
>
> Grupo Energisa
> Danilo Oliveira
> Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
> e-mail: danilo.oliveira(a)energisa.com.br | tel: (32) 3429-6342 | cel:
> (32) 8452-9478
>
> Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador.
> Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello Community,
Can I use velocity methods inside my JS code?
For example, I want to parse my JSON text to Java objects inside a JS function:
<js code>
Function function (){
Var test = $jsontool.parse('["json string"]')
}
Function();
</js code>
Is it possible?
Thanks
Danilo
Grupo Energisa
Danilo Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.oliveira(a)energisa.com.br | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately.
Hello,
Just a word to indicate than xwiki 6.0 (or UI extension) contain this page on new wiki: under XWiki/OfficeImporter
/bin/view/XWiki/EdouardEV
Edward.
The story I
will tell you may seem crazy, you will find exciting or perhaps
annoying, but you should read it to the end .. That's all I have to say
..
It is simply the story of a man named Edward.
Edward's
father and recently married to Hailey, a young blonde woman, looking
like a femme fatale-length hair, chestnuts brown eyes, luscious lips,
and a pretty bright complexion.
...
<cut>
...
Thus, the love of two fools, was considered much more important than the life of the mother of the son of Eward ..
The latter, who was in bed, a few hundred meters from here, will be
recovered by Edward and Hailet, and will remain in ignorance, diabolical history, probably decades, or perhaps even for life .
End.
Thxs
Pascal B.
Je serai absent(e) à partir du 27/05/2014 de retour le 28/05/2014.
je suis en congés.
Je répondrai à vos messages dès mon retour.
En cas de problème technique lié aux progiciels du CESAP, veuillez
contacter SYNOX au 05 67 34 66 56.
Merci
Hi
I had had xwiki application installed on my local machine. When I wanted to install new version I ran into a problem. During startup application is able to somehow tell that there was another xwiki version installed and is trying to migrate data. I don't want to have old data migrated to the fresh installation. I've deleted index old files, changed database schema, removed previous one - but during startup application is still trying to access old database to perform data migration. Where the informations about old installation is comming from? What other remains should I remove to make xwiki 'forget' about previously installed one?
Best regards,
Paweł
Dear community,
I wanted to test the apt/1.0 syntax, so I updated xwiki.cfg to add
"apt/1.0" in parameter "xwiki.rendering.syntaxes" and restarted my wiki.
When editing a page, no "apt/1.0" choice appeared in the Document Syntax
Panel.
So in another page I displayed the available parsers and renderers, which
gave:
Parsers : [XWiki 2.1, Markdown 1.0, XWiki 2.0, TWiki 1.0, XWiki 1.0,
JSPWiki 1.0, MediaWiki 1.0, DocBook 4.4, HTML 4.01, XHTML 1.0, Creole 1.0,
Confluence 1.0, Plain 1.0]
Renderers : [DocBook 4.4, TeX 1.0, XWiki 2.1, Annotated XHTML 1.0, XWiki
2.0, XHTML 1.0, XHTML Macro 1.0, Plain 1.0]
(I'm on 5.1, apt was added in 4.3, so it should be there unless it was
removed later and I missed the release note - or there was an error during
install/upgrade but it seems unlikely)
So from Extension Manager, I searched and installed
org.xwiki.rendering:xwiki-rendering-syntax-apt-5.1.jar.
No change on the list of parsers/renderers, still no APT.
I thought that probably renderers and parsers are registered only at start
and maybe not by EM, so I restarted the wiki again, but no change on the
list of parsers/renderers.
Eventually I moved that jars (for xwiki-rendering-syntax-apt and
xwiki-rendering-xml) from the extension repository under perm data dir, to
WEB-INF/lib of the webapp, and restarted again, and apt now appears in the
list of parsers/renderers !
Then I tried to enter some content in a page, with apt syntax, and on
saving got this:
Caused by: java.lang.NoClassDefFoundError:
org/apache/maven/doxia/module/apt/AptParser
at
org.xwiki.rendering.internal.parser.apt.APTParser.createDoxiaParser(APTParser.java:50)
~[xwiki-rendering-syntax-apt-5.1.jar:na]
at
org.xwiki.rendering.internal.parser.doxia.AbstractDoxiaParser.parse(AbstractDoxiaParser.java:99)
~[xwiki-rendering-syntax-doxia-5.1.jar:na]
at
org.xwiki.rendering.internal.parser.doxia.AbstractDoxiaParser.parse(AbstractDoxiaParser.java:70)
~[xwiki-rendering-syntax-doxia-5.1.jar:na]
at
com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:7975)
~[xwiki-platform-legacy-oldcore-5.1.jar:na]
[...]
... 50 common frames omitted
... though from EM, dependencies of the apt renderer seem to be correctly
installed (either provided or installed) :
XWiki Rendering - Syntax - Doxia Bridge5.1 (in wiki xwiki) Provided
Doxia :: APT Module1.3 (in wiki xwiki) Installed
XWiki Rendering - Legacy - API5.1 (in wiki xwiki) Provided
XWiki Commons - Legacy - Component - API5.1 (in wiki xwiki) Provided
doxia-module-apt-1.3.jar is present in extensions repo (under data dir), so
I thought maybe it had to be present in WEB-INF/lib (though it seems
surprising that it could cause an error, never had those kind of
classloader issue with xwiki extensions). So I moved it to WEB-INF/lib and
restarted and .... now it's ok. Just tested with a page, and the result is
very nice ! :)
To be complete, I checked in war file of 6.0.1, and
xwiki-rendering-syntax-apt-6.0.1.jar is not present. So I suppose APT
format has not be much used yet ;-)
Thanks,
Jeremie
PS: I would love to be able to publish a maven site to XWiki ... But I
think parsing APT from xwiki may not be the best, as the idea is not to
edit a maven site from xwiki (at least, my purpose is to view published
maven sites, you could use apt parser to edit maven sites sources). What I
would like is to be able to view a maven site from a site packaged in a jar
in a maven repository, and use xwiki as a front-end for maven sites - that
would be cool (or publish those jars into xwiki as attachments, so they
would be indexed by solr)
Hey all,
I'm trying to add a user to a group (Lets say XWikiAdminGroup) by utilizing the XwikiGroupService.addUserToGroup. Is this the correct way to go about this programmatically? Or should I go about it another route?
Thanks,
Chris.
XWikiEnterprise 5.2.4
Hi,
is it possible to change the compression settings for the image plugin?
With the default settings, the quality of downscaled images is rather low.
Greetings, Michael
The XWiki development team is proud to announce the availability of
XWiki 6.1 Milestone 1.
This release introduces the ability to change the width of the panel
columns and comes with an improved Active Installs feature (with
evolution graph and many new filters). Developers can now use the LESS
preprocessor for skin style sheets. A couple of bug fixes (18) and
some small improvements (24) make this release worth trying.
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/ReleaseNotesXWiki61M1
Thanks
-The XWiki dev team
Hello xwikiers,
as usual I google "xwiki syntax" and find a first match being this page:
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax
But it now displays "Failed to execute the [groovy] macro" with a root cause being a dom4j error.
I am not sure how to debug that without console.
paul
I just upgraded my test server to 6.0 and ran into some troubles that
maybe others would appreciate hearing about.
First there was the mysql root password issue as reported at
http://jira.xwiki.org/browse/XE-1396
Xwiki still wouldn't start after the upgrade and
/var/log/tomcat7/localhost.log said "SEVERE: Error configuring
application listener of class org.xwiki ... Unsupported major.minor
version 51.0"
Turns out my server had java6 AND java7 installed and I think tomcat was
picking up 6 which no longer works for Xwiki 6.0. So I opened up
/etc/default/tomcat7 and set the JAVA_HOME var to the java7 folder and
now xwiki works again.
Hope that helps someone out there... :)
See http://jira.xwiki.org/browse/XRENDERING-175
On Wed, May 21, 2014 at 2:24 PM, <mctozzy(a)gmail.com> wrote:
> Hmm... well I'm not getting that behaviour. It's as if something buggy is
> going on. This is with V5.4.4
>
> The problem is not ending the table per se, it's getting a blank line to
> render between the table and the next paragraph?
>
>
>
> On 21/05/2014 10:00 PM, Marius Dumitru Florea wrote:
>>
>> This works fine for me:
>>
>> |Last row A|Last row B
>>
>> Next paragraph of text
>>
>> In other words, you just need one **empty** line. It's enough to leave
>> a single space on the line after the table and it will be considered
>> as part of the last table cell, and so the next paragraph. Remove the
>> whitespace and you should be fine.
>>
>> Hope this helps,
>> Marius
>>
>> On Wed, May 21, 2014 at 8:17 AM, <mctozzy(a)gmail.com> wrote:
>>>
>>> Having some "fun" understanding what ends off a table in 2.1 syntax. If I
>>> have a normal paragraph of text following a table, and I want one blank
>>> line
>>> between the table and the text, I either have to precede the next para
>>> with
>>> \\:
>>>
>>> |Last row A|Last row B
>>>
>>> \\Next paragraph of text
>>>
>>>
>>> ---or--- leave three blank lines between? As in:
>>>
>>> |Last row A|Last row B
>>>
>>>
>>>
>>> Next paragraph of text
>>>
>>> In both examples only one blank line gets rendered between.
>>>
>>> _______________________________________________
>>> users mailing list
>>> users(a)xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
Having some "fun" understanding what ends off a table in 2.1 syntax. If
I have a normal paragraph of text following a table, and I want one
blank line between the table and the text, I either have to precede the
next para with \\:
|Last row A|Last row B
\\Next paragraph of text
---or--- leave three blank lines between? As in:
|Last row A|Last row B
Next paragraph of text
In both examples only one blank line gets rendered between.
Hi,everyone:
I want to update my XE from version 5.2 to 5.4.4.
what i have done are listed below:
1:download 5.4.4.zip and unzip it.
2: copy %5.2-xWikihome%/data/database to version 5.4.4‘s same
direction and overwrite
3: copy %5.2-xWikihome%/data to 5.4.4‘s same direction except solr
,bacause
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki544#HSolr…
4:then edit xwiki.cfg to enable statistics
after i have done before,i still can't to see statistics,please help me.