Re: [xwiki-users] A way to add some tags on saved page with class (resolved)

2015-04-06 Thread Pascal BASTIEN
Here my working well :-) code to add a tag from a property ( database list) of my Class attached on my doc :           ## Début section pour checker les tags           ## Si champ x_CssTag alors rajout du tag et/ou suppression des anciens tags         #if (($xcontext.action == 'view')

Re: [xwiki-users] A way to add some tags on saved page with class

2015-04-03 Thread Marius Dumitru Florea
On Thu, Apr 2, 2015 at 5:51 PM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote: Hello, I'm looking for advice about a way to add some tags on saved page with class. What I have: - a sheet page with an object Class ( with an object class + properties) + a template page - a velocity code in a

Re: [xwiki-users] A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN
Finally I added some CSS Id on my inline form (in my Sheet) and getProperty value with JS and document.observe(xwiki:actions:save). I call my TagUpdater Page with AJAX var request=$.ajax({method: POST, url: Url, data: UrlParams,

Re: [xwiki-users] A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN
FI with JS document.observe(xwiki:actions:save). method my script doesn't work well... When I save and close my page: my tag is added OR my field are update OR the script going well OR I obtain a nice error message: Information détaillée: Error number 3201 in 3: Exception while saving

Re: [xwiki-users] A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN
How silly am I! I was dealing with the problem in the wrong way. Instead to add some tag on saving page, some piece of velocity code in my Sheet (in view mode) must doing the right thinks... (I will paste the code when I finish it) (Anyway my batch working :-/)

[xwiki-users] A way to add some tags on saved page with class

2015-04-02 Thread Pascal BASTIEN
Hello, I'm looking for advice about a way to add some tags on saved page with class. What I have: - a sheet page with an object Class ( with an object class + properties) + a template page - a velocity code in a page AddMyTag to add some tags on some page with this URL parameters: