Hello,
Can I set, for example, user's account active time? I mean, I'd like to
set "Mr. Green's account will be active for 2 months" after this time his
account will be blocked.
Can I do this?
Greetings
Hi,
That is what I expected. I am however calling a java service for this where I’m going through a list of documents and doing the conversion. I expect that I have to set the document in the context from within the service?
Thanks for the answers,
Peter
On 8 Oct 2015 at 16:23:51, Eduard Moraru (enygma2002(a)gmail.com <mailto:enygma2002@gmail.com>(mailto:enygma2002@gmail.com <mailto:enygma2002@gmail.com>)) wrote:
> Hi,
>
> You did not mention how you are doing the "conversion". Are you using the
> rendering script service?
>
> Anyway, one thing I can think of is to set the context document before
> starting the conversion process. Here is a snippet that would exemplify
> this:
>
> {{velocity}}
> $xcontext.doc
> $xcontext.setDoc($xwiki.getDocument('Sandbox.WebHome').document)
> $xcontext.doc
> {{/velocity}}
>
> Note that it requires Programming Right (on the author user) to be able to
> be executable.
BTW Edy, we have a {{context}} macro for doing this :)
See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Context+Macro <http://extensions.xwiki.org/xwiki/bin/view/Extension/Context+Macro>
Thanks
-Vincent
> Hope this helps,
> Eduard
>
>
> On Wed, Oct 7, 2015 at 12:38 PM, Peter Huisman wrote:
>
>> Hi,
>>
>> I am using a conversion from XWiki syntax to XHTML which is working like a
>> charm. The challenge I have however is the following:
>>
>> I am running a (test velocity) script from the Sandbox space. I am
>> converting documents in a different space (let’s say AAAA).These documents
>> contain objects with textarea’s where the references are in the form of
>> [[text>>doc:filename]] since it refers to documents in the AAAA space. The
>> conversion of XWiki links is “going down the drain” since the converter is
>> using the Sandbox space to resolve the reference to the page and generates
>> a create reference to the file.
>>
>> Is there an easy way to set the (default) space (in either Java or
>> Velocity) without having to run the script from the actual space (in this
>> case, the AAAA space)?
>>
>> Br,
>>
>> Peter
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org <mailto:users@xwiki.org>
>> http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>
>>
> _______________________________________________
> users mailing list
> users(a)xwiki.org <mailto:users@xwiki.org>
> http://lists.xwiki.org/mailman/listinfo/users <http://lists.xwiki.org/mailman/listinfo/users>
Hi,
I am using a conversion from XWiki syntax to XHTML which is working like a charm. The challenge I have however is the following:
I am running a (test velocity) script from the Sandbox space. I am converting documents in a different space (let’s say AAAA).These documents contain objects with textarea’s where the references are in the form of [[text>>doc:filename]] since it refers to documents in the AAAA space. The conversion of XWiki links is “going down the drain” since the converter is using the Sandbox space to resolve the reference to the page and generates a create reference to the file.
Is there an easy way to set the (default) space (in either Java or Velocity) without having to run the script from the actual space (in this case, the AAAA space)?
Br,
Peter
I manage to launch save process of my page but I didn't manage to pass parameter in this process :-(
On my page in edit mode, I add a button with this JS code:
function SaveCurrentPage(MyForm, MyParam) {
require(['jquery'], function ($) {
$('#inline').attr('action','/bin/save/FormSMQ/SMQ-M2-FAM-Mon+am%C3%A9lioration');
//$('#inline').attr('method','get');
$('#inline').submit();
});
};
this code save current page and go in the view mode BUT I can NOT pass some parameters to my velocity code and update myClass object :-(
In the other way when I submit to view mode with
$('#inline').attr('action','/bin/view/FormSMQ/SMQ-M2-FAM-Mon+am%C3%A9lioration');
My current page is NOT saved but I can pass some parameter with hidden input (I can catch them with $request.aaaa in velocity code)
--- En date de : Mar 6.10.15, Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com> a écrit :
> De: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
> Objet: Re: [xwiki-users] Fw : Re: How to add a button with confirmation to save my page?
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Mardi 6 octobre 2015, 12h23
> On Tue, Oct 6, 2015 at
> 1:01 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> wrote:
> > First thxs both but it is not
> what I want try to do.
> >
> > I want to keep default button "Save,
> save and contine and Cancel" like usual.
> > With velocity I added a button to update
> my class object on my page and redirect to another one. My
> button working well in view mode but I want to use it in
> edit mode, then I must save my page before my class object
> update and redirection if not all page modifications will be
> lost.
> >
> > My main
> problem if I rewrite my code in JS is that I can not update
> my class object field attached on my page.
> >
> > (It's a shame it
> doesn't exist an $xwiki.LaunchSaveCurrentPage)
> >
> > Can I launch
> "save page" with javascript? My idea: i launch
> save my page in JS from edit mode to view mode with param
> (do redirect on another page). With this way I can keep my
> nice existant velocity code.
> > Do you
> know how if I can launch "save page" in JS
> then?
>
> > I see that a
> submit in JS go to preview mode, maybe I must modify the
> action target of #inline before submit?
>
> The submit button name (e.g.
> name="action_save") is not included by
> default when you submit the form using
> JavaScript (because the form
> may have
> multiple submit buttons, like in your case, and the
> JavaScript code wouldn't know what button
> to indicate in the submit
> form unless you
> explicitly indicate it). You need to add the button
> name to the submit parameters when you make the
> AJAX save request.
>
> Hope
> this helps,
> Marius
>
Hello
I just tested Xwiki 7.2 and Windows 2012 LDAP (AD) : work fine for existing
users in the active directory
(account created from Windows)
But if I create a new user from Xwiki I can't see created in the LDAP !
How to update from Xwiki to LDAP ?
In other words is It possible ?
Thanks
Sebastien
--
View this message in context: http://xwiki.475771.n2.nabble.com/LDAP-Updates-issue-from-Xwiki-to-Windows-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I am using a conversion from XWiki syntax to XHTML which is working like a charm. The challenge I have however is the following:
I am running a (test velocity) script from the Sandbox space. I am converting documents in a different space (let’s say AAAA).These documents contain objects with textarea’s where the references are in the form of [[text>>doc:filename]] since it refers to documents in the AAAA space. The conversion of XWiki links is “going down the drain” since the converter is using the Sandbox space to resolve the reference to the page and generates a create reference to the file.
Is there an easy way to set the (default) space (in either Java or Velocity) without having to run the script from the actual space (in this case, the AAAA space)?
Br,
Peter
Hey folks,
I'm from Germany, so already sorry for my bloody english.
I use the xe.panels.navigation for the navigation on my xWiki. Now the
following: I created pages, which has an difference between the url and the
name of the site.
For example:
Title - Page one
Adress - /xwiki/bin/main/different-page-one
This now causes problems in the alphabetical order of the navigation, due to
the fact, that the order is being set by the adress "name".. My questions
is: Can I change this behavior? So that the following code will sort the
pages not by their url name but by their Page name?
The code:
{{velocity}}
#panelheader($services.localization.render('xe.panels.navigation'))
## Escape special characters in macro parameter values.
#set ($openToDoc = $doc.documentReference.toString().replaceAll('([~"])',
'~$1'))
{{documentTree showSpaces="false" showTranslations="false"
showAttachments="false" showDocumentTitle="true"
showChildDocuments="true" finder="true" compact="false"
openTo="document:$openToDoc" root="space:xwiki:Main"/}}
#panelfooter()
{{/velocity}}
Changing the adresses or url's is not a possible solution, due to the
unflexibility of a partner we are working with. Is there a possible change
or do I have to put up a manual navigation?
--
View this message in context: http://xwiki.475771.n2.nabble.com/xWiki-Change-Navigation-scheme-tp7596292.…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I use xwiki 6.4 with the forum application. I would like to subscribe to a
forum and receive a notification by mail when a new subject or a comment is
posted. Is it possible with the current version ? I didn't find a way to do
it.
Thanks!
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/ForumApplication-Subscribe-by-mail-tp7596…
Sent from the XWiki- Users mailing list archive at Nabble.com.
First thxs both but it is not what I want try to do.
I want to keep default button "Save, save and contine and Cancel" like usual.
With velocity I added a button to update my class object on my page and redirect to another one. My button working well in view mode but I want to use it in edit mode, then I must save my page before my class object update and redirection if not all page modifications will be lost.
My main problem if I rewrite my code in JS is that I can not update my class object field attached on my page.
(It's a shame it doesn't exist an $xwiki.LaunchSaveCurrentPage)
Can I launch "save page" with javascript? My idea: i launch save my page in JS from edit mode to view mode with param (do redirect on another page). With this way I can keep my nice existant velocity code.
Do you know how if I can launch "save page" in JS then?
I see that a submit in JS go to preview mode, maybe I must modify the action target of #inline before submit?
--- En date de : Lun 5.10.15, Eduard Moraru <enygma2002(a)gmail.com> a écrit :
> De: Eduard Moraru <enygma2002(a)gmail.com>
> Objet: Re: [xwiki-users] How to add a button with confirmation to save my page?
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Lundi 5 octobre 2015, 17h35
> Hi,
>
> You might want to have a look at the javascript
> [1] events that are thrown
> when pressing the
> standard save / save & continue buttons that you
> might
> want to catch and insert a
> confirmation to the user. Depending on the
> user's answer, you can either cancel the
> event or modify the dom (to add
> some
> xredirect input) then let the event finish.
>
> Hope this helps,
> Eduard
>
> P.S.:
> remember to use the event bridge module [2] to be able to
> listen to
> PrototypeJS events from jQuery.
>
> ----------
> [1]
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
> [2]
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HBridgingcu…
>
>
> On Mon, Oct
> 5, 2015 at 6:08 PM, Marius Dumitru Florea <
> mariusdumitru.florea(a)xwiki.com>
> wrote:
>
> > I think the
> Save action supports an 'xredirect' parameter. So if
> your
> > form has a hidden input field with
> name='xredirect' then the user will
> > be redirected to the specified URL after
> the page is saved. So what
> > you can do
> is:
> >
> > * catch the
> click event on the button
> > * ask for
> confirmation
> > https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
> > * cancel/prevent the event if no, set the
> value of the 'xredirect'
> >
> parameter otherwise
> >
> > Hope this helps,
> >
> Marius
> >
> >
> > On Mon, Oct 5, 2015 at 5:35 PM, Pascal
> BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> > wrote:
> > > Hi,
> > >
> > > I have my
> application with MyClass, MySheet and MyTemplate.
> > > When I have a new page (based on
> MySheet/Class), in edit mode I can
> >
> modify all my fields of Myclass Object but I want to add a
> button to save
> > my page after
> confirmation...
> > >
> > > For the moment I have a button to
> redirect in a new page BUT I want to
> >
> save current page before redirect if the user agreed a
> confirmation box.
> > >
> > > More precisely on my nice appli, on
> new page in edit mode, I have
> > standard
> Save, Save and continue and cancel button and I want another
> one
> > to ask on clik: "are you sure
> to save current fields modified on current
> > page and open this another page"?
> > > - if yes save current page, add a
> value in a field with velocity and
> > save
> and redirect to another one.
> > > - if
> No stay in edit mode
> > >
> > > Do you have a way to recommend?
> > > (perhaps I must try
> $('#form').submit(function() { with jquery) but
> I
> > don't know if this save my
> page?
> > >
> > >
> Thxs for any help.
> > >
> > > 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
> >
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>