On 21 Sep 2015 at 10:16:00, PATEL, ABDULKADAR (abdulkadar.patel@capgemini.com(mailto:abdulkadar.patel@capgemini.com)) wrote:
>
> Hi Vincent,
>
>
>
>
>
> Thanks for your response.
>
>
> I know it might be very trivial issue but as I am working on xwiki first time,
>
>
> I don’t know basic things and that’s why bugging all of you with my silly doubts.
>
>
>
>
>
> To achieve this use case, I have followed below steps :
>
>
>
>
>
> 1. Modified xwiki-min.js file to bind a javascript code which will display a popup dialog on click of ctrl+shift+N
You shouldn’t do that. You should use a Javascript Extension instead, see http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial
> 2. This dialog fetches projects and issue types from jira server and displays as dropdown
ok
> 3. Once user clicks on submit, a jira issue is created
ok
> 4. Now I need to display a link near text selected by user in step 1 but don’t know how to do it.
This is not really related to XWiki (unless you wish to reuse the Annotation code but then I don’t now this code enough to know if you can do this or not).
In any case you could check the Annotation code to understand how it’s done there, basically how to find the location of some text in the content.
I guess there are at least 2 ways:
* Do that using JS and thus insert your link using JS
* Do it on the server side using the Rendering engine (this is what Annotation is doing I think) and add some specific HTML marker so that by using JS you can easily insert the link.
In any case what you wish to do is something complex and requires good knowledge of JS (and possibly of XWiki’s Rendering if you choose this solution).
Thanks
-Vincent
> I have attached code I have added in xwiki-min.js
>
>
>
>
>
> You can also suggest if this is a right approach and if I can follow some other approach.
>
>
>
>
>
> Thanks & Regards,
>
>
> Abdulkadar Patel
>
>
>
>
>
>
>
>
>
> P.S. I have not kept xwiki developers mail list since this mail becomes huge and will need approval from list moderator.
>
>
>
>
>
>
>
>
> From: Vincent Massol [mailto:vmassol@gmail.com] On Behalf Of vincent(a)massol.net
> Sent: Monday, September 21, 2015 12:52 PM
> To: XWiki Developers
> Cc: PATEL, ABDULKADAR
> Subject: Re: [xwiki-devs] Display link on xwiki page
>
>
>
>
>
>
>
> Hi there,
>
>
>
>
>
>
>
>
> On 18 Sep 2015 at 15:25:44, PATEL, ABDULKADAR (abdulkadar.patel@capgemini.com(mailto:abdulkadar.patel@capgemini.com))(mailto:abdulkadar.patel@capgemini.com(mailto:abdulkadar.patel@capgemini.com))) wrote:
>
> > Hi all,
> >
> > Sorry to bug all of you again and again with the same requirement.
> > But I am also helpless till I get it done.
> >
> > I have ebelow use case :
> >
> > 1. User selects some text on an xwiki page and hits some keyboard shortcut say Alt+ctrl+N
> >
> > 2. This opens a popup dialog like shown below :
> >
> > [file:///Users/vmassol/Library/Containers/it.bloop.airmail.beta11/Data/Library/Application Support/Airmail/General/Local/1442819908355112192/Attachments/image004.jpg@01D0F242.DD794520(mailto:Support/Airmail/General/Local/1442819908355112192/Attachments/image004.jpg@01D0F242.DD794520)]
> >
> >
> >
> > 3. As you can see in the screenshot, it displays list of projects, issue types from JIRA server.
> >
> > Issue summary field is pre-populated with the selected text from xwiki page.
> >
> > 4. Once user submits this dialog, an issue is created in JIRA and a link will be created on xwiki page besides selected
> >
> > text.
> >
> > So far I have achieved 1,2 and 3 but not able to achieve 4
> > One option I thought of is to create an annotation for the selected text with text as a link to JIRA issue
> > But I don't understand how to achive this from javascript code.
> > I have written javascript code in webapps/xwiki/resources/js/xwiki/xwiki-min.js file
> >
> > Please suggest me an approach to achive point no 4.
> > Also suggest me if there is a better and cleaner approach.
>
>
>
>
>
>
> I’m not sure I understand the problem. Step 4 seems easy. You just need a form action which calls a wiki page (possibly the current page passing some parameter) and then using Velocity for example to create the JIRA issue using the JIRA REST API.
>
>
>
>
>
>
>
> Thanks
>
>
>
> -Vincent
>
>
>
>
> > Thanks & Regards,
> > ____________________________________________________________________
> > [file:///Users/vmassol/Library/Containers/it.bloop.airmail.beta11/Data/Library/Application Support/Airmail/General/Local/1442819908355112192/Attachments/image001.gif@01D0F241.1B349010]Abdulkadar(mailto:Support/Airmail/General/Local/1442819908355112192/Attachments/image001.gif@01D0F241.1B349010%5dAbdulkadar) Patel
> > Consultant | GESBU
>
>
>
>
>
>
>
>
Hi Eduard,
Thanks for the explanation and the links.
I am not looking for the Java way since we already have a XML exporter in place that is exporting the information in our environment (which is heavily object based) in a way that can be used by third parties. This is the way we are looking for a more final solution. We were looking for an easy and quick (intermediate) solution to bridge the gap so to speak.
The strange thing is, that I use google to search extensively for things before i ask for info in this group. I was somewhat surprised to see the link (no 7) which is exactly what I needed! I thank you again for the help and I’m sorry that I have not been able to find it myself.
Br,
Peter
> Hi Peter,
>
> Of course, though you might want to think a bit on the approach.
>
> 1) If you want to do it in XWiki using the scheduler plugin, you have to
> write some groovy script [1] in the scheduled task that you create in order
> to use the filter module [2] (or the old packager module [3], whichever you
> choose) in order to export the pages you are interested in and save the
> result (on the filesystem or as an attachment in a page).
>
> As inspiration, you could check out the source code (in java) of the export
> action [4] which is exactly what is going on when you are exporting a page
> from the UI.
>
> 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux
> machine (possible the same one running the XWiki instance) and have that
> task simply download (using something like cURL [6]) the result of a
> manually crafter export URL (as detailed in our documentation [7])
> containing the list of pages to export.
>
> Hope this helps,
> Eduard
>
> ----------
> [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
> [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module
> [3]
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
> [4]
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
> [5] https://en.wikipedia.org/wiki/Cron
> [6] https://en.wikipedia.org/wiki/CURL
> [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport
>
>
> On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman <p.huisman(a)ximm.nl> wrote:
>
>> Hi,
>>
>> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m
>> not looking for a DB based backup but merely for a backup of spaces / pages.
>>
>> With kind regards,
>>
>> Peter
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
This post has NOT been accepted by the mailing list yet.
I can manually add if I edit the class (but then I get a ton of errors) but
its not in the field pallet (assume it would be in the advanced section
under Database List).
Does it need to be added to the pallet? if so how would I go about that?
Thx
HH
--
View this message in context: http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp759604…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I have an XWiki setup that uses Kerberos for authentication.
I would like to continue using Kerberos, but use LDAP groups for
controlling page access rights.
How could I do this?
(If you could point me in the right direction, or to any appropriate
documentation, that would be a big help)
Thanks in advance
—Debajit
Hi,
Is there a way to generate XAR’s using XWiki’s scheduling function? I’m not looking for a DB based backup but merely for a backup of spaces / pages.
With kind regards,
Peter
The XWiki development team is proud to announce the availability of XWiki
7.2 Release Candidate 1.
This release candidate brings many Flamingo skin improvements to better
present Nested Documents on top of the Nested Spaces concept. Similar
improvements were made in applications like Solr Search, AWM, FAQ, Activity
Stream and the Skin editor in order to be compatible with Nested Spaces.
On the developers side, a new Select widget and a document picker were
added to allow richer UIs to be created.
Last but not least, 41 bugs were fixed in this release on the road towards
the coming final 7.2 release.
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/ReleaseNotesXWiki72RC1
The following people have contributed code to this release:
Denis Gervalle
Ecaterina Moraru (Valica)
Eduard Moraru
Gabriela Smeria
Guillaume Delhumeau
Marius Dumitru Florea
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hello,
I try to resolve an right access issu with our xwiki 7.0.1.
I use LDAP authentication to access at our xwiki. Everyone have read access and a main group have write access on a space (unfortunaly big boss is "afraid?" about wiki spirit: 'everyone can edit').
Main editor group contains some subgroup (like manager, comm, etc.) with users in it.
I encountered a strange behaviours: on my developpment platform, rights access work well but on production platform (behind a reverse proxy), right acces working randomly: sometimes main group editors lose write access.
I tested with a test ldap user with exactly same rights/groups on same space with same rights access, on my developpment platform and on production platform. Main editor group can write only on my developpment platform :-(
Do you have an idea of my problem or a way to identify the source of this problem?
I can try to restart production platform in last resort... Maybe the poblem come from some wrong cache on web server?
Note: If I don't use sub group and fill main editors groups with users account I haven't problems.
Thxs for any help
Pascal B
Hi Aaron,
Feel free to create a jira issue at http://jira.xwiki.org if you think it’s important that getURLContent() supports HTTPS. This can be done since under the hood we’re using Http Client and it supports HTTPS.
Thanks
-Vincent
On 16 Sep 2015 at 01:01:41, Aaron Hardy at AC (ashtarcommunications@gmail.com(mailto:ashtarcommunications@gmail.com)) wrote:
> Yep, that's it. Changed it to HTTP and it worked fine. I must have changed the URL in otherwise working code at some point and forgotten about it. Oddly, using https://google.com still works for me, but not using https with my actual API URL. Either way, good to know that HTTPS isn't supported.
>
> Thanks much for the help,
>
> aaron
>
> On Tue, Sep 15, 2015 at 6:02 PM, vincent@massol.net(mailto:vincent@massol.net) wrote:
> > Hi Aaron,
> >
> > On 15 Sep 2015 at 19:12:06, Aaron Hardy at AC (ashtarcommunications@gmail.com(mailto:ashtarcommunications@gmail.com)(mailto:ashtarcommunications@gmail.com)) wrote:
> >
> > > I've updated that playground page with the actual URL of the API I'm using - you'll see that the page comes back blank, but if you follow the link in the browser, you get a page full of XML. So there must be something about the data that the API is returning that XWiki doesn't like?
> >
> > This is because you’ve used HTTPS. If you use HTTP it works fine.
> >
> > ATM getURLContent() doesn’t support HTTPS.
> >
> > Thanks
> > -Vincent
> >
> > > Agreed on using final releases - a full upgrade to 7.x is actually planned soon. If I remember correctly, we got stuck on RC1 during the last production upgrade cycle because there was some feature in 6.2 that we really needed but the final release was still a few weeks out by our deadline so we rolled the dice. Fortunately we haven't run into many issues - which is probably why we're running behind on the upgrade :)
> > >
> > >
> > > On Tue, Sep 15, 2015 at 12:56 PM, vincent@massol.net(mailto:vincent@massol.net)(mailto:vincent@massol.net) wrote:
> > > > Seems to be working fine on http://playground.xwiki.org/xwiki/bin/view/Main/Aaron
> > (http://playground.xwiki.org/xwiki/bin/view/Main/Aaron) > >
> > > >
> > > >
> > > > Maybe there was a problem specifically on 6.2RC1 (BTW better use some final releases…:)). I’d recommend 6.4.5 for the 6.x cycle.
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > >
> > > > On 15 Sep 2015 at 18:53:16, Aaron Hardy at AC (ashtarcommunications@gmail.com(mailto:ashtarcommunications@gmail.com)(mailto:ashtarcommunications@gmail.com)) wrote:
> > > >
> > > > > Page syntax is XWiki 2.1 and the velocity is wrapped. Sorry, I didn't include the full code for simplicity's sake. Here's a minimal example cut and pasted from the editor (only thing changed is the actual URL):
> > > > >
> > > > > *******************************
> > > > > {{velocity}}
> > > > >
> > > > > #set($getURL = "https://www.example.com/api/example.mhtml?param=123")
> > > > > $getURL
> > > > >
> > > > > #set($content = $xwiki.getURLContent($getURL))
> > > > > $content
> > > > >
> > > > > {{/velocity}}
> > > > >
> > > > > If I set $getURL to "https://google.com", it prints $content to the page. With my API URL, I get nothing but the link in $getURL. But if I follow that link, I get the expected XML page from the API, so I know the URL is working correctly.
> > > > >
> > > > > I figured it was because $content is XML from the API, and HTML from google, but using $services.xml.parse on the response doesn't work either.
> > > > >
> > > > > The strange part is that this is code that I haven't touched in quite some time, and used to be working. The full code parses the XML response and saves various elements to an HTML table on the page - but it doesn't appear to be getting that far.
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Sep 15, 2015 at 12:41 PM, vincent@massol.net(mailto:vincent@massol.net)(mailto:vincent@massol.net) wrote:
> > > > > > Hi Aaron,
> > > > > >
> > > > > > On 15 Sep 2015 at 18:38:17, Aaron Hardy at AC (ashtarcommunications@gmail.com(mailto:ashtarcommunications@gmail.com)(mailto:ashtarcommunications@gmail.com)(mailto:ashtarcommunications@gmail.com)) wrote:
> > > > > >
> > > > > > > XWiki 6.2RC1. I have some velocity code using getURLContent() to access an
> > > > > > > external API that appears to not be working after a server move, despite
> > > > > > > working in the past.
> > > > > > >
> > > > > > > Something like this used to work:
> > > > > > >
> > > > > > > *****************************
> > > > > > > #set($url = "https://www.example.com/api/example.mhtml?param=123")
> > > > > > > #set($response = $xwiki.getURLContent($url))
> > > > > > >
> > > > > > > #if ($response)
> > > > > > > #set($tags = $services.xml.parse($response).getElementsByTagName('TAG'))
> > > > > > > $tags.length
> > > > > > > #end
> > > > > > > *****************************
> > > > > > >
> > > > > > > Now, $response appears to be empty (nothing appears when written to the
> > > > > > > page). Going directly to the API URL returns properly formatted XML, so I
> > > > > > > know the API itself is working. And changing $url to http://google.com also
> > > > > > > returns data.
> > > > > > >
> > > > > > > Any ideas?
> > > > > >
> > > > > > What is the syntax of your page? Are you sure it’s XWiki Syntax 2.0+ and you’re wrapping the velocity content with the {{velocity}} macro for example (you didn’t show it in your example).
> > > > > >
> > > > > > $response is still there
> > > > > >
> > > > > > Thanks
> > > > > > -Vincent
> > > > > >
> > > > > > > aaron
> > > > > >
> > > > >
> > >
> >
>
Seems to be working fine on http://playground.xwiki.org/xwiki/bin/view/Main/Aaron
Maybe there was a problem specifically on 6.2RC1 (BTW better use some final releases…:)). I’d recommend 6.4.5 for the 6.x cycle.
Thanks
-Vincent
On 15 Sep 2015 at 18:53:16, Aaron Hardy at AC (ashtarcommunications(a)gmail.com) wrote:
Page syntax is XWiki 2.1 and the velocity is wrapped. Sorry, I didn't include the full code for simplicity's sake. Here's a minimal example cut and pasted from the editor (only thing changed is the actual URL):
*******************************
{{velocity}}
#set($getURL = "https://www.example.com/api/example.mhtml?param=123")
$getURL
#set($content = $xwiki.getURLContent($getURL))
$content
{{/velocity}}
If I set $getURL to "https://google.com", it prints $content to the page. With my API URL, I get nothing but the link in $getURL. But if I follow that link, I get the expected XML page from the API, so I know the URL is working correctly.
I figured it was because $content is XML from the API, and HTML from google, but using $services.xml.parse on the response doesn't work either.
The strange part is that this is code that I haven't touched in quite some time, and used to be working. The full code parses the XML response and saves various elements to an HTML table on the page - but it doesn't appear to be getting that far.
On Tue, Sep 15, 2015 at 12:41 PM, vincent(a)massol.net <vincent(a)massol.net> wrote:
Hi Aaron,
On 15 Sep 2015 at 18:38:17, Aaron Hardy at AC (ashtarcommunications@gmail.com(mailto:ashtarcommunications@gmail.com)) wrote:
> XWiki 6.2RC1. I have some velocity code using getURLContent() to access an
> external API that appears to not be working after a server move, despite
> working in the past.
>
> Something like this used to work:
>
> *****************************
> #set($url = "https://www.example.com/api/example.mhtml?param=123")
> #set($response = $xwiki.getURLContent($url))
>
> #if ($response)
> #set($tags = $services.xml.parse($response).getElementsByTagName('TAG'))
> $tags.length
> #end
> *****************************
>
> Now, $response appears to be empty (nothing appears when written to the
> page). Going directly to the API URL returns properly formatted XML, so I
> know the API itself is working. And changing $url to http://google.com also
> returns data.
>
> Any ideas?
What is the syntax of your page? Are you sure it’s XWiki Syntax 2.0+ and you’re wrapping the velocity content with the {{velocity}} macro for example (you didn’t show it in your example).
$response is still there
Thanks
-Vincent
> aaron
XWiki 6.2RC1. I have some velocity code using getURLContent() to access an
external API that appears to not be working after a server move, despite
working in the past.
Something like this used to work:
*****************************
#set($url = "https://www.example.com/api/example.mhtml?param=123")
#set($response = $xwiki.getURLContent($url))
#if ($response)
#set($tags = $services.xml.parse($response).getElementsByTagName('TAG'))
$tags.length
#end
*****************************
Now, $response appears to be empty (nothing appears when written to the
page). Going directly to the API URL returns properly formatted XML, so I
know the API itself is working. And changing $url to http://google.com also
returns data.
Any ideas?
aaron
Hello there,
I am trying to export a whole XWiki space to PDF for several hours now. And
it seems like it is not possible.
I am running XWiki 7.1.1 and I did try the following ways:
1.
built-in via
http://localhost:8080/xwiki/bin/export/Space/Page?format=pdf&pages=MyTestSp…
or similar approaches.
Is there any way to use the "%25" with this approach like it is possible
for HTML and XAR exports?
2.
PDF Export Collection Application (
http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Collection+…
)
It writes an error to the export pdf file. (Failed to execute the
[velocity] macro. Click on this message for details.)
3.
XWiki Multipage PDF Export (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+PDF+Export)
Did not get it to run, but the docu seems like i need to add any specific
page on my own, which is not what i want.
4.
XWiki MultipagePdfExport Application - Space Export (
http://extensions.xwiki.org/xwiki/bin/view/Extension/MultipagePdfExport+App…
)
It is possible to select what to export in the current space, but it does
not get exported to the final PDF file.
5. Admin Tools Application (
http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Panel+Appli…
)
Did not get it to run, but it seems to be a GUI for the first approach. So
I do not expect it to work better.
If there are any tricks I should know of with any of those approaches you
are welcome to tell me. Totally new ideas/solutions are welcome as well of
course.
Hopefully any one can solve this problem since i could not find a solution
yet.
Yours
Daniel
Nope: both method doesn't work with velocity macro...
Do you want a nice xar to check? Then where I can upload it? in Jira?
--- En date de : Lun 14.9.15, vincent(a)massol.net <vincent(a)massol.net> a écrit :
> De: vincent(a)massol.net <vincent(a)massol.net>
> Objet: Re: [xwiki-users] Fw : Include & Co board effect
> À: "XWiki Users" <users(a)xwiki.org>
> Cc: pbasnews-xwiki(a)yahoo.fr
> Date: Lundi 14 septembre 2015, 14h00
> #yiv5668446636
> body{font-family:Helvetica,
> Arial;font-size:13px;}Hi Pascal,
> You should use {{include}}
> for transclusions and {{display}} for inserting the result
> of the execution of some page.
> Thanks-Vincent
>
> On 10 Sep 2015 at 11:26:25,
> Pascal BASTIEN (pbasnews-xwiki(a)yahoo.fr)
> wrote: NB: new
> include function {{include
> reference="BacASable.Page"
> type="document" /}} doesn't work well when
> target page contains a velocity macro
>
> If target page contains a macro velocity
> (#macro( foo $color ), the main page containing
> "include reference" can't call foo macro.
>
> (with includeInContext it's working)
>
>
>
> --- En date de : Jeu 10.9.15, Pascal
> BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
>
>
>
> > De: Pascal BASTIEN
> <pbasnews-xwiki(a)yahoo.fr>
>
> > Objet: [xwiki-users] Include & Co
> board effect
>
> > À: "XWiki Users"
> <users(a)xwiki.org>
>
> > Date: Jeudi 10 septembre 2015, 10h33
>
> > Hello,
>
> >
>
> > In my velocity script I try to include
> some velocity code
>
> > from another page.
>
> > I want similare function like
> "source" in bash, it's like
>
> > copy/paste some code in main script
> from another file.
>
> > I read
> https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity
>
> > and use
> #includeInContext("mySpace.myPage") but there
>
> > are board effect:
>
> > #includeInContext return HTML code
> like this
>
> > <p>I call
> MyMacro<br/><p>My color is
>
> > Red</p>...
>
> > Then to obtain what I want I must user
> html tag:
>
> > {{html}}
>
> >
> #includeInContext("mySpace.myPage")
>
> > {{/html}}
>
> >
>
> > Is it normal?
>
> >
>
> >
>
> > Thxs,
>
> >
>
> > Pascal B
>
> >
> _______________________________________________
>
> > 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
>
>
NB: new include function {{include reference="BacASable.Page" type="document" /}} doesn't work well when target page contains a velocity macro
If target page contains a macro velocity (#macro( foo $color ), the main page containing "include reference" can't call foo macro.
(with includeInContext it's working)
--- En date de : Jeu 10.9.15, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
> De: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> Objet: [xwiki-users] Include & Co board effect
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Jeudi 10 septembre 2015, 10h33
> Hello,
>
> In my velocity script I try to include some velocity code
> from another page.
> I want similare function like "source" in bash, it's like
> copy/paste some code in main script from another file.
> I read https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity
> and use #includeInContext("mySpace.myPage") but there
> are board effect:
> #includeInContext return HTML code like this
> <p>I call MyMacro<br/><p>My color is
> Red</p>...
> Then to obtain what I want I must user html tag:
> {{html}}
> #includeInContext("mySpace.myPage")
> {{/html}}
>
> Is it normal?
>
>
> Thxs,
>
> Pascal B
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Hi,
I need to modify an XWiki application to add some functionality, but I
am new to XWiki and I am having a really hard time understanding it.
I'm running XWiki Enterprise 7.1.2. The FAQ application tutorial
<http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialManual>
looks promising, but the instructions are outdated and I can't figure
out how to get a finished product that looks like what the tutorial
has. The following instructions are particularly problematic:
> In the code, change the word "Main" with the name of the space where you want you FAQ pages to be created
There is no word "Main".
> If you click on "View the template document" and edit that page in wiki mode, you will see the following code: {{include document="FAQ.FAQClassSheet"/}}
The page is blank, I don't see any code.
> Use the Create top level menu (when using the Colibri skin) or the Create Panel to create the FAQ.WebHome page
I don't see anything marked "Create".
Is there an experienced XWiki developer who would be willing to go
through the FAQ application tutorial and rewrite it to make sense for
the latest version of XWiki?
More generally, it would be very helpful to have a glossary that
defines and relates terms like "application", "page", "document",
"object", "property", "class", "template", and "template provider".
These terms are used in the documentation with little or no
explanation, which adds to the confusion.
-Alex
Hi,
After deleting a document, XWiki first shows a confirmation page and after that displays the deleted document(s). I was wondering if I’m able to redirect the user to a different page after the confirmation he has to give on the delete action. I have noticed some remaks on the topic such as the JIRA issue XWIKI-9906 but I;m not sure if there have been any changes on this.
I don’t mind solving the issue myself and I would expect to be able to use the DocumentDeleted event listener. I do not have enough detailed knowledge on the topic to be able to sort this out entirely by myself so that leaves the following questions:
1 - Any news on the JIRA issue in any XWIKI version?
2 - Is it possible to use the DocumentDeleted listener for this purpose?
3 - If yes, does anyone have any suggestion on the approach?
4 - if no, is there any other way to solve this?
Thanks in advance for the feedback,
Br,
Peter
Hi,
I’m looking for the return type for the following Query type in Java:
select doc.space, doc.name from XWikiDocument doc, BaseObject obj…
I know it should be some kind of List<List<String>> since this is what works in Velocity but I can’t do a typecast from List<Object> to List<List<String>.
Can anyone help me on this?
Br,
Peter
Hello,
In my velocity script I try to include some velocity code from another page.
I want similare function like "source" in bash, it's like copy/paste some code in main script from another file.
I read https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity and use #includeInContext("mySpace.myPage") but there are board effect:
#includeInContext return HTML code like this
<p>I call MyMacro<br/><p>My color is Red</p>...
Then to obtain what I want I must user html tag:
{{html}}
#includeInContext("mySpace.myPage")
{{/html}}
Is it normal?
Thxs,
Pascal B
Hi,
After update from 6.4.2 to 7.1.2 we faced with message in LDAP settings:
But it work, I can access to xwiki with my LDAP login and password.
I changed logging level for
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl in debug mode and see
in log:
DEBUG u.i.L.XWikiLDAPAuthServiceImpl - LDAP authentication succeed with
principal [XWiki.aleksey-s]
xwiki.cfg for 6.4.2 and 7.1.2 identical.
We tested rollback xwiki to 6.4.2 and message "LDAP service is not
available. Please verify your installation." disappeared..
Why the message "LDAP service is not available. Please verify your
installation" appeared on 7.1.2 ?
--
View this message in context: http://xwiki.475771.n2.nabble.com/LDAP-service-is-not-available-after-updat…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
Is it possible not to import an existing document in a XAR Package ?
because I have 350 documents in that package and i really don't want to
check if every document exists...
Regards,
Quentin
--
View this message in context: http://xwiki.475771.n2.nabble.com/Do-not-import-existing-document-tp7595939…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
we try to run XWIKI with an Oracle 12c Database, but have not been succesful
yet.
We changed the property in the hibernate.cfg.xml to
<property name="dialect">org.hibernate.dialect.Oracle12cDialect</property>
but we only get this error:
{"level":"ERROR","thread":"XWiki
initialization","logger":"com.xpn.xwiki.internal.XWikiInitializerJob","context":"etu1appqk01_plis-portalhilfe","exception":"com.xpn.xwiki.XWikiException:
Error number 3202 in 3: Exception while reading document
[xwiki:XWiki.XWikiComments]\n\tat
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:958)\n\tat
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:291)\n\tat
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1299)\n\tat
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1347)\n\tat
com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:773)\n\tat
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:733)\n\tat
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:654)\n\tat
com.xpn.xwiki.XWiki.<init>(XWiki.java:643)\n\tat
com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:115)\n\tat
org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)\n\tat
org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)\n\tat
java.lang.Thread.run(Thread.java:722)\nCaused by:
org.hibernate.HibernateException: Dialect class not found:
org.hibernate.dialect.Oracle12cDialect\n\tat
org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:159)\n\tat
org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:99)\n\tat
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:117)\n\tat
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)\n\tat
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)\n\tat
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)\n\tat
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253)\n\tat
com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:682)\n\tat
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:827)\n\t...
11 common frames omitted\nCaused by: java.lang.ClassNotFoundException:
org.hibernate.dialect.Oracle12cDialect\n\tat
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)\n\tat
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)\n\tat
java.lang.Class.forName0(Native Method)\n\tat
java.lang.Class.forName(Class.java:186)\n\tat
org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)\n\tat
org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:156)\n\t...
19 common frames
omitted\n","zeitstempel":"2015-0904T08:22:54.312Z","nachricht":"Exception
thrown during job
execution","korrelationsid":"none","marker":["xwiki.translation"]}
Does XWIKI support oracle12c? This artikel
<http://dev.xwiki.org/xwiki/bin/view/Community/DatabaseSupportStrategy>
says that only 11.x is supported, but the article was updated the in 2014
the last time.
If there is a way to run xwiki with an oracle 12c database, what do we have
to do?
thanks for your help
best regards
Bastian
--
View this message in context: http://xwiki.475771.n2.nabble.com/Does-XWIKI-Support-Oracle12c-tp7595891.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi there
First time trying to install xwiki and I'm having this problem at almost any
page in the site.
I'm using tomcat and xwiki 7.1.2
I can't see some basic files (template files) if they are formed without the
prefix "/xwiki/bin/skins/" prefix, for example the xwiki logo it's formed
like
/xwiki/skins/flamingo/logo.png
And can not be rendered by tomcat, but if I use the same url but adding the
bin/skins/ it shows correctly
/xwiki/bin/skins/skins/flamingo/logo.png
There are many other files in the resources/ directory that are not being
loaded.
Any clue will be helpful.
Thank you.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-trying-to-access-skins-tp7595918.…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi!
In out organization we faced with problem after update xwiki from
6.4-milestone-2 to latest stable version 7.1.2 .
In pages on xwiki we have animated pictures.
And animation worked after resize on previous version. For example (test.gif
- animated gif):
[[image:test.gif||height="30" width="20"]]
We saw animated picture after resize.
But now on version 7.1.2 it not work.
On link such as ...../test.gif?width=20&height=30 we see only picture
without animation
On link such as ...../test.gif we see normal animation (but we need resize
it).
How to resolve this problem ?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-view-animated-pictures-in-7-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello, I am interested in tracking who downloaded attachments from specific wiki pages. I saw this isn't available in the Stats app. Is this functionality available in any other module/extension?
Thanks,
Assia E. Alexandrova
Sr. Technology Strategist
Information Management Division
Fort Lauderdale Police Department
1300 West Broward Blvd.
Fort Lauderdale, Florida 33312
Tel.: (954) 828-5867
aalexandrova(a)fortlauderdale.gov<mailto:aalexandrova@fortlauderdale.gov>
This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. This communication may contain material protected by the attorney-client privilege. If you are not the intended recipient, you are hereby notified that any disclosure, photocopying or distribution of these contents is unauthorized and prohibited by law. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received the e-mail in error; please immediately notify the sender by replying to this e-mail and placing "INCORRECT DESTINATION ADDRESS" in the subject line.
Hi,
We faced with next error on xwiki version 6.4-milestone-2 (it stable work ~1
year, but the number of users increased and problem appeared some weeks
ago):
At random time no one cannot access to any xwiki page (admins also) - in
interface we see message that we have no right to access this page.
In output log we find errors such as (pages in the log as well as users can
be different):
2015-09-02 07:13:02,630
[http://domainxwiki/xwiki/bin/jsx/AnnotationCode/Script?language=ru] ERROR
c.i.DefaultSecurityCacheLoader - Failed to load the cache in 5 attempts.
Giving up.
2015-09-02 07:13:02,631
[http://domainxwiki/xwiki/bin/jsx/AnnotationCode/Script?language=ru] ERROR
.a.DefaultAuthorizationManager - Failed to load rights for user
[xwiki:XWiki.testuser] on [xwiki:AnnotationCode.Script].
Only reboot helped us to avoid this error. But errors after some days appear
again.
How we can solve this problem?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-Failed-to-load-rights-for-user-tp…
Sent from the XWiki- Users mailing list archive at Nabble.com.