[xwiki-users] Security concern

2014-02-11 Thread Gerritjan Koekkoek
This is about a Wiki page with an object of a class.
When a sheet is attached it will display the object in that sheet.

But if in the sheet I will check on permission and deny access like
the following code:

#if($xwiki.getUser().isUserInGroup(XWiki.SomeGroup) )
  ##
  ## User is allowed to see object
  ## If not Admin user, form should be readonly (no Edit)!!
  ##
  #showForm
#else
  $msg.get('msg_permission_denied')
#end

Now the user will see a empty page with the error message: Permission denied.

How secure is xwiki if the User would know the following
url?http://SomeWiki/xwiki/bin/edit/SomeSpace/ProtectedObject?editor=object
http://cdlsworld.devxwiki.com/xwiki/bin/edit/CdlsatdPrivate/GerritjanKoekkoek_profile?editor=object

I now assume this user would modify the url in the top of his/her screen
Since the sheet is now bypassed this user would see all the object
details; right?

How can this be avoided; that users may not use the object editor?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Panels collapse

2014-01-17 Thread Gerritjan Koekkoek
Hi,

We use the standard Colibri Skin with usually a Left and Side pane for
panels.
Most of our panels are for navigation only. (80%)

So the question is:
Can I make the default behavior of a panel be that it is collapsed,
I want that after a click (and new content is loaded) that the panel is
automatically collapsing again (Like a drop down menu)
You click on the collapsed panel
It opens and shows the navigation links
The user selects one.
The webpage is loaded and if the panel is also on that page it is
automatically collapsed again

I do not want cookies (or something else) that remembers the state and
keeps the panel open.
So a simple piece of code that I can add to the panel to get the behavior?

A better version would be to link it to the default user attribute: User
type
So if user-type is simple automatically collapse
if user type is advanced; keep the panels open for faster navigation.

A even better would be to link it to the panel attribute Type and category
something like: If Panel-type is View and Panel-category is navigation.
Then automatically collapse without state memory)

Our goal is to dramatically reduce screen clutter.
For the roadmap of XWiki i would ask if it is possible to add something
about collapsing behavior in either the panel definition or in the
preferences of Site and/or space to define the desired behavior of panels?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Horizontal Stacked Bar chart

2014-01-10 Thread Gerritjan Koekkoek
D3 Certainly looks impressive and i'm sure with more advanced needs I will
get my feet wet with it,
Bit for now I need a fast solution as a Proof of Concept, so any suggestion
on how to get the Stacked Bar chart as presented in the samples
And if the layout can be rotated from vertical (default) to horizontal?


2014/1/10 Hamster teun...@hotmail.com

 I think the D3 will give you a lot more options...(but will require a bit
 more work)

 http://extensions.xwiki.org/xwiki/bin/view/Extension/d3js




 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/Horizontal-Stacked-Bar-chart-tp7588579p7588589.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Horizontal Stacked Bar chart

2014-01-09 Thread Gerritjan Koekkoek
Hi,

Is it possible to rotate the Bar Chart shown in
http://extensions.xwiki.org/xwiki/bin/view/Extension/Charting+Samples#HBarCharts
Bar (Stacked bar)

So Vertical to Horizontal

If I want to use the Chart Macro:
See my code:
{{chart
  type=bar

params=document:CdLSWorld.GrossMotorData;table:grossMotor;range:B2-F8;series:columns;
  title=GROSS MOTOR
  width=600
  height=500
/}}

My data from document:CdLSWorld.GrossMotorData
== GROSS MOTOR ==

(% id=grossMotor %)
|= |=|=0-25% |=25-50% |=50-75% |=75-95%
| Rolls over (71)| 3| 5| 7| 12| 36
| Sits alone (73)| 6| 9| 12| 20| 50
| Crawls (23)| 9| 11| 15| 19| 48
| Pulls to stand (57)| 9| 12| 16 | 23| 60
| Cruises (49)| 9| 14| 16| 24| 72
| Walks alone (54)| 12| 18| 24| 36| 120
| Runs (29)| 18| 28| 36| 48| 120
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] UI Control for Upload, Attach, Select and Display a photo

2014-01-08 Thread Gerritjan Koekkoek
how do i test if the script currently in the sheet is compatible to 2.1?
how do i ten use the macro?


2014/1/8 Sergiu Dumitriu ser...@xwiki.com

 On 01/08/2014 07:19 AM, Gerritjan Koekkoek wrote:
  Hi,
  I have a class with a text field for holding a reference to a photo.
  I would like to modify the sheet to add - modify objects of this class.
  After the modification the sheet should display
  - a default image if the object attribute 'photo' is empty (like the
 avatar
  image for a xwiki user)
  - a Button to modify the attribute
  - When the user clicks on a pop-up like the image selector in the user
  avatar.
 
  My issue is that the class was developed in a very early version of
 XWiki.
  On XWiki.org I found:
  Attachment Selector Macro
  This macro seems pretty close to what I want.
  But the sheet is still in wiki version 1.
 
  How can I use the macro in a sheet that is linked to the class?
 
  Gerritjan

 You can't, you must upgrade to the 2.0 or 2.1 syntax.
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Page in external website

2013-11-11 Thread Gerritjan Koekkoek
Hi,

We maintain a very valuable knowledge base about a rare syndrome Cornelia
de Lange syndrome.

What is the best strategy to display content in a website of other
organizations?

A normal iFrame will show all the XWiki skin elements while in this case
only Content needs to be shown.
No edit's, no display of tags, annotations, attachments...

Off course the inline links should work (when linking to XWiki.Pages)

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] translations

2013-01-25 Thread Gerritjan Koekkoek
The XWiki instance where the community can translate the keys for XWiki 
enterprise is very difficult to use.
Would it be possible to select the keys based on extensions/modules
Example: 
1) If I would like to check which keys of the BLOG application are translated 
in dutch? And which are still not translated?
2) Look at keys for the top-menu bar in XWiki

To look at a alphabetical list of more then 5000 key's is a bit overestimating 
the stamina of potential translators

Gerritjan Koekkoek









___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] translations

2013-01-25 Thread Gerritjan Koekkoek
THis is quite good to analyze the level of translation.
But I was hoping that this link: (When logged in)
http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources?action=viewemptylanguage=nl
would allow the advanced search filter options.
Or can I filter this by adding the same url-filter?


Op 25 jan. 2013, om 16:40 heeft Sergiu Dumitriu ser...@xwiki.com het volgende 
geschreven:

 On 01/25/2013 09:53 AM, Gerritjan Koekkoek wrote:
 The XWiki instance where the community can translate the keys for XWiki 
 enterprise is very difficult to use.
 Would it be possible to select the keys based on extensions/modules
 Example: 
 1) If I would like to check which keys of the BLOG application are 
 translated in dutch? And which are still not translated?
 2) Look at keys for the top-menu bar in XWiki
 
 To look at a alphabetical list of more then 5000 key's is a bit 
 overestimating the stamina of potential translators
 
 Gerritjan Koekkoek
 
 
 This isn't quite supported yet, because of the fact that so far most of
 the translations have been defined in only one file,
 ApplicationResources.properties. But the new localization mechanism
 allows for each module to define its own translations, in its own file,
 so gradually keys will be moved out of the big file into separate
 smaller modules.
 
 However, you can still kind of search for applications from a domain,
 using the advanced search [1] and specifying as the key the prefix
 used by an application. For example, this [2] looks up keys from the
 blog application. For the menu, multiple keys are used: core.menu.,
 workspacemanager.menu.*, core.shortcuts.* for defining the shortcuts
 that trigger certain actions, and the old simplistic keys login,
 logout, superadmin, and core.register. The only way to find out
 what kind of keys are used in a place is to look in the source of that
 place, which can be a document in the wiki, or a template on the
 filesystem (usually in templates/).
 
 [1] http://l10n.xwiki.org/xwiki/bin/view/L10N/Search
 [2]
 http://l10n.xwiki.org/xwiki/bin/view/L10N/Search?application=name=lang=key=core.menu.origtext=transtext=
 -- 
 Sergiu Dumitriu
 http://purl.org/net/sergiu
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] macro content body

2013-01-07 Thread Gerritjan Koekkoek
Hi,

I'm writing a macro as described on 'Writing XWiki Rendering Macros in wiki 
pages' 
I've create a object of class WikiMacroClass

I fail to understand what is meant by the two attributes: Macro Content Type; 
No Content, Optional or Mandatory
and Content Description. This is what's in the manual:
• Macro content type: Whether this macro should support a body or not
• Content description: A short description about the macro's content to 
be displayed on the WYSIWYG editor

What is a body, can somebody give a example? Maybe good to extend the manual 
also with such a example?

thxs
Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] macro content body

2013-01-07 Thread Gerritjan Koekkoek
Hi,

If I want to have parameters to return values in a more structured way (not 
directly usable from wysywig?)
do I need to create parameters (optional) since they will not have a value when 
called?
Or how do I do this in these macro's? Or should I just write a macro in 
velocity?

Can I call these macro's from velocity to set some variables?
My macro will now take 'first name' and 'last name' from xwiki user. I would 
like to return a few results about this user, not just text (could even be a 
object)

Op 7 jan. 2013, om 12:07 heeft Thomas Mortagne thomas.morta...@xwiki.com het 
volgende geschreven:

 On Mon, Jan 7, 2013 at 10:48 AM, Vereniging CdLS
 gerritjankoekk...@gmail.com wrote:
 Hi,
 Op 7 jan. 2013, om 10:17 heeft Thomas Mortagne thomas.morta...@xwiki.com 
 het volgende geschreven:
 
 On Mon, Jan 7, 2013 at 10:05 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 I'm writing a macro as described on 'Writing XWiki Rendering Macros in 
 wiki pages'
 I've create a object of class WikiMacroClass
 
 I fail to understand what is meant by the two attributes: Macro Content 
 Type; No Content, Optional or Mandatory
 and Content Description. This is what's in the manual:
   • Macro content type: Whether this macro should support a body or not
   • Content description: A short description about the macro's content 
 to be displayed on the WYSIWYG editor
 
 What is a body, can somebody give a example? Maybe good to extend the 
 manual also with such a example?
 
 The content/body is what you have in the macro.
 
 without macro content: {{macro/}}
 with macro content: {{macro}}some body{{/body}}
 Thanks,
 Is it like the {{Box}} macro?
 It the wysywig it looks like a parameter called Content, but when you read 
 the wiki code it is specified as:
 {{box cssClass=someClass image=someimage title=someTitle width=50%}}
 This is the content
 {{/box}}
 
 So for that macro the params are: cssClass, image, title and width.
 content type is optional and content description would be: whatever the box 
 contains?
 
 I don't remember if it's mandatory or just optional in box macro but
 that's it yes. The WYSIWYG handles it as a parameter visually but it's
 pretty different thing behind the scene.
 
 
 
 
 thxs
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Chart legends

2012-12-19 Thread Gerritjan Koekkoek
Hi,

I see Vincent is the author of the page suggested by Jeremie,
Would he know where to find a more 'user oriented' description of what is 
possible with parameters;
My immediate requirements;
- Take Tick labels for X-Axis in Line Diagram from data table left column
- Format tick labels for X-Axis when text is to long to fit in the width of Tick
- Add Axis labels (both X and Y)
- Define scale of Y axis, it now will automatically adjust scale based on 
values in Data table
- How to create Scatter Graph in XWiki 3.5 (I see it is in the examples for 
XWiki  4.1
- How to suppress a legend
- More advanced statistical eta showing a variance (scatter would be next best)

Op 17 dec. 2012, om 14:15 heeft Gerritjan Koekkoek 
gerritjankoekk...@gmail.com het volgende geschreven:

 Hi,
 Op 17 dec. 2012, om 11:36 heeft Jeremie BOUSQUET jeremie.bousq...@gmail.com 
 het volgende geschreven:
 
 Hello,
 
 I found the following, but I don't know if that class is still used anymore
 under the hood (as it's from the original chart plugin). You would need
 confirmation from xwiki team :)
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-chart/xwiki-platform-chart-plugin/src/main/java/com/xpn/xwiki/plugin/charts/params/ChartParams.java
 
 I don't checked either if there are parameters that could help for your
 use-case.
 
 Thanks, but I need a little bit more help? If I look through there are many 
 class Chart Params. But what do they do/mean?
 Take String AXIS_DOMAIN_PREFIX; ???
 And can I add it to the macro parameter PARAMS??? What values can I Assign to 
 these???
 
 I appreciate the link, but am not sure if it is of much help to me?
 
 BR,
 Jeremie
 
 
 2012/12/17 Gerritjan Koekkoek gerritjankoekk...@gmail.com
 
 Which parameters can be used to 'format' the axis of a chart?
 I would like to understand how Text can be used as labels for a Bar and/or
 Line chart
 Currently if the text is to long it will only show few characters.
 In other charting programs it is often possible to rotate the text labels
 so they are almost vertical, you can put long label names
 I would also like to know if possible to add a Axis Title.
 
 Our example of current is:
 http://www.cdlsworld.org/xwiki/bin/view/CdLSTopics/SIBCdLS
 It holds a chart labeled Health problems in…, as you can see nobody can
 read the X-Axis labels? Or understand what Y-Axis means (Percentage)?
 
 the documentation on:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro
 does not specify which options you can add to parameter: params.
 
 We use XWiki 3.5.1
 
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Chart legends

2012-12-17 Thread Gerritjan Koekkoek
Which parameters can be used to 'format' the axis of a chart?
I would like to understand how Text can be used as labels for a Bar and/or Line 
chart
Currently if the text is to long it will only show few characters. 
In other charting programs it is often possible to rotate the text labels so 
they are almost vertical, you can put long label names
I would also like to know if possible to add a Axis Title.

Our example of current is: 
http://www.cdlsworld.org/xwiki/bin/view/CdLSTopics/SIBCdLS
It holds a chart labeled Health problems in…, as you can see nobody can read 
the X-Axis labels? Or understand what Y-Axis means (Percentage)?

the documentation on: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro
does not specify which options you can add to parameter: params.

We use XWiki 3.5.1 


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Chart legends

2012-12-17 Thread Gerritjan Koekkoek
Hi,
Op 17 dec. 2012, om 11:36 heeft Jeremie BOUSQUET jeremie.bousq...@gmail.com 
het volgende geschreven:

 Hello,
 
 I found the following, but I don't know if that class is still used anymore
 under the hood (as it's from the original chart plugin). You would need
 confirmation from xwiki team :)
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-chart/xwiki-platform-chart-plugin/src/main/java/com/xpn/xwiki/plugin/charts/params/ChartParams.java
 
 I don't checked either if there are parameters that could help for your
 use-case.
 
Thanks, but I need a little bit more help? If I look through there are many 
class Chart Params. But what do they do/mean?
Take String AXIS_DOMAIN_PREFIX; ???
And can I add it to the macro parameter PARAMS??? What values can I Assign to 
these???

I appreciate the link, but am not sure if it is of much help to me?

 BR,
 Jeremie
 
 
 2012/12/17 Gerritjan Koekkoek gerritjankoekk...@gmail.com
 
 Which parameters can be used to 'format' the axis of a chart?
 I would like to understand how Text can be used as labels for a Bar and/or
 Line chart
 Currently if the text is to long it will only show few characters.
 In other charting programs it is often possible to rotate the text labels
 so they are almost vertical, you can put long label names
 I would also like to know if possible to add a Axis Title.
 
 Our example of current is:
 http://www.cdlsworld.org/xwiki/bin/view/CdLSTopics/SIBCdLS
 It holds a chart labeled Health problems in…, as you can see nobody can
 read the X-Axis labels? Or understand what Y-Axis means (Percentage)?
 
 the documentation on:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro
 does not specify which options you can add to parameter: params.
 
 We use XWiki 3.5.1
 
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] getDisplayTitle())

2012-12-10 Thread Gerritjan Koekkoek
Hi I'm trying to set the panel header text based on the content of a wiki 
document that can be translated.
So if the document is translated, the header of the panel will automatically 
change if the document title is changed.

Since the Documentation suggested setting a page header of level 1 to 4 will 
automatically as document title in breadcrumb (which works) I am looking for 
the code that will put that title in the panel header, but getDisplayTitle 
gives me the document name
I've tried also to set the title in the editor but same result, I get the 
document name 
Any suggestion?

{{velocity}} 
#set($menuDocument = $xwiki.getDocument('Sandbox.HomepageMenu1')) 
#set($menuSections = $menu1Document.getSections()) 
#set($panelHeaderText = $menuDocument.getDisplayTitle()) 
#panelheader($panelHeaderText) 
 #set($menuText=$menuDocument.getTranslatedContent()) 
$menuText 
#panelfooter() 
{{/velocity}}
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] getDisplayTitle())

2012-12-10 Thread Gerritjan Koekkoek
Hi,

This is working. 
When I edit the document I indeed see two translations; a 'en' and a '.' 
version.
Where is this '.' version coming from? It looks when you create a document it 
does not automatically set the language? When I set the language later to 'en' 
it creates this '.' version

Thanks a lot…
Gerritjan

Op 10 dec. 2012, om 10:10 heeft Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com het volgende geschreven:

 On Mon, Dec 10, 2012 at 10:49 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi I'm trying to set the panel header text based on the content of a wiki 
 document that can be translated.
 So if the document is translated, the header of the panel will automatically 
 change if the document title is changed.
 
 Since the Documentation suggested setting a page header of level 1 to 4 will 
 automatically as document title in breadcrumb (which works) I am looking for 
 the code that will put that title in the panel header, but getDisplayTitle 
 gives me the document name
 I've tried also to set the title in the editor but same result, I get the 
 document name
 Any suggestion?
 
 {{velocity}}
 
 #set($menuDocument = $xwiki.getDocument('Sandbox.HomepageMenu1'))
 
 This gives you the default translation which maybe doesn't have the
 title set or it doesn't have any headings in the content. Have you
 tried:
 
 #set($menuDocument =
 $xwiki.getDocument('Sandbox.HomepageMenu1').getTranslatedDocument())
 
 Hope this helps,
 Marius
 
 #set($menuSections = $menu1Document.getSections())
 #set($panelHeaderText = $menuDocument.getDisplayTitle())
 #panelheader($panelHeaderText)
 #set($menuText=$menuDocument.getTranslatedContent())
 $menuText
 #panelfooter()
 {{/velocity}}
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] getDisplayTitle())

2012-12-10 Thread Gerritjan Koekkoek
Hi
Op 10 dec. 2012, om 21:36 heeft Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com het volgende geschreven:

 On Mon, Dec 10, 2012 at 12:20 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 This is working.
 
 When I edit the document I indeed see two translations; a 'en' and a '.' 
 version.
 Where is this '.' version coming from? It looks when you create a document 
 it does not automatically set the language? When I set the language later to 
 'en' it creates this '.' version
 
 This is strange. Double check you localization configuration in the
 wiki administration. Maybe you added by mistake . in the list of
 supported languages.
 
Our configuration holds:
en,it,pl,nl,es,de,pt,fr,sv
Default language = en

As far as I can see there is no whitespace in language codes string, only ',' 
as separator
 Hope this helps,
 Marius
 
 
 Thanks a lot…
 Gerritjan
 
 Op 10 dec. 2012, om 10:10 heeft Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com het volgende geschreven:
 
 On Mon, Dec 10, 2012 at 10:49 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi I'm trying to set the panel header text based on the content of a wiki 
 document that can be translated.
 So if the document is translated, the header of the panel will 
 automatically change if the document title is changed.
 
 Since the Documentation suggested setting a page header of level 1 to 4 
 will automatically as document title in breadcrumb (which works) I am 
 looking for the code that will put that title in the panel header, but 
 getDisplayTitle gives me the document name
 I've tried also to set the title in the editor but same result, I get the 
 document name
 Any suggestion?
 
 {{velocity}}
 
 #set($menuDocument = $xwiki.getDocument('Sandbox.HomepageMenu1'))
 
 This gives you the default translation which maybe doesn't have the
 title set or it doesn't have any headings in the content. Have you
 tried:
 
 #set($menuDocument =
 $xwiki.getDocument('Sandbox.HomepageMenu1').getTranslatedDocument())
 
 Hope this helps,
 Marius
 
 #set($menuSections = $menu1Document.getSections())
 #set($panelHeaderText = $menuDocument.getDisplayTitle())
 #panelheader($panelHeaderText)
 #set($menuText=$menuDocument.getTranslatedContent())
 $menuText
 #panelfooter()
 {{/velocity}}
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Javascripted slideshow for home pages

2012-12-06 Thread Gerritjan Koekkoek
For one translation www.cdlsworld.org?language=nl we've included an iFrame that 
links to a 'hidden' website that holds a WOWSLIDER based html page. It is 
heavily javascripted with jQuery. The use of jQuery instead of Protoptype makes 
it difficult to use the wow slider javascript from within xwiki
We're experimenting if we could do this from within XWiki (without the iFrame). 
The reason being that maintaining the wow slider is a single person task and 
makes the organization vulnerable if this person leaves.

I've noticed you were active developing a carrousel on XWiki. Would it be 
possible to learn about this and share the approach?

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] jQuery

2012-11-28 Thread Gerritjan Koekkoek
Hi,

I've installed the query helper:
http://extensions.xwiki.org/xwiki/bin/view/Extension/jQuery+Helpers

But it looks like the jquery.jquery is empty, contains no object of class 
javascriptextension?
Why would I need to load the jquerry into such a page, could I not just get it 
from:
links to the CDN-hosted copies of jQuery?

If this is possible; how do I do this?

If $xwiki.jsx.use('jQuery.jQuery', {'defer': false}) is used the script is 
always in the header of the html page?
But If I would like to load a script somewhere in the body, how do I do that, 
not use $xwiki.jsx.use?

Would I need to write it inside a html macro?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki document sections

2012-11-27 Thread Gerritjan Koekkoek

I read in display macro documentation that you can display a section?
But how do you specify a section in a document?
I would like to understand this using the wysywig editor and using wiki editor?
And what velocity code would give me a section header and a section body 
(without the header)?

The only thing I can think of is the heading levels in the wysywig editor, but 
a document that has a header (level 2) and some text below the header does not 
seem to have sections if i call
#set($menuSections = $menu1Document.getSections())
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] change colortheme

2012-06-25 Thread Gerritjan Koekkoek
What is it you are looking for with respect to color themes?
We are using color themes as a important 'localization' feature in our 
multi-language XWiki
As we are a federation of independent associations each association has the 
option to create it's own color theme with logo.
Based on Spaces or on setting of TWO User attributes (default language and a 
custom property 'country code') we determine which color theme to pick.
This allows us that the same content can be presented to both associations in 
different color styling

Is this what you are looking for?

Gerritjan
Op 25 jun. 2012, om 11:02 heeft Hamster het volgende geschreven:

 Two years later...
 
 Is this nowadays possible?
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/change-colortheme-tp4509734p7579848.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error -You are not allowed to view this document or perform this action.

2012-06-18 Thread Gerritjan Koekkoek

Op 18 jun. 2012, om 08:51 heeft Marius Dumitru Florea het volgende geschreven:

 On Sat, Jun 16, 2012 at 1:05 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 
 Op 14 jun. 2012, om 15:37 heeft Marius Dumitru Florea het volgende 
 geschreven:
 
 On Thu, Jun 14, 2012 at 4:02 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 
 Op 14 jun. 2012, om 13:58 heeft Marius Dumitru Florea het volgende 
 geschreven:
 
 On Wed, Jun 13, 2012 at 8:02 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 I've created an app with app within minutes.
 
 A normal user gets the following error:
 Error
 You are not allowed to view this document or perform this action.
 
 On which page and which action? URL? (you can strip the domain part).
 xwiki/bin/view/CdLSATEPrivat/WebHome
 
 
 What can cause this error, the space has the right rights set. (View, 
 Comment and Edit; no Delete or Admin)
 No document level security. Other documents in the space can be seen…
 
 The page CdLSATEPrivat/WebHome is generated by app within minutes, but I 
 have modified the documentsheetbinding
 The LiveTableViewSheet has been copied from app within minutes space 
 into CdLSATEPrivat space
 
 
 Is there any groovy scripts that can not be used by normal users?
 
 If the Groovy script is in the sheet and the last sheet content author
 has programming rights then a simple user shouldn't have any problem
 viewing the page with that sheet applied. But, afaik, the message you
 get is not related to programming rights.
 
 If the document on which you get this message has a sheet you can try
 to bind the document to itself, sheet='', and see if the message
 remains.
 Still the same error:
 Content of page:
 {{velocity}}
 #set($originalMsg = $msg)
 #set($msg = 
 $services.dynamicMessageToolFactory.createDynamicMessageTool($msg, {
  'cdlsateprivat.livetable.doc.date': 
 $msg.get('platform.appwithinminutes.liveTableEditorDocDateColumnName'),
  'cdlsateprivat.livetable.doc.author': 
 $msg.get('platform.appwithinminutes.liveTableEditorDocAuthorColumnName'),
  'cdlsateprivat.livetable._actions.edit': 
 $msg.get('platform.appwithinminutes.appLiveTableEditEntryActionName'),
  'cdlsateprivat.livetable._actions.delete': 
 $msg.get('platform.appwithinminutes.appLiveTableDeleteEntryActionName'),
  'cdlsateprivat.livetable._actions': 
 $msg.get('platform.appwithinminutes.liveTableEditorActionsColumnName')
 }))
 #set($columnsProperties = {
  'squestioner': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'emailQuestioner': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'subject': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': 
 true, 'sortable': true, 'html': false},
  'cdlsPerson': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'status': {'type': 'list', 'size': 10, 'filterable': true, 'sortable': 
 true, 'html': false},
  'doc.date': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': 
 true, 'sortable': true},
  'doc.author': {'type': 'text', 'link': 'author', 'size': 10, 
 'filterable': true, 'sortable': true},
  '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 
 'delete']}
 })
 #set($options = {
  'className': 'CdLSATEPrivat.CdLSATEPrivatClass',
  'resultPage' : 'CdLSATEPrivat.LiveTableGenerator',
  'translationPrefix': 'cdlsateprivat.livetable.',
  'tagCloud': true,
  'rowCount': 15,
  'maxPages': 10,
  'selectedColumn': 'doc.author',
  'defaultOrder': 'asc'
 })
 #set($columns = ['squestioner', 'emailQuestioner', 'subject', 
 'cdlsPerson', 'status', 'doc.date', 'doc.author', '_actions'])
 #livetable('cdlsateprivat' $columns $columnsProperties $options)
 #set($msg = $originalMsg)
 {{/velocity}}
 
 It is having three objects:
 LiveTableClass 0: CdLSATEPrivat.CdLSATEPrivatClass
 DocumentSheetBinding 0: CdLSATEPrivat.LiveTableEditSheet
 XWikiRights 0: XWiki.User
 
 Then it's clearly a rights setting issue. I'd double check the rights
 set on the app home page, and app space (WebPreferences page). I don't
 have other ideas.
 Hi Marius,
 Thanks, indeed it was a rights setting! It works now.
 But I have a different challenge now.
 
 
 THe rights are now that USERS can add a document (because they have EDIT 
 rights in the space)
 But if USER A will add a document USER B should not be able to CHANGE (is 
 also EDIT) the document. This is only allowed for the creator and users in 
 GROUP MODERATOR.
 
 AWM doesn't execute any code when a new application entry is created.
 It just builds the URL for the Inline Form edit mode and then the
 document is created when you click save as any other plain document
 would be saved. So if you want to add some rights objects when a new
 application entry is created you have to write a Groovy listener. See
 for instance 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy
Thanks, This is good Information.
Would

Re: [xwiki-users] Error -You are not allowed to view this document or perform this action.

2012-06-16 Thread Gerritjan Koekkoek

Op 14 jun. 2012, om 15:37 heeft Marius Dumitru Florea het volgende geschreven:

 On Thu, Jun 14, 2012 at 4:02 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 
 Op 14 jun. 2012, om 13:58 heeft Marius Dumitru Florea het volgende 
 geschreven:
 
 On Wed, Jun 13, 2012 at 8:02 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 I've created an app with app within minutes.
 
 A normal user gets the following error:
 Error
 You are not allowed to view this document or perform this action.
 
 On which page and which action? URL? (you can strip the domain part).
 xwiki/bin/view/CdLSATEPrivat/WebHome
 
 
 What can cause this error, the space has the right rights set. (View, 
 Comment and Edit; no Delete or Admin)
 No document level security. Other documents in the space can be seen…
 
 The page CdLSATEPrivat/WebHome is generated by app within minutes, but I 
 have modified the documentsheetbinding
 The LiveTableViewSheet has been copied from app within minutes space into 
 CdLSATEPrivat space
 
 
 Is there any groovy scripts that can not be used by normal users?
 
 If the Groovy script is in the sheet and the last sheet content author
 has programming rights then a simple user shouldn't have any problem
 viewing the page with that sheet applied. But, afaik, the message you
 get is not related to programming rights.
 
 If the document on which you get this message has a sheet you can try
 to bind the document to itself, sheet='', and see if the message
 remains.
 Still the same error:
 Content of page:
 {{velocity}}
 #set($originalMsg = $msg)
 #set($msg = 
 $services.dynamicMessageToolFactory.createDynamicMessageTool($msg, {
  'cdlsateprivat.livetable.doc.date': 
 $msg.get('platform.appwithinminutes.liveTableEditorDocDateColumnName'),
  'cdlsateprivat.livetable.doc.author': 
 $msg.get('platform.appwithinminutes.liveTableEditorDocAuthorColumnName'),
  'cdlsateprivat.livetable._actions.edit': 
 $msg.get('platform.appwithinminutes.appLiveTableEditEntryActionName'),
  'cdlsateprivat.livetable._actions.delete': 
 $msg.get('platform.appwithinminutes.appLiveTableDeleteEntryActionName'),
  'cdlsateprivat.livetable._actions': 
 $msg.get('platform.appwithinminutes.liveTableEditorActionsColumnName')
 }))
 #set($columnsProperties = {
  'squestioner': {'type': 'text', 'size': 10, 'filterable': true, 'sortable': 
 true, 'html': false},
  'emailQuestioner': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'subject': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'cdlsPerson': {'type': 'text', 'size': 10, 'filterable': true, 'sortable': 
 true, 'html': false},
  'status': {'type': 'list', 'size': 10, 'filterable': true, 'sortable': 
 true, 'html': false},
  'doc.date': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': 
 true, 'sortable': true},
  'doc.author': {'type': 'text', 'link': 'author', 'size': 10, 'filterable': 
 true, 'sortable': true},
  '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 'delete']}
 })
 #set($options = {
  'className': 'CdLSATEPrivat.CdLSATEPrivatClass',
  'resultPage' : 'CdLSATEPrivat.LiveTableGenerator',
  'translationPrefix': 'cdlsateprivat.livetable.',
  'tagCloud': true,
  'rowCount': 15,
  'maxPages': 10,
  'selectedColumn': 'doc.author',
  'defaultOrder': 'asc'
 })
 #set($columns = ['squestioner', 'emailQuestioner', 'subject', 'cdlsPerson', 
 'status', 'doc.date', 'doc.author', '_actions'])
 #livetable('cdlsateprivat' $columns $columnsProperties $options)
 #set($msg = $originalMsg)
 {{/velocity}}
 
 It is having three objects:
 LiveTableClass 0: CdLSATEPrivat.CdLSATEPrivatClass
 DocumentSheetBinding 0: CdLSATEPrivat.LiveTableEditSheet
 XWikiRights 0: XWiki.User
 
 Then it's clearly a rights setting issue. I'd double check the rights
 set on the app home page, and app space (WebPreferences page). I don't
 have other ideas.
Hi Marius,
Thanks, indeed it was a rights setting! It works now.
But I have a different challenge now.

THe rights are now that USERS can add a document (because they have EDIT rights 
in the space)
But if USER A will add a document USER B should not be able to CHANGE (is also 
EDIT) the document. This is only allowed for the creator and users in GROUP 
MODERATOR.
I would like that the live table will show only EDIT ACTION Buttons for USERS 
that have the right to do so; so only in rows that point to a document created 
by them selves? (for moderators the current situation is OK (Edit buttons in 
all rows)

Does XWiki have a nice and easy configuration option for this? Or should i 
modify the document creation script to add rights per document?
If so, is there a snippet that will do so?

 
 Hope this helps,
 Marius
 
 
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] Error -You are not allowed to view this document or perform this action.

2012-06-14 Thread Gerritjan Koekkoek

Op 14 jun. 2012, om 13:58 heeft Marius Dumitru Florea het volgende geschreven:

 On Wed, Jun 13, 2012 at 8:02 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 I've created an app with app within minutes.
 
 A normal user gets the following error:
 Error
 You are not allowed to view this document or perform this action.
 
 On which page and which action? URL? (you can strip the domain part).
xwiki/bin/view/CdLSATEPrivat/WebHome
 
 
 What can cause this error, the space has the right rights set. (View, 
 Comment and Edit; no Delete or Admin)
 No document level security. Other documents in the space can be seen…
 
 The page CdLSATEPrivat/WebHome is generated by app within minutes, but I 
 have modified the documentsheetbinding
 The LiveTableViewSheet has been copied from app within minutes space into 
 CdLSATEPrivat space
 
 
 Is there any groovy scripts that can not be used by normal users?
 
 If the Groovy script is in the sheet and the last sheet content author
 has programming rights then a simple user shouldn't have any problem
 viewing the page with that sheet applied. But, afaik, the message you
 get is not related to programming rights.
 
 If the document on which you get this message has a sheet you can try
 to bind the document to itself, sheet='', and see if the message
 remains.
Still the same error:
Content of page:
{{velocity}}
#set($originalMsg = $msg)
#set($msg = $services.dynamicMessageToolFactory.createDynamicMessageTool($msg, {
  'cdlsateprivat.livetable.doc.date': 
$msg.get('platform.appwithinminutes.liveTableEditorDocDateColumnName'),
  'cdlsateprivat.livetable.doc.author': 
$msg.get('platform.appwithinminutes.liveTableEditorDocAuthorColumnName'),
  'cdlsateprivat.livetable._actions.edit': 
$msg.get('platform.appwithinminutes.appLiveTableEditEntryActionName'),
  'cdlsateprivat.livetable._actions.delete': 
$msg.get('platform.appwithinminutes.appLiveTableDeleteEntryActionName'),
  'cdlsateprivat.livetable._actions': 
$msg.get('platform.appwithinminutes.liveTableEditorActionsColumnName')
}))
#set($columnsProperties = {
  'squestioner': {'type': 'text', 'size': 10, 'filterable': true, 'sortable': 
true, 'html': false},
  'emailQuestioner': {'type': 'text', 'size': 10, 'filterable': true, 
'sortable': true, 'html': false},
  'subject': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': true, 
'sortable': true, 'html': false},
  'cdlsPerson': {'type': 'text', 'size': 10, 'filterable': true, 'sortable': 
true, 'html': false},
  'status': {'type': 'list', 'size': 10, 'filterable': true, 'sortable': true, 
'html': false},
  'doc.date': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': true, 
'sortable': true},
  'doc.author': {'type': 'text', 'link': 'author', 'size': 10, 'filterable': 
true, 'sortable': true},
  '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 'delete']}
})
#set($options = {
  'className': 'CdLSATEPrivat.CdLSATEPrivatClass',
  'resultPage' : 'CdLSATEPrivat.LiveTableGenerator',
  'translationPrefix': 'cdlsateprivat.livetable.',
  'tagCloud': true,
  'rowCount': 15,
  'maxPages': 10,
  'selectedColumn': 'doc.author',
  'defaultOrder': 'asc'
})
#set($columns = ['squestioner', 'emailQuestioner', 'subject', 'cdlsPerson', 
'status', 'doc.date', 'doc.author', '_actions'])
#livetable('cdlsateprivat' $columns $columnsProperties $options)
#set($msg = $originalMsg)
{{/velocity}}

It is having three objects:
LiveTableClass 0: CdLSATEPrivat.CdLSATEPrivatClass
DocumentSheetBinding 0: CdLSATEPrivat.LiveTableEditSheet
XWikiRights 0: XWiki.User

 
 Hope this helps,
 Marius
 
 
 Gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Error -You are not allowed to view this document or perform this action.

2012-06-13 Thread Gerritjan Koekkoek
I've created an app with app within minutes.

A normal user gets the following error:
Error
You are not allowed to view this document or perform this action.

What can cause this error, the space has the right rights set. (View, Comment 
and Edit; no Delete or Admin)
No document level security. Other documents in the space can be seen…

The page CdLSATEPrivat/WebHome is generated by app within minutes, but I have 
modified the documentsheetbinding
The LiveTableViewSheet has been copied from app within minutes space into 
CdLSATEPrivat space

Is there any groovy scripts that can not be used by normal users?

Gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] javascript App Within Minutes

2012-06-11 Thread Gerritjan Koekkoek
App Within Minutes creates a nice Add record button.
After clicking the button a dialog is presented asking for input that is
used to create a new documentname.

This is (more or less, since i modified it slightly) the Java script that
is added to the sheet by the app-within-minutes generator.
My question is due to fact that i'm not a javascript expert, so solution
might be very simple:
I would like to generate the documentname based on user that is clicking
the button
If user in group X then input will be pre populated with 'Full Name of
that user and popup will not allow user to change this value;
Confirmation would be like New Question will be made for: [[Gerritjan
Koekkoek]] and user can only proceed or cancel
If user in group y the same behaviour; but now the inputbox would need to
be open for change
Confirmation would be like New Question will be made for: [[Gerritjan
Koekkoek]] but now user can change the input to 'Andree Benz' meaning that
new question is posted by
Gerritjan Koekkoek on behalf of Andree Benz.
How would you suggest to change below script to get the desired effect?
(see lineindicator == of what I thought would be a solution?

var XWiki = (function (XWiki) {

XWiki.EntryNamePopup = Class.create(XWiki.widgets.ModalPopup, {
  initialize : function($super, trigger) {
trigger.observe('click', this.showDialog.bindAsEventListener(this));
this.urlTemplate = trigger.up().next('input[type=hidden]').value;

this.input = new Element('input', {type: 'text'});
this.addButton = new Element('input', {type: 'image', src:
'$xwiki.getSkinFile('icons/silk/add.png')', alt:
'$escapetool.javascript($msg.get('cdlsateprivat.CreateNewQuestionAltText'))'});

var container = new Element('div', {id: 'entryNamePopup'});
container.insert(this.input);
container.insert(this.addButton);

$super(container, {
  show: {method: this.showDialog, keys: []},
  add: {method: this._onAdd, keys: ['Enter']}
}, {
  title:
'$escapetool.javascript($msg.get('cdlsateprivat.CreateNewQuestionTitle'))',
  verticalPosition: 'top'
});
  },
  createDialog : function($super, event) {
this.input.observe
this.addButton.observe('click', this._onAdd.bind(this));
$super(event);
  },
  showDialog : function($super, event) {
$super(event);
==$this.input.val() == 'Gerritjan Koekkoek' //this line did not work,
how can I get it prepopulated (or suggested) with preferably XWiki variable
this.input.clear().focus();
  },
  _onAdd : function() {
if (this.input.value != '') {
  window.self.location = this.urlTemplate.replace('__entryName__',
encodeURIComponent(this.input.value));
} else {
  this.input.focus();
}
  }
});

function init() {
  var actionBox = $('actionBox');
  if(actionBox) {
new XWiki.EntryNamePopup(actionBox.down('.add'));
return true;
  }
  return false;
}
(XWiki.domIsLoaded  init()) || document.observe('xwiki:dom:loaded', init);

return XWiki;
}(XWiki || {}));
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] BLOG, multiple instances

2012-05-31 Thread Gerritjan Koekkoek
Hi,

We would like to create a second and third instance of BLOG within the Wiki
This is quite easy to do with the BLOG.Management

But having done that there are two important things which we would like to
see differently
- Categories: Now the categories are shared between the BLOGS. We would
like to have a Category structure per BLOG SPACE
- Panels: We would like to have three side panels (last posts, Posts per
category and Archive) showing only posts of that BLOG SPace

The instruction on XWiki,org do not cover these two things.
Who knows how to do this?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] app within minutes extended

2012-05-31 Thread Gerritjan Koekkoek
Hi Marius,

It looks like i'm getting it, step by step
Thanks, this really was helpful

If I have time I will try to document this more in depth and share with the 
community

Gerritjan

Op 24 mei 2012, om 16:26 heeft Marius Dumitru Florea het volgende geschreven:

 Hi Gerritjan,
 
 You should start by reading
 http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HCustomization
 .
 
 On Thu, May 24, 2012 at 3:37 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 I've create a app with the App within Minutes;
 The following class model is used:
 
   - Name (name: String)
   - E-mail (email: String)
   - Subject (subject: String)
   - Status (status: String)
   - Question (question: TextArea)
   - Answer (answer: TextArea)
   - Published to Public (generalize: Static List)
 
 So now when user click on 'Add' he/she is requested with document name and
 then he/she can fill in the record
 
 Now I would like to modify the behaviour?
 
 1) Click on Add should not ask for new document name but for 'subject',
 this should also show on the record prefilled
 
 (I would like to generate a document name base on UserName + Subject)
 
 This can be done by using a custom sheet for the home page of your
 application. First you need to understand class and document sheets:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module .
 Next you can bind a (custom) document sheet to the WebHome page of
 your application space. This custom sheet can be for instance a copy
 of AppWithinMinutes.LiveTableViewSheet which you customize for your
 needs.
 
 
 2) Some fields should be defaulted by code
 
 
 - name should be username, field should be hidden
 
 - E-mail should be fetched from user record (XWiki.username.email)
 
 - Subject (as stated under 1)
 
 These three can be done by customizing the sheet used to
 create/edit/view application entries. Note that for now you have to
 take care to uncheck Update class sheet next time you edit the
 application since otherwise your changes to the sheet will be
 overwritten (you can rollback of course).
 
 - Status should be defaulted to 'created'
 - Published to Public should be defaulted to 'no'
 
 These two can both be done on the 2nd step of AppWithinMinutes (where
 the model is defined). Any value you put/select in the fields is
 considered default values and is saved in the model template which is
 later used to create new application entries.
 
 Hope this helps,
 Marius
 
 How would you advise me to do this, i have modest velocity knowledge, but
 no groovy, it looks like the code behind the 'add'-button is 'groovy'
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] app within minutes extended

2012-05-24 Thread Gerritjan Koekkoek
Hi,

I've create a app with the App within Minutes;
The following class model is used:

   - Name (name: String)
   - E-mail (email: String)
   - Subject (subject: String)
   - Status (status: String)
   - Question (question: TextArea)
   - Answer (answer: TextArea)
   - Published to Public (generalize: Static List)

So now when user click on 'Add' he/she is requested with document name and
then he/she can fill in the record

Now I would like to modify the behaviour?

1) Click on Add should not ask for new document name but for 'subject',
this should also show on the record prefilled

(I would like to generate a document name base on UserName + Subject)

2) Some fields should be defaulted by code

- name should be username, field should be hidden

- E-mail should be fetched from user record (XWiki.username.email)

- Subject (as stated under 1)

- Status should be defaulted to 'created'
- Published to Public should be defaulted to 'no'

How would you advise me to do this, i have modest velocity knowledge, but
no groovy, it looks like the code behind the 'add'-button is 'groovy'

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] table in xwiki 3.5.1

2012-05-22 Thread Gerritjan Koekkoek
Hi,

In XWiki 1.7 the following code was created; it creates a html table with
links generated by #pagedViewLinks()
It now displays the #pagedViewLinks() but no longer the links
What is the current way of doing this (migrated to XWiki 3.5.1)?

  table id=cdlsTable
  class=grid sortable filterable doOddEven
  cellpadding=0
  cellspacing=0
  border=0
  tr class=sortHeader
  th$msg.get('Subject')/th
  th$msg.get('lst_modified')/th
  /tr
  #foreach ($faq in $faqlist)
tr
#set ($faqdoc = $xwiki.getDocument($faq))
#set ($faqobjs =
$faqdoc.getObjects(CdlsatdCode.CdLS_ATD_PublicFAQClass))
#foreach ($faqobj in $faqobjs)
  #if($faqobj.language == $lang)
td[[$faqobj.subject$faq]]/td
td$xwiki.formatDate($faqdoc.ContentUpdateDate, dd/MM/)/td
  #end
#end
/tr
  #end
  /table
  #pagedViewLinks($itemsPerPage $totalPages $crtPageNumber)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWQL issue

2012-05-06 Thread Gerritjan Koekkoek
Hi,

I fail to get a good understandinding of XWiki Query Language (my goal is
to transform working HQL to XWQL)

This code is working…
{{velocity}}
#set($classname = CdLSATEPublic.CdLSATEPublicClass)
#set($findWQL = 
  from doc.object($classname) as qat
  )
#set($resultDocuments =  $services.query.xwql($findWQL).execute())
#foreach($resultDocument in $resultDocuments)
 $resultDocument
#end
{{/velocity}}

While this code is not working..
{{velocity}}
#set($classname = CdLSATEPublic.CdLSATEPublicClass)
#set($findWQL = 
  from doc.object($classname) as qat
  where qat.language = 'en'
  )
#set($resultDocuments =  $services.query.xwql($findWQL).execute())
#foreach($resultDocument in $resultDocuments)
 $resultDocument
#end
{{/velocity}}

Where is my problem? (see error code below…)

Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to
evaluate content with id [xwiki:CdlsatdCode.try2]
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:247)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
at 
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124)
... 106 more
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'execute' in  class
org.xwiki.query.internal.DefaultQuery threw exception
org.xwiki.query.QueryException: Exception while translating [
from doc.object(CdLSATEPublic.CdLSATEPublicClass) as qat
where qat.language = 'en'
] XWQL query to the [hql] language. Query statement = [
from doc.object(CdLSATEPublic.CdLSATEPublicClass) as qat
where qat.language = 'en'
] at xwiki:CdlsatdCode.try2[line 7, column 57]
at 
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
... 108 more
Caused by: org.xwiki.query.QueryException: Exception while translating [
from doc.object(CdLSATEPublic.CdLSATEPublicClass) as qat
where qat.language = 'en'
] XWQL query to the [hql] language. Query statement = [
from doc.object(CdLSATEPublic.CdLSATEPublicClass) as qat
where qat.language = 'en'
]
at 
org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:76)
at 
org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
at 
org.xwiki.query.internal.SecureQueryExecutorManager.execute(SecureQueryExecutorManager.java:80)
at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:236)
at sun.reflect.GeneratedMethodAccessor413.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
... 114 more
Caused by: org.xwiki.query.jpql.lexer.LexerException: [1,95] Unknown token:
at org.xwiki.query.jpql.lexer.Lexer.getToken(Lexer.java:809)
at org.xwiki.query.jpql.lexer.Lexer.peek(Lexer.java:36)
at org.xwiki.query.jpql.parser.Parser.parse(Parser.java:110)
at org.xwiki.query.jpql.internal.JPQLParser.parse(JPQLParser.java:46)
at 
org.xwiki.query.xwql.internal.hql.XWQLtoHQLTranslator.translate(XWQLtoHQLTranslator.java:55)
at 
org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:59)
... 123 more



Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] create new page with object from html form

2012-04-30 Thread Gerritjan Koekkoek
Hi,

The below solution does not create a new document with the expected object;
{{html}}
form action=${newATEQA}.getURL(objectadd,language=$lang) id=newdoc
method=post
  div
input type=hidden name=parent value=${doc.fullName}/
input type=hidden name=template
value=CdLSATEPublic.CdLSATEPublicTemplate/
input type=hidden name=sheet value=1/
input type=hidden name=spaceName value=CdLSATEPublic/
input type=hidden name=CdLSATEPublicClass_ID value=6/
input type=hidden name=CdLSATEPublicClass_ CountryCode value=us/
 input type=hidden name=CdLSATEPublicClass_language value=en/
Document: input type=text name=CdLSATEPublicClass_subject
value=Enter your question here class=withTip size=50/
span class=buttonwrapperinput type=submit value=Create this
FAQ class=button//span
  /div
/form
{{/html}}

I've define a new document name, the intention is that the new document
will be created as a child of the current document with the language
specified and a object of specified class with the attributes as specified
in Inputs.
But I get a dialog for creating a new page that des not exist (which is
correct from the wiki perspective), if i select OK it will create a empty
document with a empty object

What should i do to make this work?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Live Table headers

2012-04-22 Thread Gerritjan Koekkoek
Hi,

I've generated a livetable.
See code below:

It works good!
It will generated a livetable and extend the table with collumns to the right 
based on a query.
Now the header of the column will be _gben, _eses,  _nlnl (etcetera for all 
country/language combinations in our wiki)
In the translation table (it is a multilanguage wiki) it will be translated to 
gben, eses, nlnl etcetera...

My question is how I can replace these headers with images of countryflags (if 
at all?)
Could I put a url in the translations file that will render intime?

What piece of code in the default lifetable will take care of the header

Gerritjan
{{include document=CdLSATEPublic.TranslationMatrixHeader/}}
{{include document=CdLSCountries.Macros/}}

{{velocity}}
#set($columns =[])
#set($discard = $columns.add(AlphabetSort))
#set($discard = $columns.add(subject))
#set($discard = $columns.add(topics))
#set($discard = $columns.add(SACApproved))
#set($discard = $columns.add(CountryCode))
#set($columnsProperties = {
  AlphabetSort : { type : text, link : view, size : 1, 
filterable : true, sortable: true },
  subject : { type : text, link : view, size : 10, filterable 
: true, sortable: true },
  topics : { type : text, link : view, size : 10, filterable 
: true, sortable: true },
  question : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  language : { type : hidden, link : none, size : 1, 
filterable : false, sortable: false },
  CountryCode : { type : hidden, link : view, size : 2, 
filterable : false, sortable: false },
  answer : { type : text, link : view, size : 10, filterable 
: true, sortable: true },
  SACApproved : { type : text, link : view, size : 4, 
filterable : true, sortable: true },
  _avatar : { type : none, link : none, html : true, 
sortable:false },
  _images : { type : none, link : none, html : true, 
sortable:false },
  _attachments : { type : none, link : none, html : true, 
sortable:false },
  _actions : { type : none, link : none, html : true, 
sortable:false },
  doc.name : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.space : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.fullName : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.author : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.date : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.creator : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.creationDate : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.title : { type : text, link : view, size : 20, 
filterable : true, sortable: true }
})
#set($options = { 
className:CdlsatdCode.CdLSATEPublicQAClass,   
translationPrefix : cdlsatepublicqa.livetable.,  
topFilters: 'input type=hidden size=${columnsProperties.size} 
name=languagevalue=en/',
topFilters: 'input type=hidden size=${columnsProperties.size} 
name=CountryCodevalue=us/',
tagCloud : false,  
rowCount: 15,  
maxPages : 50, 
selectedColumn : AlphabetSort, 
defaultOrder : asc 
})
##
## Find the associations
##
#set ($associationQuery = , 
BaseObject as associations 
where associations.name=doc.fullName 
and associations.className='CdLSAssociations.CdLSAssociationsClass' 
and associations.name'CdLSAssociations.CdLSAssociationsTemplate'
)
#set($associationList = $xwiki.searchDocuments($associationQuery))
#foreach ($association in $associationList)
   #set ($associationDoc = $xwiki.getDocument($association))
   #set($discard = 
$associationDoc.use('CdLSAssociations.CdLSAssociationsClass'))
   #set($countriesSupported = $associationDoc.getValue('CountriesServed'))
   #set($languagesSupported = $associationDoc.getValue('languagesSupported'))
   #foreach ($country in $countriesSupported)
  #foreach($language in $languagesSupported)
 #set($CollumnCode = $country + $language)
 #if($CollumnCode != usen)
   #set($extraCollumn = _ + ${CollumnCode})
   #set($discard = $columns.add(${extraCollumn}))
   #set($discard = $columnsProperties.put(${extraCollumn} , { type : 
text, link : view, size : 5, filterable : false, sortable: false 
}))
 #end
  #end
   #end
#end

#livetable(cdlsatepublicqa $columns $columnsProperties $options)
{{/velocity}}
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Upgrade strategy

2012-04-02 Thread Gerritjan Koekkoek
Hi,

What is the best strategy for upgrading (2.7 - 3.5.1) and making sure 
everything is based on the latest?

I was thinking the following;

Export the old Wiki (full Export)
Delete the Wiki
Clean installed Wiki
Import the Export
Import the XAR of a fresh Wiki

Problem with above;
 With last step I overwrite and lose all modified pages (especially XWikiusers 
group)
 All imported pages are not modified to latest XWiki syntax
 profiles of XWikiUsers are based on OLD object definition
 Object def changes in BLOG (if any?)
 Script changes in Register procedure
 any other?

Gerritjan


 


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] AppWithinMinutes

2012-03-22 Thread Gerritjan Koekkoek
Hi

What is the best practice to extend AppWithinMInutes created sheets to manage 
the following controls;
- UI Control for URL's, i've defined it as a short text field, And I would like 
to make it easy for the user to enter a valid url or link to XWiki page
- UI Control for Email addresses (same as above)

Currently the appWithinMinutes generates:
  ; label 
for=CdLSAssociations.CdLSAssociationsClass_0_website$doc.displayPrettyName('website',
 false, false)/label##
(% class=xHint %)$msg.get('')
  : $doc.display('website')

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Velocity string challenge

2011-11-16 Thread Gerritjan Koekkoek
Hi,

I'm converting a XML file into XWiki pages with a structured object, my problem 
is that the XML file might contain elements with problematic text
I have a XSLT that gives me a velocity script (like below)
  {{velocity}}
##Creating a ATE Question and Answer document programatically
#set($ATEPrefix = CdLSATE)
#set($ATEDocName = $ATEPrefix+'TE'+1001)
#set($newATEQA = $xwiki.getDocument(CdLSATEPublic.$ATEDocName)) 
##Set a title
$newATEQA.setTitle(Teeth Exfoliation)
##Set parent of document to Public ATE Questions and Answers
$newATEQA.setParent(CdLSATEPublic.CdLSATEPublicQAs) 
##This is how you can use a template 
$newATEQA.setContent('{{include 
document=CdlsatdCode.CdLSATEPublicQATemplate/}}') 
##Create a new object on the document 
#set($newATEQAObject = 
$newATEQA.newObject(CdlsatdCode.CdLSATEPublicQAClass)) 
##Set a field to a particular value
$newATEQAObject.set(AlphabetSort,TE)
$newATEQAObject.set(subject,Teeth Exfoliation)

$newATEQAObject.set(question,Is early loss of baby teeth 
something to be concerned about, indicative of a bigger problem, or related to 
CdLS?)

$newATEQAObject.set(language,en)
$newATEQAObject.set(CountryCode,us)
$newATEQAObject.set(answer,
It is normal for children, especially girls, to lose their lower 
two front teeth from 4.5 years old to 5.5 years old. 4.5 years is early, but 
can be considered normal. There seems to be quite a variety of times when 
children with CdLS find themselves loosing their primary or baby teeth. 
Children with CdLS can have their primary teeth fall out either early or, more 
often, late. If the child is four years old and there are no other underlying 
medical complications, such as, hypothyroidism, hypophosphatsia, etc., then I 
would not be too concerned about losing the teeth. If there were many teeth, 
including molars that are getting loose, then further investigations would be 
indicated.

DM/ TK 7-13-10

SEE ALSO: Teeth Grinding 1
Teeth Grinding 2
Teeth Growth

Teething)

$newATEQAObject.set(SACApproved,1)
$newATEQA.save()
   {{velocity

$newATEQAObject.set(question,...) and $newATEQAObject.set(answer,...) 
give me challeges

Some text elements (not this example) will contain characters or combination of 
characters that will have a effect;
- on the script not being valid; the  (double bracket) character
- having a XWiki 2.0 meaning; -- , ** but intending something else

Help appreciated...

Gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Italian translation xwiki core

2011-10-17 Thread Gerritjan Koekkoek
I was at a demo of a Web application development tool.
This tool created INITIAL translations by matching each line with google 
translate, translators could the overwrite the initial translation where needed

Would it be possible at l10n.xwiki.org to create a script that would do this 
for all lines not already translated
the we could focus on those lines not correctly translated by Google (or any 
translation service?)



Op 13 okt. 2011, om 12:41 heeft Thomas Mortagne het volgende geschreven:

 On Thu, Oct 13, 2011 at 12:13 PM, AngeloG elgh...@gmail.com wrote:
 For italian users that are interested in updating their italian resource
 file, please visit
 http://l10n.xwiki.org/xwiki/bin/view/L10N/TranslationRules_it , where I
 posted my last version (3.1 and 3.2) of ApplicationResources_it.properties
 file.
 
 For xwiki developers: it is still too much time consuming (at least for me)
 to update translations line by line through actual system (l10n.xwiki.org),
 for what regards the big application resource file (3500 lines).
 
 Unfortunately I don't have time right now to do a resource file
 importer UI. Will try look to look at it next week (or maybe this
 weekend if I really can't sleep ;)).
 
 
 Angelo Ghisoni
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Italian-translation-xwiki-core-tp6888357p6888357.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 -- 
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] create a document from a button...

2011-10-12 Thread Gerritjan Koekkoek
/javascript
 function postGlobal() {
 
document.getElementById(postGlobalForm).action=../../inline/CdlsatdPrivate/ 
+ document.getElementById(postGlobalForm).cdls.value; 
 document.getElementById(postGlobalForm).submit();
 
 } 
/script
#end
## Public Version
#if(!$xwiki.getUser().isUserInGroup(XWiki.User))
   #if($doc.get('generalize') == 'Yes')
 #set($newDocName=$doc.name++$public)
 #set ($faqquery = , BaseObject as obj,StringProperty as prop where 
obj.name=doc.fullName and doc.name='$newDocName' and 
obj.className='CdlsatdCode.CdLS_ATD_PublicFAQClass' and 
obj.name'CdlsatdCode.CdLS_ATD_PublicFAQClassTemplate' and prop.id=obj.id and 
prop.name='language' and prop.value='$lang' order by doc.date desc)
 #set($countList = $xwiki.searchDocuments($faqquery))
 #if($countList.size()0)
 a href=../../view/CdlsatdPublic/$doc.name$public 
class=roundCornerLinkspan$msg.get('lbl_lnk_public_version')/span/a
 #end
   #end
#end
## Edit Link for the personal Question
#if(($context.action != inline)  !$doc.isNew())
 #if(!$xwiki.getUser().isUserInGroup(XWiki.User) || ($doc.creator == 
$context.user))
   a href =$doc.getURL(inline,edit=yesauthor=$reqParamAuthor)  
class=roundCornerLinkspan$msg.get('lbl_btn_edit')/span/a
 #end
#end
script
function openUserProfile(isDocExist) {
if(isDocExist) {
window.open 
(../../view/CdlsatdPrivate/$creatorDocNameNew?mode=viewpopup=true, 
childFlagWindow,location=0,status=0,scrollbars=1,width=750,height=900,resizable=0);
 
} else {

document.getElementById(docNotExistId).style.display='block';
}
}
/script
{{/html}}
{{/velocity}}
Op 12 okt. 2011, om 11:05 heeft Sergiu Dumitriu het volgende geschreven:

 On 10/11/2011 05:15 AM, Gerritjan Koekkoek wrote:
 Hi
 
 We have a script developped in XWiki which does not function anymore?
 Probably due to migration or rights...
 
 My problem is that the script is developed by a IT partner 3 years ago, in 
 XWiki 1.6
 
 THere is a button in a screen showing a overview of pages with a button to 
 create a new page.
 This button has the following link;
 http://www.cdlsworld.org/xwiki/bin/inline/CdlsatdPrivate/DjennaKoekkoek3_doc105
 ?Parent=CdlsatdPrivate.WebHome
 template=CdlsatdCode.CdLS_ATD_UserQuestionsClassTemplate
 name=Djenna
 status=opt_un_answered
 generalize=No
 cdls=DjennaKoekkoek3_doc105
 
 The errorcode is not helping me much...
 Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate 
 content with id [xwiki:CdlsatdPrivate.DjennaKoekkoek3_doc105]
  at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:205)
  at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
  at 
 org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:118)
  ... 87 more
 Caused by: org.apache.velocity.exception.MethodInvocationException: 
 Invocation of method 'get' in  class java.util.Collections$EmptyList threw 
 exception java.lang.IndexOutOfBoundsException: Index: 0 at 
 xwiki:CdlsatdPrivate.DjennaKoekkoek3_doc105[line 124, column 32]
  at 
 org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
  at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
  at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
  at 
 org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
  at 
 org.apache.velocity.runtime.parser.node.ASTMathNode.value(ASTMathNode.java:84)
  at 
 org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
  at 
 org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
  at 
 org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
  at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
  at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
  ... 89 more
 Caused by: java.lang.IndexOutOfBoundsException: Index: 0
  at java.util.Collections$EmptyList.get(Collections.java:2970)
  at sun.reflect.GeneratedMethodAccessor11070.invoke(Unknown Source)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
 The code around Line 12 (How should I find the linenumber; should I include 
 with counting the comments lines or only the lines with code?)
 
 ## This sheet will display and edit a Private Question
 ##
 ## Test the language to display the information
 #if($request.language)
   #set($lang=$request.language)
 #else
   #set($lang=$context.language)
 #end
 $lang  {{html}}br

[xwiki-users] create a document from a button...

2011-10-11 Thread Gerritjan Koekkoek
Hi 

We have a script developped in XWiki which does not function anymore?
Probably due to migration or rights...

My problem is that the script is developed by a IT partner 3 years ago, in 
XWiki 1.6

THere is a button in a screen showing a overview of pages with a button to 
create a new page.
This button has the following link;
http://www.cdlsworld.org/xwiki/bin/inline/CdlsatdPrivate/DjennaKoekkoek3_doc105
?Parent=CdlsatdPrivate.WebHome
template=CdlsatdCode.CdLS_ATD_UserQuestionsClassTemplate
name=Djenna
status=opt_un_answered
generalize=No
cdls=DjennaKoekkoek3_doc105

The errorcode is not helping me much... 
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate 
content with id [xwiki:CdlsatdPrivate.DjennaKoekkoek3_doc105]
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:205)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at 
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:118)
... 87 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation 
of method 'get' in  class java.util.Collections$EmptyList threw exception 
java.lang.IndexOutOfBoundsException: Index: 0 at 
xwiki:CdlsatdPrivate.DjennaKoekkoek3_doc105[line 124, column 32]
at 
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at 
org.apache.velocity.runtime.parser.node.ASTMathNode.value(ASTMathNode.java:84)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
... 89 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Collections.java:2970)
at sun.reflect.GeneratedMethodAccessor11070.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
The code around Line 12 (How should I find the linenumber; should I include 
with counting the comments lines or only the lines with code?)

## This sheet will display and edit a Private Question
## 
## Test the language to display the information
#if($request.language)
  #set($lang=$request.language)
#else
  #set($lang=$context.language)
#end
$lang  {{html}}br/{{/html}}
## Build a list of possible status the question can have to populate dropdown
## dependant on the language it will take the list from CdlsatdCode.Translations
## the key values of list should, off course, not be translated
## 
dd_status_question_v1=opt_un_answered,opt_answered,opt_in_progress,opt_more_info_required
##
## First get the translated meanings
#set($engList = $msg.get('dd_status_user_questions_en'))
#set($engStatusList=[])
#foreach( $op in $engList.split([|,]))
   #set($temp2 = $engStatusList.add($op))
#end
$engStatusList {{html}}br/{{/html}}
## Second get the list codes
#set($questionStatusComma = $msg.get('dd_status_question_v1'))
#set($statusList=[])
#foreach($keyStatusTxt in $questionStatusComma.split([|,]))
  #set($temp3 = $statusList.add($keyStatusTxt))
#end
$statusList {{html}}br/{{/html}}
##
## The privat question is a object of class 
CdlsatdCode.CdLS_ATD_UserQuestionsClass
#set($userQuestionObj = 
$doc.getObject(CdlsatdCode.CdLS_ATD_UserQuestionsClass))
## Get the staus of the question
#set($userQnStatus = $userQuestionObj.getProperty('status').getValue())
##
## Evaluate the creation of a new question (or a modification)
#if($request.getParameter('success') == 'true')
  ## We have a slightly disturbing Rights implementation
  ## User is a client
  ## If you are not in User you are considered a Moderator (or question support 
person)
  ## But also these people should be allowed to post questions, currently they 
are not!
  ## better implementation would be; All approped people should be in User, 
some have extra rights like Moderator or Global moderator
  #if($xwiki.getUser().isUserInGroup(XWiki.User))
  {{info}}{{html 
clean=false}}$msg.get('msg_success_question_posted'){{/html}}{{/info}}
  #else
 {{info}}{{html clean=false}}$msg.get('msg_success'){{/html}}{{/info}}
  #end
#end
It looks like it find an empty object...

This is 

[xwiki-users] CRUD in XWiki wit objects

2011-10-11 Thread Gerritjan Koekkoek
Hi

Is there a best-practise implementation of CRUD avents (Create, Read, Update 
and Delete) in a templatesheet for a class
Default the following is generated for a XWiki class

#set($class = $doc.getObject('CdlsatdCode.CdLSATEPublicQAClass').xWikiClass)
#foreach($prop in $class.properties)
  ; $prop.prettyName
  : $doc.display($prop.getName())
#end

This is fine for Read (=View) and Update events except for rules to be 
implemented around data integrity with update

When I CREATE the object (test for $doc.isNew() in most cases, unless multiple 
objects are created on same document, this might be case for 
internationalization
 typical things to do in CREATE is setting of the defaults value, setting keys 
that link to other objects (child of...)
When I UPDATE the object there might be attributes where we test Old.value 
against New.Value and NEW.Value might
When I DELETE the object (or the containing document) I might want to prevent 
that in order for integrity (by example Parent Child relation ships, do not 
delete the parent while there are still childs)

This is related to my previous post, since I discover the code is really 
becoming a mess if I do not use a best-practise

Who has implemented a practise and can tell me about the pro's and con's, this 
might be even a good thing to publish on the documentation of XWiki.org
since i expect many who are involved in building forms run into the same 
questions

Gerritjan

 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Vertical Form layout

2011-10-10 Thread Gerritjan Koekkoek
What is best practice on changing the style of a form while keeping the default 
colibri-style intact (for easy upgrading)

http://platform.xwiki.org/xwiki/bin/view/DevGuide/VerticalForms

In the Guide the labels, required, help, hint, Error are ALL positioned ON TOP 
of the input box, selector,...

Label - required - help
hint
error
INPUT

The request of our people is to have the vertical form layout slightly changed 
into a so called two column layout with use of Group(or Row) 

In the left column we would like:

Label
hint

In the right column we would like the remaining
- required - help
error
Input

Where the label is off course horizontal aligned with Input

1) Should we use a style sheet extension that is applied to all pages (or to 
pages with a object display and a inline form)?
2) Is this available as a snippet

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] MultiLanguage on class-object model

2011-09-28 Thread Gerritjan Koekkoek
Hi,

I'm trying some basic functionality on a multilanguage Wiki (3.1)

I create a class
I create the default Class sheet and add a object on it (like suggested in the 
default)
I create the default Class template and add a object on it (like suggested in 
the default)

Then I create a object;
It creates a page containing the object, I use the inline form editor to enter 
some data and save.

Now I want to create a translation in another language?
How should I do that?

The inline form editor does not have a translate option, when I create a 
translation with the wiki editor i'm probably
create a new wiki document with a different language, but it seems to point to 
the SAME object. when I change the content of the object in the other language, 
these changes also show when I navigate back to the english page

It looks like I should instantiate a new object of the class, but then the page 
language is still 'en'
And how do we manage then that these objects still relate to each other? If I 
change the english version of a record this should be related to the content of 
the translations!

Gerritjan



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



Re: [xwiki-users] MultiLanguage on class-object model

2011-09-28 Thread Gerritjan Koekkoek
As I understand, to internationalize I can use workaround as described on page 
advised by Vincent;

Op 28 sep. 2011, om 09:51 heeft Vincent Massol het volgende geschreven:

 
 On Sep 28, 2011, at 9:45 AM, Thomas Mortagne wrote:
 
 On Wed, Sep 28, 2011 at 9:29 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 I'm trying some basic functionality on a multilanguage Wiki (3.1)
 
 I create a class
 I create the default Class sheet and add a object on it (like suggested in 
 the default)
 I create the default Class template and add a object on it (like suggested 
 in the default)
 
 Then I create a object;
 It creates a page containing the object, I use the inline form editor to 
 enter some data and save.
 
 Now I want to create a translation in another language?
 How should I do that?
 
 Translation is not supported for objects unfortunately. See
 http://jira.xwiki.org/browse/XWIKI-69.
 
 See also documentation at 
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications
 And especially:
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications#HI18nofXWikiObjects
I have one page and for each language I add a object (having a language code 
field in attribute) (mutiple objects on ONE page(?))
In the sheet I have display code that selects the object based on context 
(language code) in browser
What should I do to also get 'natural' results in livetable and lucene search
So when context is language 'nl' both only will look at objects with language 
attibute set to 'nl'

 
 Thanks
 -Vincent
 
 The inline form editor does not have a translate option, when I create a 
 translation with the wiki editor i'm probably
 create a new wiki document with a different language, but it seems to point 
 to the SAME object. when I change the content of the object in the other 
 language, these changes also show when I navigate back to the english page
 
 It looks like I should instantiate a new object of the class, but then the 
 page language is still 'en'
 And how do we manage then that these objects still relate to each other? If 
 I change the english version of a record this should be related to the 
 content of the translations!
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] WebDav

2011-09-20 Thread Gerritjan Koekkoek
On the xwiki.org there is a feature on XWiki presented;
The WebDAV feature exposes wiki content (attachments, page content) through the 
well-known WebDAV protocol. 
This allows using WebDAV clients like DAVExplorer, file browsers like the 
Windows Explorer (XP), the Finder (MAC) or 
Nautilus (Linux) to directly browse and edit wiki content just as you would do 
for files in your local file system.

Does this feature require configuration of the server.
Do I understand that by dropping photo's in a folder I could add photo's the 
the XWiki photoalbum
although the XWiki stores all the attachments in a mySql database?

We have a server on version 2.7.1

Gerritjan


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] WebDav

2011-09-20 Thread Gerritjan Koekkoek
I do understand it is a feature always on?

I did a little test with mac os x lion, finder, go to server
I entered http://[url] without www.

But how do I Identify myself and what rights are exposed, I assume the same 
rights the user has on the Wiki?
Or should I use another webDAv client?

Op 20 sep. 2011, om 13:02 heeft Vincent Massol het volgende geschreven:

 
 On Sep 20, 2011, at 12:51 PM, Gerritjan Koekkoek wrote:
 
 On the xwiki.org there is a feature on XWiki presented;
 The WebDAV feature exposes wiki content (attachments, page content) through 
 the well-known WebDAV protocol. 
 This allows using WebDAV clients like DAVExplorer, file browsers like the 
 Windows Explorer (XP), the Finder (MAC) or 
 Nautilus (Linux) to directly browse and edit wiki content just as you would 
 do for files in your local file system.
 
 Does this feature require configuration of the server.
 
 No
 
 Do I understand that by dropping photo's in a folder I could add photo's the 
 the XWiki photoalbum
 
 Yes
 
 although the XWiki stores all the attachments in a mySql database?
 
 XWiki stores attachment where you've defined it. By default it's in the 
 database (any DB supported by Hibernate, doesn't have to be MySQL).
 See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
 
 Thanks
 -Vincent
 
 
 We have a server on version 2.7.1
 
 Gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] using photo's from flickr (or Picasa, ...)

2011-09-11 Thread Gerritjan Koekkoek

Op 11 sep. 2011, om 11:34 heeft Marius Dumitru Florea het volgende geschreven:

 On Sat, Sep 10, 2011 at 11:01 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Does the {{gallery}} work in 2.7.1.34853?
 
 The gallery macro was added in 3.0. You can try copying the gallery
 macro jar to your WEB-INF/lib folder and the
 resources/uicomponents/widgets/gallery folder from a newer version
 (=3.0) and see if it works. Don't forget to restart your server.
 
Our server is hosted at XWiki.com, so we do not have access to filesystem and 
restarting
I would prefer XWiki.com are able to try this for us...
But we need to understand the RSS better, especially when photo's are mostly 
used as a single photo in a article context
Should we then TAG each foto individually because of Tag=... clause in the 
flickr RSS sample or could we also refer to title.

Second the RSS seems to be working when we grant access to public on Flickr, 
but we need a more secure access, so we can be sure photos are only used 
THROUGH the XWiki server 
to ensure they are shown in the right context/with the right story!


 Hope this helps,
 Marius
 
 How to get the updated RSS macro for this version of XWiki?
 
 What RSS feeds will display foto's, when I click on the RSS icon in flickr 
 and I copy and paste the feed in the RSS macro, it displays links to the 
 foto's, but no photos
 When I use the syntax as supplied in the example it show the foto's tagged 
 with xwiki
 When i replace the tag with my own tag it does not display any photo
 
 
 Op 9 sep. 2011, om 19:59 heeft Vincent Massol het volgende geschreven:
 
 
 On Sep 9, 2011, at 7:29 AM, Marius Dumitru Florea wrote:
 
 On Thu, Sep 8, 2011 at 11:54 AM, Vincent Massol vinc...@massol.net wrote:
 BTW (for Marius), it could be nice to be allowed to give a RSS feed to 
 the Gallery macro, i.e. to generalize the notion of source for the 
 gallery macro.
 
 The gallery macro looks for images in its content, so
 
 {{gallery}}
 {{rss ... /}}
 {{/gallery}}
 
 works fine (tested with the Flickr feed).
 
 I've now fixed it by adding a decoration parameter to the rss macro.
 See http://extensions.xwiki.org/xwiki/bin/view/Extension/RSS+Macro and 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro
 
 Thanks
 -Vincent
 
 
 Hope this helps,
 Marius
 
 
 Thanks
 -Vincent
 
 On Sep 8, 2011, at 10:52 AM, Vincent Massol wrote:
 
 Hi,
 
 On Sep 8, 2011, at 10:34 AM, Gerritjan Koekkoek wrote:
 
 What is considered the best way to use photos published on flickr (or 
 any media storing and sharing source) in the XWiki
 a) through the image button in the Rich Text editor, so it can be done 
 without coding, macro's
 b) a macro that you can call from the button strip in the rich text 
 editor
 
 There used to be a Flickr integration on the XWiki extensions, but they 
 only work in syntax 1.0
 
 You can use the RSS macro as is shown here:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/RSS+Macro
 (check the example I added a flickr exampleà
 
 What would be great would be to contribute a flickr macro making it even 
 easier to use. It's really easy to write.
 
 Thanks
 -Vincent
 
 It would be great if you can also used secured photos on flickr through 
 safe links. User must login to XWiki, but can see foto's in flickr 
 although when going directly
 to flickr that user could not see the photo's
 
 Today we are uploading photo's two times; once to flickr and once to 
 XWiki, where the metadata in flickr is much richer; title, description, 
 geotag, dat/time
 We would like to replace that with a much more integrated approach; 
 upload once see everywhere.
 If other foto-sharing services are better integrated with XWiki 
 platform, we are willing to look at these (Picasa, Facebook, ...) and 
 migrate our photo's to these services
 
 Gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] using photo's from flickr (or Picasa, ...)

2011-09-10 Thread Gerritjan Koekkoek
Does the {{gallery}} work in 2.7.1.34853?
How to get the updated RSS macro for this version of XWiki?

What RSS feeds will display foto's, when I click on the RSS icon in flickr and 
I copy and paste the feed in the RSS macro, it displays links to the foto's, 
but no photos
When I use the syntax as supplied in the example it show the foto's tagged with 
xwiki
When i replace the tag with my own tag it does not display any photo


Op 9 sep. 2011, om 19:59 heeft Vincent Massol het volgende geschreven:

 
 On Sep 9, 2011, at 7:29 AM, Marius Dumitru Florea wrote:
 
 On Thu, Sep 8, 2011 at 11:54 AM, Vincent Massol vinc...@massol.net wrote:
 BTW (for Marius), it could be nice to be allowed to give a RSS feed to the 
 Gallery macro, i.e. to generalize the notion of source for the gallery 
 macro.
 
 The gallery macro looks for images in its content, so
 
 {{gallery}}
 {{rss ... /}}
 {{/gallery}}
 
 works fine (tested with the Flickr feed).
 
 I've now fixed it by adding a decoration parameter to the rss macro.
 See http://extensions.xwiki.org/xwiki/bin/view/Extension/RSS+Macro and 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro
 
 Thanks
 -Vincent
 
 
 Hope this helps,
 Marius
 
 
 Thanks
 -Vincent
 
 On Sep 8, 2011, at 10:52 AM, Vincent Massol wrote:
 
 Hi,
 
 On Sep 8, 2011, at 10:34 AM, Gerritjan Koekkoek wrote:
 
 What is considered the best way to use photos published on flickr (or any 
 media storing and sharing source) in the XWiki
 a) through the image button in the Rich Text editor, so it can be done 
 without coding, macro's
 b) a macro that you can call from the button strip in the rich text editor
 
 There used to be a Flickr integration on the XWiki extensions, but they 
 only work in syntax 1.0
 
 You can use the RSS macro as is shown here:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/RSS+Macro
 (check the example I added a flickr exampleà
 
 What would be great would be to contribute a flickr macro making it even 
 easier to use. It's really easy to write.
 
 Thanks
 -Vincent
 
 It would be great if you can also used secured photos on flickr through 
 safe links. User must login to XWiki, but can see foto's in flickr 
 although when going directly
 to flickr that user could not see the photo's
 
 Today we are uploading photo's two times; once to flickr and once to 
 XWiki, where the metadata in flickr is much richer; title, description, 
 geotag, dat/time
 We would like to replace that with a much more integrated approach; 
 upload once see everywhere.
 If other foto-sharing services are better integrated with XWiki platform, 
 we are willing to look at these (Picasa, Facebook, ...) and migrate our 
 photo's to these services
 
 Gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] using photo's from flickr (or Picasa, ...)

2011-09-08 Thread Gerritjan Koekkoek
What is considered the best way to use photos published on flickr (or any media 
storing and sharing source) in the XWiki
a) through the image button in the Rich Text editor, so it can be done without 
coding, macro's
b) a macro that you can call from the button strip in the rich text editor

There used to be a Flickr integration on the XWiki extensions, but they only 
work in syntax 1.0

It would be great if you can also used secured photos on flickr through safe 
links. User must login to XWiki, but can see foto's in flickr although when 
going directly
to flickr that user could not see the photo's

Today we are uploading photo's two times; once to flickr and once to XWiki, 
where the metadata in flickr is much richer; title, description, geotag, 
dat/time
We would like to replace that with a much more integrated approach; upload once 
see everywhere.
If other foto-sharing services are better integrated with XWiki platform, we 
are willing to look at these (Picasa, Facebook, ...) and migrate our photo's to 
these services

Gerritjan


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Copy Paste in editor

2011-09-05 Thread Gerritjan Koekkoek
Hi,

This feature we know, but since we deal with many people who collaborate we did 
not manage to tell them all, or they forget...
Is it possible to force them use this, disable PASTE in rich text area?

Gerritjan

Op 5 sep. 2011, om 08:33 heeft Marius Dumitru Florea het volgende geschreven:

 Hi Gerritjan,
 
 On Mon, Sep 5, 2011 at 8:48 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 Many of our users use copy and past from windows (or mac) to bring 
 textsnippets into the wiki
 In the display it looks fine, but when you edit the wiki, not the wysywig 
 editor, there is a lot of span, ((())) or sometimes even html tags.
 
 Is it possible to configure the editor (or something else) that it is only 
 possible to paste UTF ascii text without any styling (!) (so it must be 
 dummy-proof)
 Or better, to automatically convert styles that we allow; like bold, italic, 
 underline, upper, lower...
 
 There is a paste icon on the WYSIWYG editor tool bar (check the Import
 menu if you have an older version of XWiki Enterprise). You should use
 it instead of pasting directly into the rich text area. On the dialog
 that it opens there is a check box that you can use to filter the
 styles (only the basic styles like bold, italic, etc. are preserved).
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Copy Paste in editor

2011-09-04 Thread Gerritjan Koekkoek
Hi,

Many of our users use copy and past from windows (or mac) to bring textsnippets 
into the wiki
In the display it looks fine, but when you edit the wiki, not the wysywig 
editor, there is a lot of span, ((())) or sometimes even html tags.

Is it possible to configure the editor (or something else) that it is only 
possible to paste UTF ascii text without any styling (!) (so it must be 
dummy-proof)
Or better, to automatically convert styles that we allow; like bold, italic, 
underline, upper, lower...

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to model/build parent child relation

2011-08-15 Thread Gerritjan Koekkoek
Hi

I'm looking for best practises to develop a parent two child relationship in 
XWiki

I have the following class model

Association having one or more XWiki.Users with one-role per association
Association having one or more regions

XWiki.Users can be associated to one or more associations in one role per 
association

Principles (off course I can deviate from it when really smart to do);
Would like to use as much as possible out-of-the-box functionality of XWiki 2.7 
or higher
Would like to use LiveTable for grid-display of childs
Would like to use generated forms for editing
Lookup lists based on class-object

My main form would be a form based on association where you can navigate using 
first, previous, next and last
having a livetable with Roles/XWiki.User and a second livetable showing regions
Next to each livetable there should be Add,Modify and Delete function for child 
records (Roles and Regions)

Who knows/have examples with look-alike requirements?

Gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Search engines

2011-08-02 Thread Gerritjan Koekkoek
Hi,

We use the XWiki to publish about a rare decease, so we like to be high on 
search results of the search engines
Our Wiki is hosted at XWiki.com

What advise do you have to get our wiki higher on the search results? (Generic) 
- Multi language; are the pages recognized if they are translated
- URL translation, we have multiple url's pointing at the same wiki-instance 
(each country of our members has own url
example: www.cdlsworld.org and www.cdls-nl.org - it looks like only 
cdlsworld.org is on the search lists 

Gerritjan 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Include website as xwiki page

2011-07-22 Thread Gerritjan Koekkoek
A question to this; maybe a bit to HTML /CSS and not really something for XWiki?
If you include pages with iframe can you override CSS settings from within 
XWiki?

We have a website included and would like to avoid double LOGO's (one on XWiki 
and one on the included site)
So if I could add a CSS setting to my XWiki page that would actually override 
stuff within the iframe container that would be great

Gerritjan
Op 21 jul. 2011, om 13:25 heeft Vincenzo Brancato het volgende geschreven:

 -Ursprüngliche Nachricht-
 Von: guilla...@xwiki.com [mailto:users-boun...@xwiki.org] Im Auftrag von 
 Guillaume Lerouge
 Gesendet: Donnerstag, 21. Juli 2011 11:55
 An: XWiki Users
 Betreff: Re: [xwiki-users] Include website as xwiki page
 
 Hi Vince,
 
 have you tried an iframe embedded in the html macro ?
 
 {{html}}
 iframe src=my site /
 {{/html}}
 
 This worked fine for me. Thx very much!
 Here my code:
 {{html}}
 iframe src=http://www.google.com; width=100% height=100%/iframe
 {{/html}}
 
 Best regards
 Vince
 
 I think that would fit your needs.
 
 Guillaume
 
 On Thu, Jul 21, 2011 at 11:42, Vincenzo Brancato 
 v.branc...@procitec.dewrote:
 
 Hello,
 
 is there a possibility to include a website directly as a wiki page, 
 so that clicking on a link, that redirects you to an external (www) 
 page, loads the website directly as a frame in my xwiki instance. At 
 the moment I am only able to create links that load the external site in a 
 new tab or page.
 
 Best regards
 
 Vince
 
 Mit freundlichen Grüßen
 
 Vincenzo Brancato
 -Systems Integration-
 
 PROCITEC GmbH Rastatter Strasse 41
 D-75179 Pforzheim
 Fon: +49 (0) 7231 15561-0
 Fax: +49 (0) 7231 15561-11
 Mailto: v.branc...@procitec.de
 
 Mannheim HRB 504702
 Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk
 
 This e-mail may contain confidential and/or legally protected information.
 If you are not the intended recipient (or have received this e-mail in
 error) please notify the sender immediately and delete this e-mail. 
 Any unauthorized copying, disclosure or distribution of the material 
 in this e-mail is strictly forbidden.
 Thank you!
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Evaluate request parameters

2011-07-16 Thread Gerritjan Koekkoek
Hi,

I would like to conditional show pages based on request parameter
But i'm struggling with the fact if there is not a request parameter

{{velocity}}
#if($request.cntryCode != es)
 {{include document=Sandbox.TryCr/}}
#else
  {{include document=Sandbox.TryEs/}}
#end
{{/velocity}}

So if the request parameter cntryCode is not es (so anything else) show first 
page TryCr otherwise show page TryEs
But what if no parameter is givven; then I would like to show TryEs (assume 
parameter was es

Any suggestions

second question; how can i best use the parameter to avoid extensive coding;
Instead of
#if($request.cntryCode != cr)
 {{include document=Sandbox.Trycr/}}
#elseif($request.cntryCode != hn)
 {{include document=Sandbox.Tryhn/}}
#elseif($request.cntryCode != el)
 {{include document=Sandbox.Tryel/}}
#elseif($request.cntryCode != ng)
 {{include document=Sandbox.Tryng/}}
#else
  {{include document=Sandbox.TryEs/}}
#end

I would only think i need to concatenate the parameter to the end of the 
documentname Tryxx to get the good document

Hope somebody can help me

Gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki used in South Korea?

2011-07-01 Thread Gerritjan Koekkoek
Hi,

Is there somebody using the south-korean language for XWiki?
We need it for a international website, and we wonder how mature the xwiki 
internationalization is?

What do we need to consider in our configuration if we want to use languages 
like japanese, korean, arabic (If existing)
Database configuartion, etcetera...

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] export pages with object XWikiuser

2011-06-23 Thread Gerritjan Koekkoek
Hi

Is there a tool/script that allows for exporting only pages from space XWiki 
with object XWikiuser
I know the export tool can export pages by selecting all or checkmark 
individual pages, but we have  500 users, this becomes a drag
Nice to have if it could also take group-object and which user is in what group

So we have a whole identity and access export

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Class with hibernate query

2011-06-12 Thread Gerritjan Koekkoek
Hi

(XWiki 2.7.2)
I've defined a class with a property defined as DatabaseList 
It's a multi select
The Hibernate query is:

select ata.filename
 from XWikiAttachment as ata,
   XWikiDocument as doc 
 where doc.fullName ='CdLSAssociations.FlagAttachments'
   and doc.id = ata.docId
order by ata.filename

This works fine, when I create a new object of this class I can select multiple 
fileNames

My questions;
I would like to strip the filename extension from the ata.filename (ar.png = 
ar)
I was trying a substr(ata.filename,1,2) does not work
How do I do this?

Second, I wonder if it is possible to add a second collumn to the query that 
uses a translation table
like 
select ata.filename,
   $msg.get(ata.filename) as translatedName 
 from XWikiAttachment as ata,
   XWikiDocument as doc 
 where doc.fullName ='CdLSAssociations.FlagAttachments'
   and doc.id = ata.docId
order by translatedName

and use in the class property defenition the ID Field name and Value Field Name

Any help is highly appreciated

Gerritjan


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] RSS feeds

2011-06-10 Thread Gerritjan Koekkoek
Hi,

In our XWiki setup we are very much using RSS feeds generated by XWiki
When you capture such a feed in a news reader it shows :
Title
by Author
version version edited by editor in date time

Now is the Title informative for outsiders, the other (metadata) not...
The BLOG RSS feeds are much more informative

Where can I find information on how to setup the content presented in de RSS 
feed, Pictures would also be very nice
Which XWikI page is holding the code used for feeds about page-changes, which 
page is holding the code for the BLOG feeds?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Parent icon does not show

2011-05-23 Thread Gerritjan Koekkoek
Hi,

We've recentlly been upgraded to XWiki 2.7.1...
But I notice it does not quite look like the clean installed XWiki.
Even when I undo all the skin changes, and use the default xwiki skin the 
userinterface is somewhat a mixed bag

example (and seen as a problem by our users)
When you edit a document there is no icon to see the parent, let alone change 
the parent in a userfriendly way
Also the translations seem to be corrupted;
The edit menu shows a entry: core.menu.edit.visual

Can this be corrected?
And how?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Panels with xwiki syntax 2.0

2011-05-23 Thread Gerritjan Koekkoek
Hi,

When I set a panel to xwiki syntax 2.0 I am not able to have a number of links 
(in a navigation panel) seperated by new lines (or linefeeds)

the syntax I use is;
{{velocity filter=none}}
{{html clean=false wiki=true}}
#panelheader('PersonalServices')
 [[space.document]]
 [[space.document]]
 [[space.document]]

#panelfooter()
{{/html}}
{{/velocity}}

I've tried adding extra line feed.
Add \\ after each line

When I change panel to syntax 1.0 it works fine

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels with xwiki syntax 2.0

2011-05-23 Thread Gerritjan Koekkoek
Hi,

I know this will work, but in this case I try to avoud the list since it will 
ident the links to the right.
Visually I do not like that. (i could, ofcourse, use some css to correct the 
ident; but that makes it really overcomplicated 

Are you suggesting linefeeds will not work in a panel?
The syntax I used works in a 'normal' document with XWiki 2.0 syntax?

Gerritjan

Op 23 mei 2011, om 11:05 heeft Vincent Massol het volgende geschreven:

 Hi,
 
 On May 23, 2011, at 10:58 AM, Gerritjan Koekkoek wrote:
 
 Hi,
 
 When I set a panel to xwiki syntax 2.0 I am not able to have a number of 
 links (in a navigation panel) seperated by new lines (or linefeeds)
 
 the syntax I use is;
 {{velocity filter=none}}
 {{html clean=false wiki=true}}
 #panelheader('PersonalServices')
 [[space.document]]
 [[space.document]]
 [[space.document]]
 
 #panelfooter()
 {{/html}}
 {{/velocity}}
 
 You should use a list instead.
 
 * [[xxx...]]
 * [[xxx...]]
 * [[xxx...]]
 
 I've tried adding extra line feed.
 Add \\ after each line
 
 When I change panel to syntax 1.0 it works fine
 
 Gerritjan
 
 Thanks
 -Vincent
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels with xwiki syntax 2.0

2011-05-23 Thread Gerritjan Koekkoek
Hi,

Op 23 mei 2011, om 13:14 heeft Vincent Massol het volgende geschreven:

 
 On May 23, 2011, at 1:10 PM, Gerritjan Koekkoek wrote:
 
 Hi,
 
 I know this will work, but in this case I try to avoud the list since it 
 will ident the links to the right.
 Visually I do not like that. (i could, ofcourse, use some css to correct the 
 ident; but that makes it really overcomplicated 
 
 Are you suggesting linefeeds will not work in a panel?
 
 I don't know, you can check this easily with firebug for example.
This is what is generated with xwiki2.0 syntax (inside a panel)

div class=xwikipanelcontents
img width=100% alt=2.jpg 
src=http://cdls-nl.org/xwiki/bin/download/Photos/CdLSWorldbanners/2.jpg;
span class=wikilink
a href=/xwiki/bin/view/BlogNL/Cdls+PersonenPersoonlijke verhalen/a
/span
span class=wikilink
a href=/xwiki/bin/view/BlogNL/KontaktKom in kontakt/a
/span
span class=wikilink
a href=/xwiki/bin/view/BlogNL/InformatieNieuwe Informatie/a
/span
/div

I found the problem; the {{html clean=false wiki=true}} filters the 
linefeeds
by putting {{\html}} just before the XWiki 2.0 syntax of the links and 
repeating {{html clean=false wiki=true}} just before
#panelfooter() I was able to have the links in panel with XWiki 2.0 without the 
list trick;  

 
 The syntax I used works in a 'normal' document with XWiki 2.0 syntax?
 
 You could try it to verify by yourself ;)
Thx, I had done that, but realized it was without the {{velocity}} and {{html}} 
enclosing (pure xwiki syntax)

 Thanks
 -Vincent
 
 Gerritjan
 
 Op 23 mei 2011, om 11:05 heeft Vincent Massol het volgende geschreven:
 
 Hi,
 
 On May 23, 2011, at 10:58 AM, Gerritjan Koekkoek wrote:
 
 Hi,
 
 When I set a panel to xwiki syntax 2.0 I am not able to have a number of 
 links (in a navigation panel) seperated by new lines (or linefeeds)
 
 the syntax I use is;
 {{velocity filter=none}}
 {{html clean=false wiki=true}}
 #panelheader('PersonalServices')
 [[space.document]]
 [[space.document]]
 [[space.document]]
 
 #panelfooter()
 {{/html}}
 {{/velocity}}
 
 You should use a list instead.
 
 * [[xxx...]]
 * [[xxx...]]
 * [[xxx...]]
 
 I've tried adding extra line feed.
 Add \\ after each line
 
 When I change panel to syntax 1.0 it works fine
 
 Gerritjan
 
 Thanks
 -Vincent
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] User Interface

2011-05-12 Thread Gerritjan Koekkoek
Hi Andreas,

This was very helpful.
Indeed it requires including the document in each page. (except for pages that 
are object based; like Blog) then it only requires the Sheet/Template document
I wonder if there is not a Sheet/Template like document where you could include 
this

thx
Gerritjan

Op 10 mei 2011, om 22:29 heeft Andreas Hahn het volgende geschreven:

 Hi Gerrit,
 
 i can give you a partial anwer to your questions as I have also been 
 struggling to adapt look  feel of one of my sites.
 
 I tried as much as possible not to change the code in the VM templates 
 as this requires access to the server and makes it harder to document 
 all the places and survive a version upgrade.
 
 Basically I've created a page containing a velocity macro that contains 
 all the restrictions.
 This page needs to be included in all pages where the restrictions shall 
 apply.
 The restrictions are just css selectors to suppress visibility:
 
 {{velocity}}
 #if (!$hasEdit)
 {{html clean=false}}
 style
   #hierarchy {display:none;}
   #document-title {display:none;}
   #mainmenu .leftmenu {display: none;}
   #contentmenu {display: none;}
 /style
 {{/html}}
 #set ($docextras= [])
 #end
 {{/velocity}}
 
 No hierarchy, document-title, e.t.c. if you have no editing rights , 
 e.g. you are not logged in.
 However you need to include the page on all pages where the restricitons 
 shall apply:
 
 {{include document=Main.Restrictions/}}
 
 You might have a look at the results at http://shept.org
 
 enjoy
 
 Andreas
 
 
 Am 10.05.2011 13:27, schrieb Gerritjan Koekkoek:
 Hi,
 
 I'm looking into 'how to modify parts of the userinterface' of XWiki for a 
 specific site/application
 We would like to achieve this with minimal impact/effort and stick to the 
 colibri-skin as close as possible
 
 the following interface elements are of interest to us;
 The MENU-Bar's; both on the top of the screen as well as the one on top of a 
 document,
 The Box that contains Comments, Attachments, History and Information
 The top of the document that shows Document navigation hierarchy, the 
 document name or title the last modified and the summary of Comments, 
 Attachments
 
 With regard to menubar;
 We would like to be able to add, show or hide elements depending on the Role 
 and rights of the user AND the nature of the document
 Role; If user is a guest, author, moderator (typical roles you find in a 
 Content Management System
 Rights; Has Edit Rights
 Document nature; if document is only velocity (like livetables, scripted 
 page etc..) -  maybe this should be managed by rights?
 
 The Box that...
 Document nature; if a document is scripted we would like to hide the box, so 
 only real content pages should show that box
 
 The top of a document
 Document nature; If document nature is script; title, last modified by and 
 summary of box makes no sense
 
 My question is what would be the best place(s) to do these things? What is a 
 good source of information to learn about these elements and best practises 
 to learn to modify them
 (which API functions do work on these elements)
 The VM template menuview seems to contain the structure of the menubars; 
 is this the place to influence the behaviour
 It also contains #xwikitopmenuentrystart, #submenuitem etc.. where are these 
 things defined (and/or documented)?
 
 thx
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] textarea in firefox4

2011-04-29 Thread Gerritjan Koekkoek
Hi,

When I go to xwikipages containing inline form with textarea fields I get 
spinningwheels in each of these field, but no editor
Same with some javascript driven imageslideshows

Is this a firefox4 problem. (it used to work in firefox 3.x)
Same pages work fine in google chrome

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] sorting livetable

2011-04-29 Thread Gerritjan Koekkoek
Hi,

What is the best way to have a livetable sorted when opened (the default sort)
We would like to sort on a attribute that is not in the class/object the 
livetable is designed on.
We have a livetable on WXikiUsers that will show all users
It is now sorted on firstName
We prefer a default sort on date/time of creation (registration moment) of the 
users so that latest registrations are on top of the list (first page)
This collumn is not in the table and should not be in the table since it is not 
seen as relevant for the majority of records
After the default sort (when you land on the page) the user can re-sort based 
on the columns 

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] tooltip setting in class editor

2011-04-11 Thread Gerritjan Koekkoek
Hi

in version 2.7 there seems no longer a tooltip per attribute.
I can remember in older version (1.7?) there was such a setting per attribute.

What is the best practise to configure internationalized tooltips for forms 
created with the class editor in relation with the forms generator?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Livetable dynamic column

2011-04-03 Thread Gerritjan Koekkoek
Hi,

I have the following livetable...(see below) (working perfectly!)
My challenge is the following; the column countryCode is a string with a comma 
seperated list with country codes (1 to many)
I've graphical flags representing a country and several macro's to display the 
flags when you feed them a string with countrycodes;
 #ArrayOfCounties($vCountryCodeString $vCountryCodeList) = translates a 
comma seperated string into a array
 #ShowAllFlags($vCountryCodeList) = shows all the flags of countryCodes in 
the array

What is the best way to dynamically show (in the display of the livetable) the 
flags of the countries represented in the countryCode collumn?


#set($columns = [countryName  ,languageText  ,countryCode, _actions ])
#set($columnsProperties = {
  countryName : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  language : { type : text, link : view, size : 10, 
filterable : false, sortable: false },
  countryCode : { type : text, link : view, size : 10, 
filterable : false, sortable: false },
  languageText : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  _avatar : { type : none, link : none, html : true, 
sortable:false },
  _images : { type : none, link : none, html : true, 
sortable:false },
  _attachments : { type : none, link : none, html : true, 
sortable:false },
  _actions : { type : none, link : none, html : true, 
sortable:false },
  doc.name : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.space : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.fullName : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.author : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.date : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.creator : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.creationDate : { type : text, link : view, size : 10, 
filterable : true, sortable: true },
  doc.title : { type : text, link : view, size : 20, 
filterable : true, sortable: true },
  _actions : {actions: [edit,delete], displayName : Change}
})

#set($options = {
className:CdLSAssociations.CdLS_ATD_CountryClass,   
translationPrefix : cdls_atd_country.livetable.,  
tagCloud : true,  
rowCount: 20,  
maxPages : 10,
selectedColumn : doc.title,
defaultOrder : asc
})

#livetable(cdls_atd_country $columns $columnsProperties $options)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Video macro in 2.7.1

2011-03-19 Thread Gerritjan Koekkoek
We've upgraded our wiki from 2.1.1 to 2.7.1
The video macro stops working?

I've a url to a vimeo video

Workaround is a {{Html}} macro with the embedding code from vimeo
Any reason why video macro stops working?

gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Video macro in 2.7.1

2011-03-19 Thread Gerritjan Koekkoek
Hi Thomas

Yes, it's that macro!
Op 19 mrt 2011, om 11:33 heeft Thomas Mortagne het volgende geschreven:

 Hi gerritjan,
 
 Are you talking about
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro ?
 
 If that's the one I can see one error in it at least: the two probably
 supposedly standalone velocity macros are not separated by an empty
 line which make them inline and make the generated html macro not
 supporting non inline html content (I guess that's what object is, i
 don't know it very well).
 
But adding empty line between the two velocity blocks did not help.
I do not get error like not a inline macro!
It does not show anything?  (no error)

 If that works would be great if you could package it back and put it
 on http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro as
 version 1.2 for example.
 
 On Sat, Mar 19, 2011 at 09:09, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 We've upgraded our wiki from 2.1.1 to 2.7.1
 The video macro stops working?
 
 I've a url to a vimeo video
 
 Workaround is a {{Html}} macro with the embedding code from vimeo
 Any reason why video macro stops working?
 
 gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 -- 
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Objects of registered users stored in XWiki-space

2011-03-07 Thread Gerritjan Koekkoek
Hi,

By default users that register on a privat XWiki will be added as a document 
with a XWiki.XWikiUsers object in the XWiki space
Also they become automatic member of the group XWiki.XWikiAllGroup.

Is it possible to have all registered users (except the default system-usewrs 
like admin) in a seperate space?
If you do so, will this cause problems when upgrading xwiki, which would be my 
main driver to consider this.

If people think this could or should be a best practise...
My opinion is that the XWiki space becomes cluttered with users 
and also the requirement to have read access on many important system objects 
in XWiki space
can conflict with some groups security policy on users and peoples privacy

Would it be difficult to migrate users to a different space and keep all the 
group memberships and authorizations and passwords intact?

Gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Combining RSS feeds...

2011-03-04 Thread Gerritjan Koekkoek
Hi,

Within the CdLS community many related organizations publish their latest via 
RSS feeds.

What is the best practise if we would like to achieve the following
Register these feeds somewhere per language
Create a combination of feeds per language and show it on a visitor accessible 
page like 10 latest news items with a little icon per source of the item
off course clicking on the item would bring the visitor to a dynamic page 
showing the complete news item
In that page the visitor could navigate to the real page on the web

If I read the stuff on XWiki.org it looks like xwiki-watch is good for it;
any alternatives?
Is xwiki-watch multilanguage?
can you add xwiki-watch to a existing xwiki installation version 2.7 or higher

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can XWiki receive mail ?

2011-03-04 Thread Gerritjan Koekkoek
Although the quote of Jamie Zawinski suggest 'bloated' software i'm not sure if 
that is the right direction.
Would it not be much nicer if you just can integrate with a existing 
mail-service. Both as a client or as a workflow extension (like in Enterprise 
Content Management)
A few services like; show list of mails in a box, show details of mail, store a 
specific mail as a XWiki document with metadata about mail

Many mail servers already offer RSS feeds of mail boxes, many offer a webpage 
interface. 
A XWiki iFrame might be a very lightweight integration already.
If you could add a few parameters to the iframe you could supply some identity 
and access data to dynamically log-in the service

Gerritjan

Op 2 mrt 2011, om 14:02 heeft Kevin P. Foote het volgende geschreven:

 
 The Apache James Project[1] could fit such a request. I've seen it
 integrated into a few large scale frameworks before.
 
 [1] http://james.apache.org/
 
 --
 thanks
  kevin.foote
 
 On Wed, 2 Mar 2011, Paul Libbrecht wrote:
 
 - I would be very interested to such a feature but I note that it is not a 
 simple thing.
 - 
 - The biggest importance of receiving mails is to respond to some 
 notifications of actions that were originally created on the XWiki, to my 
 feelings. This requires, for example, that a table is properly made to 
 associate the responded mail and the action the notification is about. 
 - 
 - Another issue is to attribute the mail... sooo often are people using a 
 different email!
 - 
 - I note that such features as Drupal's MailHandler could be an example; 
 they are very fragile.
 - 
 - One of the worst examples is jira's mail receiving facilities: you can 
 respond to jira notifications if this is enabled. This fails really easily 
 and not well visibly when a slight change occurs!
 - 
 - XWiki with its flexible programming might make it possible to make it 
 better case by case. Let's hope.
 - 
 - paul
 - 
 - 
 - Le 2 mars 2011 à 06:43, Caleb James DeLisle a écrit :
 - 
 -  Every program attempts to expand until it can read mail. Those programs 
 which cannot so expand are
 -  replaced by ones which can. Jamie Zawinski
 -  
 -  XWiki doesn't have any means of receiving mail at the moment, the mail 
 sending facility is an
 -  extension which is bundled by default and I see no reason why an 
 extension for receiving mail could
 -  not be implemented, it just needs to be written.
 -  
 -  Caleb
 -  
 -  On 03/02/2011 12:32 AM, Gérard Turmel wrote:
 -  Hello
 -  
 -  I would like register somewhere  in XWiki, the  important mails of my 
 mailbox.
 -  For instance to save mail maybe with some attachements in a specific 
 Space.
 -  From my mail reader, just transfer the mail in xwiki mail adress and 
 automatically
 -  the mail would be save in a specific area.
 -  
 -  The idea under this function is for instance to manage a project and to 
 maintain
 -  a list of importants mail about the project (with attachements).
 -  
 -  Is there any solution to manage this functionality ?
 -  
 -  I am under XWiki Enterprise 3.0-milestone-2.34501
 -  
 -  Thanks a lot.
 -  
 -  
 -  
 -  
 -  
 -  
 **
 -  Ce message et toutes les pieces jointes sont confidentiels et etablis à 
 l'intention exclusive de ses destinataires.
 -  Toute utilisation ou diffusion non autorisee est interdite.
 -  Tout message electronique est susceptible d'alteration.
 -  SISTEER decline toute responsabilite au titre de ce message s'il a ete 
 altere, deforme ou falsifie.
 -  Si vous n'etes pas le destinataire de ce message, merci de le detruire 
 et d'informer l'expediteur.
 -  
 **
 -  This message and any attachments are confidential and intended solely 
 for the addressee(s).
 -  Any unauthorised use or dissemination is prohibited. 
 -  E-mails are susceptible to alteration.
 -  SISTEER shall not be liable for the message if altered, changed or 
 falsified.
 -  If you are not the intended addressee of this message, please cancel it 
 immediately and inform the sender.
 -  
 **
 -  
 -  ___
 -  users mailing list
 -  users@xwiki.org
 -  http://lists.xwiki.org/mailman/listinfo/users
 -  
 -  
 -  ___
 -  users mailing list
 -  users@xwiki.org
 -  http://lists.xwiki.org/mailman/listinfo/users
 - 
 - ___
 - users mailing list
 - users@xwiki.org
 - http://lists.xwiki.org/mailman/listinfo/users
 - ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Failed to execute the [html] macro

2010-12-22 Thread Gerritjan Koekkoek
Hi Thomas,

This is good help, thank you.
But still the fenomenon is the same; the first call to the macro fails with the 
same error message about inline

THe code looks like this;
{{include document=CdLSAssociations.Macros/}}
{{velocity wiki=true}}
#set($attachments = $doc.attachmentList)

#ShowFlag(za 30)

#foreach ($attach in $attachments)
  #set($tmpCountryCodeFileName = $attach.filename)
  #StripExtension($tmpCountryCodeFileName $FileNameWithoutExtension)
  #ShowFlag($FileNameWithoutExtension 30)
#end
{{/velocity}}

The macro that gives the error is ShowFlag

When I change the wiki=true for the macro to wiki=false the error dissappears
and the output is like (pretty much what I expect, there seems to be no inline 
problem???;
When i change false to true the first (south africa) will not display, but 
returns the error


{{html clean=true}}

div class=flags
img src=../../download/CdLSAssociations/FlagAttachments/za.png 
alt=SOUTH AFRICA 
title=SOUTH AFRICA
height=30 
width=30/
/div

{{/html}}


{{html clean=true}}

div class=flags
img src=../../download/CdLSAssociations/FlagAttachments/au.png 
alt=AUSTRALIA 
title=AUSTRALIA
height=30 
width=30/
/div

{{/html}}

{{html clean=true}}

div class=flags
img src=../../download/CdLSAssociations/FlagAttachments/ar.png 
alt=ARGENTINA 
title=ARGENTINA
height=30 
width=30/
/div

{{/html}} 

Op 21 dec 2010, om 16:23 heeft Thomas Mortagne het volgende geschreven:

 A good trick to see exactly what happen is tu put wiki=false in your
 velocity macro so that you see the exact result of velocity execution.
 
 On Mon, Dec 20, 2010 at 16:18, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Thx,
 
 The Inline versus Block makes sense.
 It fixes almost my problem
 
 The \div versus /div was a typo, not really creating the macro error. It 
 just displayed the \div statement
 
 So now the macro seems to work with one strange problem...
 I call the macro in a foreach statement.
 It fails the first loop; displaying the same error!
 The second and all the other loops (32) present the result i want
 
 So I called the macro before I enter the loop once, now the loop woks fine.
 But the macro error on the initial call keeps coming.
 Is it because these empty-line block seperator
 
 So now my macro looks like;
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
 
  {{html clean=true}}
  div class=flags
  img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  /div
  {{/html}}
 #end
 
 Note I only needed one preceeding empty-line.
 Marius suggested one-way-of-doing; what are other ways?
 
 Gerritjan
 Op 20 dec 2010, om 15:12 heeft Marius Dumitru Florea het volgende geschreven:
 
 Hi Gerritjan,
 
 On 12/20/2010 03:21 PM, Le Génie wrote:
 Hi,
 
 I don't know if it is the answer but in your copie of the code, you type
 \div  in place of/div.
 
 Regards,
 Maxime
 
 2010/12/20 Gerritjan Koekkoekgerritjankoekk...@gmail.com
 
 Hi
 I get this error (Failed to execute the [html] macro) if I change the
 following:
 
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
  {{html}}
  img
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  {{/html}}
 #end
 
 to this
 
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
 
  {{html clean=true}}
 
 clean=true by default so you don't need it.
 
  div class=flags
  img
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  \div
  {{/html}}
 #end
 
 
 Why does adding thediv class...  and/div  give this error?
 
 The HTML macro was generating in-line content (just an IMG tag) and now,
 due to your change, it generates block level content (DIV is a block
 level HTML element). You have to make sure the HTML macro is not called
 in an in-line context. One way to do this is to add an empty line before
 and after it (the empty line is a block separator in xwiki/2.0 syntax).
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 -- 
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] Failed to execute the [html] macro

2010-12-22 Thread Gerritjan Koekkoek
Hi Thomas,

This solved the problem!
But I do not really understand.
{{Include...}} and {{velocity}} should be seperated by a empty line.
But how did that create the error on the first call to macro only, all the 
following calls executed very well?

Gerritjan
Op 22 dec 2010, om 12:38 heeft Thomas Mortagne het volgende geschreven:

 On Wed, Dec 22, 2010 at 10:57, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi Thomas,
 
 This is good help, thank you.
 But still the fenomenon is the same; the first call to the macro fails with 
 the same error message about inline
 
 THe code looks like this;
 {{include document=CdLSAssociations.Macros/}}
 {{velocity wiki=true}}
 
 When you do that you create a paragraph containing include and
 velocity macro, you should separate them with an empty line.
 
 #set($attachments = $doc.attachmentList)
 
 #ShowFlag(za 30)
 
 #foreach ($attach in $attachments)
  #set($tmpCountryCodeFileName = $attach.filename)
  #StripExtension($tmpCountryCodeFileName $FileNameWithoutExtension)
  #ShowFlag($FileNameWithoutExtension 30)
 #end
 {{/velocity}}
 
 The macro that gives the error is ShowFlag
 
 When I change the wiki=true for the macro to wiki=false the error dissappears
 and the output is like (pretty much what I expect, there seems to be no 
 inline problem???;
 When i change false to true the first (south africa) will not display, but 
 returns the error
 
 
 {{html clean=true}}
 
 div class=flags
 img src=../../download/CdLSAssociations/FlagAttachments/za.png
 alt=SOUTH AFRICA
 title=SOUTH AFRICA
 height=30
 width=30/
 /div
 
 {{/html}}
 
 
 {{html clean=true}}
 
 div class=flags
 img src=../../download/CdLSAssociations/FlagAttachments/au.png
 alt=AUSTRALIA
 title=AUSTRALIA
 height=30
 width=30/
 /div
 
 {{/html}}
 
 {{html clean=true}}
 
 div class=flags
 img src=../../download/CdLSAssociations/FlagAttachments/ar.png
 alt=ARGENTINA
 title=ARGENTINA
 height=30
 width=30/
 /div
 
 {{/html}}
 
 Op 21 dec 2010, om 16:23 heeft Thomas Mortagne het volgende geschreven:
 
 A good trick to see exactly what happen is tu put wiki=false in your
 velocity macro so that you see the exact result of velocity execution.
 
 On Mon, Dec 20, 2010 at 16:18, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Thx,
 
 The Inline versus Block makes sense.
 It fixes almost my problem
 
 The \div versus /div was a typo, not really creating the macro error. It 
 just displayed the \div statement
 
 So now the macro seems to work with one strange problem...
 I call the macro in a foreach statement.
 It fails the first loop; displaying the same error!
 The second and all the other loops (32) present the result i want
 
 So I called the macro before I enter the loop once, now the loop woks fine.
 But the macro error on the initial call keeps coming.
 Is it because these empty-line block seperator
 
 So now my macro looks like;
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
 
  {{html clean=true}}
  div class=flags
  img 
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  /div
  {{/html}}
 #end
 
 Note I only needed one preceeding empty-line.
 Marius suggested one-way-of-doing; what are other ways?
 
 Gerritjan
 Op 20 dec 2010, om 15:12 heeft Marius Dumitru Florea het volgende 
 geschreven:
 
 Hi Gerritjan,
 
 On 12/20/2010 03:21 PM, Le Génie wrote:
 Hi,
 
 I don't know if it is the answer but in your copie of the code, you type
 \div  in place of/div.
 
 Regards,
 Maxime
 
 2010/12/20 Gerritjan Koekkoekgerritjankoekk...@gmail.com
 
 Hi
 I get this error (Failed to execute the [html] macro) if I change the
 following:
 
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
  {{html}}
  img
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  {{/html}}
 #end
 
 to this
 
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
 
  {{html clean=true}}
 
 clean=true by default so you don't need it.
 
  div class=flags
  img
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  \div
  {{/html}}
 #end
 
 
 Why does adding thediv class...  and/div  give this error?
 
 The HTML macro was generating in-line content (just an IMG tag) and now,
 due to your change, it generates block level content (DIV is a block
 level HTML element). You have to make sure the HTML macro is not called
 in an in-line context. One way to do this is to add an empty line before
 and after it (the empty line is a block separator in xwiki/2.0 syntax).
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo

[xwiki-users] Failed to execute the [html] macro

2010-12-20 Thread Gerritjan Koekkoek
Hi
I get this error (Failed to execute the [html] macro) if I change the following:

#macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
  {{html}}
  img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile 
   alt=$CountryCode 
   title=$CountryCode/
  {{/html}}
#end

to this

#macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
  {{html clean=true}}
  div class=flags
  img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile 
   alt=$CountryCode 
   title=$CountryCode/
  \div
  {{/html}}
#end

Why does adding the div class... and /div give this error?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Failed to execute the [html] macro

2010-12-20 Thread Gerritjan Koekkoek
Thx,

The Inline versus Block makes sense.
It fixes almost my problem

The \div versus /div was a typo, not really creating the macro error. It just 
displayed the \div statement

So now the macro seems to work with one strange problem...
I call the macro in a foreach statement.
It fails the first loop; displaying the same error!
The second and all the other loops (32) present the result i want

So I called the macro before I enter the loop once, now the loop woks fine.
But the macro error on the initial call keeps coming.
Is it because these empty-line block seperator

So now my macro looks like;
#macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)

  {{html clean=true}}
  div class=flags
  img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile 
   alt=$CountryCode 
   title=$CountryCode/
  /div
  {{/html}}
#end

Note I only needed one preceeding empty-line.
Marius suggested one-way-of-doing; what are other ways?

Gerritjan
Op 20 dec 2010, om 15:12 heeft Marius Dumitru Florea het volgende geschreven:

 Hi Gerritjan,
 
 On 12/20/2010 03:21 PM, Le Génie wrote:
 Hi,
 
 I don't know if it is the answer but in your copie of the code, you type
 \div  in place of/div.
 
 Regards,
 Maxime
 
 2010/12/20 Gerritjan Koekkoekgerritjankoekk...@gmail.com
 
 Hi
 I get this error (Failed to execute the [html] macro) if I change the
 following:
 
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
  {{html}}
  img
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  {{/html}}
 #end
 
 to this
 
 #macro(ShowFlag $CountryCode)
  #set($ImageExtension = '.png')
  #set($CountryCodeFile = $CountryCode + $ImageExtension)
 
  {{html clean=true}}
 
 clean=true by default so you don't need it.
 
  div class=flags
  img
 src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile
   alt=$CountryCode
   title=$CountryCode/
  \div
  {{/html}}
 #end
 
 
 Why does adding thediv class...  and/div  give this error?
 
 The HTML macro was generating in-line content (just an IMG tag) and now, 
 due to your change, it generates block level content (DIV is a block 
 level HTML element). You have to make sure the HTML macro is not called 
 in an in-line context. One way to do this is to add an empty line before 
 and after it (the empty line is a block separator in xwiki/2.0 syntax).
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Remove SPAM registration

2010-12-12 Thread Gerritjan Koekkoek
Hi Thx Marius,

The script works;
select distinct doc.fullName, 
prop.value 
  from XWikiDocument as doc, 
   BaseObject as obj, 
   StringProperty as prop,
   IntegerProperty as acti 
 where obj.className='XWiki.XWikiUsers' 
   and obj.name=doc.fullName 
   and prop.id.id=obj.id 
   and prop.name='first_name' 
   and prop.value is not empty 
   and prop.value in (
select prop.value 
  from StringProperty as prop2 
 where prop2.id.id=obj.id 
   and prop2.name='last_name' 
   and prop2.value=prop.value)
   and acti.id.id=obj.id 
   and acti.name='active'
   and acti.value  1
   ))

This script will get all documents with object of class XWiki.XWikiUsers wher
first-name = last name
and
Active is not true

Typically these tend to be SPAM users

A tip I got from Ludovic is to use it in a groovy script and put it in a 
scheduled task
A improvement would be to add doc.created date to the query so users get enough 
time to validate
the email sended.

A improvement might also be to refine the class with some constraints scripting 
so spamming behaviour 
in user registration will get error like; this type of user information is used 
by Spammers also; please select other ...

Anybody has done this ?

Gerritjan 
Op 11 dec 2010, om 12:19 heeft Marius Dumitru Florea het volgende geschreven:

Hi Gerritjan,

On 12/10/2010 10:23 PM, Gerritjan Koekkoek wrote:
 Hi,
 
 I'm looking to build a script that will delete all registered users from our 
 XWiki
 that did not complete the registration by replying to the email and look like 
 SPAM registration (firstname = lastname)
 The property of the object of XWiki.XWikiUsers -  active (of type boolean) 
 is false
 
 Now this is my first attempt to HQL and i need some help
 #foreach($result in $xwiki.search(
 select distinct doc.fullName,
 prop.value
   from XWikiDocument as doc,
BaseObject as obj,
StringProperty as prop,
BooleanProperty as acti
  where obj.className='XWiki.XWikiUsers'
and obj.name=doc.fullName
and prop.id.id=obj.id
and prop.name='first_name'
and prop.value is not empty
and prop.value in (
 select prop.value
   from StringProperty as prop2
  where prop2.id.id=obj.id
and prop2.name='last_name'
and prop2.value=prop.value)
and acti.id.id=obj.id
and acti.name='active'
and acti.value=false
))
   * $result.get(0) - $result.get(1)
 #end
 
 BooleanProperty is a wild guess of me looking at StringProperty as a example
 The query should look for users where first-name = last-name and active is 
 false
 If possible I would like to check if the document creation date/time is more 
 then 8 hours old

I guess you've seen 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Delete+Spam+Users 
but you missed 
http://extensions.xwiki.org/xwiki/bin/view/Extension/List+Inactive+Users 
. Shouldn't be hard to combine them.

Hope this helps,
Marius

 
 Gerritjan
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Remove a translation

2010-12-07 Thread Gerritjan Koekkoek
Hello Ralucca,

When I do what you suggest, i delete a translation without links to other 
wiki-pages
I get a warning that all links will be without parent. It looks like the delete 
action from the menubar is evaluating the links of the default page.

Is this by intention?
Can I trust that only the translation currently shown on my screen is deleted.

How would a script look to delete all translations of a document?
Very nice would be if the script would alsp be able to create a new translation 
based on the content of the default page
Even super cool would be a feature where you can ask google-translate (or any 
webservice) to create such a translation
as a headstart for the content managers

Gerritjan

Op 6 dec 2010, om 21:37 heeft Raluca Stavro het volgende geschreven:

Hello Ricardo,

The document translations are stored separately. For example, if you
export as XAR a document having multiple translations, you will notice
that the XML files are named like this: DocName.xml (default
language), DocName.en.xml, DocName.es.xml ... etc .
This is why, in order to delete a document translation, you have to go
on that document translated in the language that you want to remove
(for example '.../view/SpaceName/PageName?language=en') and delete the
document. The other translations (default and others) will not be
deleted.
You can check the comments of this Jira issue:
http://jira.xwiki.org/jira/browse/XWIKI-4932 .

Raluca.

On Mon, Dec 6, 2010 at 9:46 PM, Gerritjan Koekkoek
gerritjankoekk...@gmail.com wrote:
 Hi
 
 Our XWIKI is multi-language.
 When we translate a document into other languages how are these documents 
 stored?
 The issue I have is that when we update the original it is not easy to remove 
 the incorrect translations
 How do I remove only a translation without removing the default language (or 
 all the translations at once, without the original)?
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Remove a translation

2010-12-06 Thread Gerritjan Koekkoek
Hi

Our XWIKI is multi-language.
When we translate a document into other languages how are these documents 
stored?
The issue I have is that when we update the original it is not easy to remove 
the incorrect translations
How do I remove only a translation without removing the default language (or 
all the translations at once, without the original)?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error on MapMacro

2010-11-21 Thread Gerritjan Koekkoek
Hi,

I have to excuse myself on this error.
When you restart Tomcat it works, there seems to be a known issue on importing 
macro's.

THanks anyway

Op 16 nov 2010, om 23:10 heeft Ricardo Rodriguez [eBioTIC.] het volgende 
geschreven:

Hi!

Gerritjan Koekkoek wrote:
 Hello
 I've imported the MapMacro into my test XWIKI.
 If I go to the page imported XWiki/MapMacro the 2 examples show each 2 errors.
 1. Failed to execute the [code] macro 
 2. Not a inline macro
 
 In the details of error 1 I see a out-of-memory error, i'm running on Mac OS 
 X 10.6.5, Tomcat 6.0.29, mySQL 5.1.50 and XWiki 2.5.1.32531
 

Perhaps you having two different errors. Please, check:

http://jira.xwiki.org/jira/browse/XWIKI-4048

and

http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError


It is working for me in a XE 2.7-SNAPSHOT.32908 (Mac OS X 10.5.8, Tomcat 
6.0.18, MySQL 5.1.51)

with

export CATALINA_OPTS=-Xmx256m -Xms256m
export JAVA_OPTS=-Xmx256m -Xms256m

 Details on error 1;
 org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight 
 content at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:101)
  at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:47)
  at 
 org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:124)
  at 
 org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:55)
  at 
 org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:172)
  at 
 org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:117)
  at 
 org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85)
  at 
 com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7405)
  at 
 com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7355)
  at 
 com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:831) at 
 com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:782) at 
 com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:874) at 
 com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537) at 
 sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source) at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597) at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
  at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
  at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) 
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
  at 
 org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
  at 
 org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
  at org.apache.velocity.runtime.parser.node.ASTSetDirect
 ive.render(ASTSetDirective.java:142) at 
 org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
  at 
 org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
  at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
  at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
  at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
  at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
  at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1862) at 
 com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800) at 
 com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896) at 
 sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source) at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597) at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
  at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
  at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) 
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
   at 
 org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
  at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) 
 at 
 org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
  at 
 org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
  at 
 org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175

[xwiki-users] Error on MapMacro

2010-11-14 Thread Gerritjan Koekkoek
Hello
I've imported the MapMacro into my test XWIKI.
If I go to the page imported XWiki/MapMacro the 2 examples show each 2 errors.
1. Failed to execute the [code] macro 
2. Not a inline macro

In the details of error 1 I see a out-of-memory error, i'm running on Mac OS X 
10.6.5, Tomcat 6.0.29, mySQL 5.1.50 and XWiki 2.5.1.32531

Details on error 1;
org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content 
at 
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:101)
 at 
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:47)
 at 
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:124)
 at 
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:55)
 at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:172)
 at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:117)
 at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85)
 at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7405)
 at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7355)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:831) 
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:782) 
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:874) 
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537) at 
sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597) at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
 at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
 at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) 
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
 at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
 at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
 at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) 
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) 
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
 at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) 
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
 at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
 at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1862) at 
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800) at 
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896) at 
sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597) at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
 at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
 at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) 
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
  at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) 
at 
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
 at 
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
 at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) 
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) 
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) 
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
 at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) 
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
 at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
 at 

[xwiki-users] Strange remark 64 bits

2010-10-30 Thread Gerritjan Koekkoek
Hi,

We receive this remark from a visitor to www.cdlsworld.org (which runs on XWIKI 
2.1.1, Hosted by Xwiki.com)

Quote:
I also just discovered that the site CDLSWorld.org does not work with 64 bits 
browser (at least with Internet Explorer) but only in 32 bits. Now Windows 7 
and IE runs now in 64 bits. Now that more and more people are concerned, I 
suggest you inform the administrator.
Unquote.

We can not test it ourself, since we do not have Windows 64 bits?
Has anybody experienced this complaint, I can not imagine that a 64 bit client 
would matter?
If not, could it be a specific problem for our site?

Gerritjan

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Strange remark 64 bits

2010-10-30 Thread Gerritjan Koekkoek
We Will ask more details...

Verstuurd vanaf mijn iPod

Op 30 okt. 2010 om 23:03 heeft Sergiu Dumitriu ser...@xwiki.com het volgende 
geschreven:

 On 10/30/2010 08:59 PM, Gerritjan Koekkoek wrote:
 Hi,
 
 We receive this remark from a visitor to www.cdlsworld.org (which runs on 
 XWIKI 2.1.1, Hosted by Xwiki.com)
 
 Quote:
 I also just discovered that the site CDLSWorld.org does not work with 64 
 bits browser (at least with Internet Explorer) but only in 32 bits. Now 
 Windows 7 and IE runs now in 64 bits. Now that more and more people are 
 concerned, I suggest you inform the administrator.
 Unquote.
 
 We can not test it ourself, since we do not have Windows 64 bits?
 Has anybody experienced this complaint, I can not imagine that a 64 bit 
 client would matter?
 If not, could it be a specific problem for our site?
 
 If a browser is 32 or 64 bits should not matter at all. HTML is the 
 same, so is JavaScript. Can you ask for more details from that visitor? 
 What exactly doesn't work?
 
 By the way, looking at the site, there are failed to execute macro: 
 include errors on 
 http://www.cdlsworld.org/xwiki/bin/CdLSWorld/What+is+CdLS , probably 
 only when browsing as a guest.
You are right, only as guest, do you know hoe To solve?
 
 -- 
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import UserList stored in database to a XWikiUser document

2010-10-27 Thread Gerritjan Koekkoek
I have developped a script XSLT that reads from a XML file.
This script generates a groovy script that migrated our userdatabase into XWIKI
The resulting groovy looked like this (I assume velocity will look alike from a 
structure perspective);
vFullName = AnjevanderLugt
userdoc = xwiki.getDocument(XWiki.+vFullName)
userobj = userdoc.getObject(XWiki.XWikiUsers, true)
userobj.set(first_name , Anje)
userobj.set(last_name ,  van derLugt)
userdoc.save()
if (allGroup.getObject('XWiki.XWikiGroups', 'member', 
userdoc.fullName, false) == null) {
gObj = allGroup.newObject('XWiki.XWikiGroups')
gObj.set('member',userdoc.fullName)
allGroup.save()
}
if (vAuthors.getObject('XWiki.XWikiGroups', 'member', 
userdoc.fullName, false) == null) {
   gObjAuthors = vAuthors.newObject('XWiki.XWikiGroups')
   gObjAuthors.set('member',userdoc.fullName)
   vAuthors.save()
}

What it does;
It creates a document in XWIKI space
On that document it creates a object of class XWIKI.XWIKIUSERS
I also add the user to a few specific groups
Note: these users are not yet added to XWIKIALLGROUP, there is a nice script on 
xwiki.org that does this

Hope this helps.
Gerritjan

Op 26 okt 2010, om 12:11 heeft Bauyrzhan Matyganov het volgende geschreven:

Hello dear friends and community
I need your help with registering users.

The question is:


I have a database table wich contains a list of registered users to my
website.
Now, I want to import this list of users to my XWIKI application.
But i dont know how to import it.

I can select all user name and put them in an xwiki array or set.
and then, i can write a script that will use a for loop to create users
taking username from the array and putting a defualt pathword which users
can change later.

#set($userNames=
{A,B,C,...})
#set($fields = [])
##

#foreach($userName in $userNames)
## The first name field, no checking.
#set($field = $userNames)
#set($discard = $fields.add($field))
etc

#createUser($fields, $request, $response, $doAfterRegistration)

#end

will it work?

I am not proficient in XWiki and velocity programming, and I ask for your
help.
Any help will be appriciated.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] conditional redirect after login

2010-10-26 Thread Gerritjan Koekkoek
Hi,

I really appreciate your interest, this really helps me; Thanks 

You are very right, If users are redirected to their profile they are not 
forced to enter any extra data.
But we will put a text in the profile page that it would be very helpfull if 
they did;
If they do not, we will not add them to to more functional group, so, i hope, 
it is also in their interest
if they want more functionality. This is, by means a manual process, we do not 
want that the WIKI is crowded with visitors
that do not ADD to our community

One principle is that I try to do everything from within the WIKI and stay away 
from configuration files.
WE are hosting our wiki on a external system, so it is difficult to get access 
to filesystem anyway!
Second; we are fully happy with the default behaviour of to what groups a 
registered user is added after registration

Regarding the login.vm modification
(snippet from default login.vm in XWIKI 2.5
#if ($xcontext.user != 'XWiki.XWikiGuest')
  #if ($request.xredirect)
$response.sendRedirect($request.xredirect)
  #else
$response.sendRedirect($xwiki.getURL('Main.WebHome'))
  #end
#elseif($doc.fullName != 'XWiki.XWikiLogin')
  #set($qs = $!{request.queryString})
  #if(!$request.getParameter('xredirect'))
#set($qs = xredirect=$escapetool.url($doc.getURL('view'))${qs})
  #end
  $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs))
#else
###
### Login page
###
###
...
#end

I think I should inject the code after #if ($xcontext.user != 
'XWiki.XWikiGuest')
You think I could use #includeInContext('YourSpace.YourDocument') or would a 
macro make more sense?
I'm always trying to keep standard XWIKI code as supplied with the product as 
standard as possible, otherwise 
I'm facing more complex upgrade paths?

Gerritjan

Op 25 okt 2010, om 23:59 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
geschreven:



Gerritjan Koekkoek wrote:

 Hi,
 
 The condition is:
 After user has registered he/she only belongs to XWikiAllGroup (right?)
 

Right, by default. You should want to consider these two parameters in 
xwiki.cfg (as stated in its preamble, commented parameters show the 
default value)

#-# List of groups that a new user should be added to by default after 
registering. Comma-separated list of group document
#-# names.
# xwiki.users.initialGroups=XWiki.XWikiAllGroup

#-# Should all users be considered members of XWiki.XWikiAllGroup, even 
if they don't have an associated object in the
#-# group's document?
# xwiki.authentication.group.allgroupimplicit=0

 If this condition is true; we would like to ask the user to 'tell us more 
 about yourself' by re-directing to the profile
 

But redirecting to her/his profile doesn't enforce more information to 
be entered. Please, how are you planning to get that? Users can just 
arrive to their profiles and to enter nothing.

 Updating the userprofile with extra data; with this  data we can then add the 
 user to appropriate group(s)
 
 I understand : the $query will give all groups in the wiki except 
 XWikiAllGroup
 

Yes, the query retrieves all documents with an instance of class 
XWiki.XWikiGroups (obj.className='XWiki.XWikiGroups') but 
XWiki.XWikiGroupTemplate and XWiki.XWikiAllGroup

 In the foreach you add 1 to the counter for each group the user is extra in?
 

Yes

 So if the counter  0 the user belongs to extra group so should NOT be 
 redirected
 
OK! I got the condition the other way round!

 if the counter still == 0 then the redirect should happen? 
 

OK. I understand now.
 The login.vm seems indeed to be the place to be, 
 I prefer to copy the vm into my skin, so I will override the login.vm on the 
 disk
 
 
 
 Op 24 okt 2010, om 22:47 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
 geschreven:
 
 Hi,
 
 Gerritjan Koekkoek wrote:
 
 Hi,
 
 The script works fine;
 One modification required (#if($counter  0) == #if($counter == 0)
 
 
 
 I'm afraid I don't understand the condition yet! :-( Do you want that 
 any user belonging to any group but XWikiAllGroup is redirected to 
 his/her profile? Or should be only XWikAllGroup members whom must be 
 redirected to his/her profile page?
 
 Just trying to understand why do you need == instead o . Thanks!
 
 But this only works when user login is on homepage, in our use cases there 
 are also other pages where a guest can decide to login
 Is there a vm script that is always triggered when user does login?
 
 
 
 OK! I've not taken this into account! login.vm in your /templates folder 
 seems to be the right place to tweak.
 
 
 Gerritjan
 
 Op 24 okt 2010, om 01:52 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
 geschreven:
 
 Hi,
 
 Gerritjan Koekkoek wrote:
 
 
 Hi,
 
 We would like to, conditionally,  redirect users who log in to their 
 profile page. (in our case; XWiki.username)
 The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup.
 
 How can I do this most elegantly, modifying as little as possible of the 
 standard pages that come

Re: [xwiki-users] conditional redirect after login

2010-10-25 Thread Gerritjan Koekkoek
Hi,

The condition is:
After user has registered he/she only belongs to XWikiAllGroup (right?)
If this condition is true; we would like to ask the user to 'tell us more about 
yourself' by re-directing to the profile
Updating the userprofile with extra data; with this  data we can then add the 
user to appropriate group(s)

I understand : the $query will give all groups in the wiki except XWikiAllGroup
In the foreach you add 1 to the counter for each group the user is extra in?
So if the counter  0 the user belongs to extra group so should NOT be 
redirected
if the counter still == 0 then the redirect should happen? 

The login.vm seems indeed to be the place to be, 
I prefer to copy the vm into my skin, so I will override the login.vm on the 
disk



Op 24 okt 2010, om 22:47 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
geschreven:

Hi,

Gerritjan Koekkoek wrote:
 Hi,
 
 The script works fine;
 One modification required (#if($counter  0) == #if($counter == 0)
 

I'm afraid I don't understand the condition yet! :-( Do you want that 
any user belonging to any group but XWikiAllGroup is redirected to 
his/her profile? Or should be only XWikAllGroup members whom must be 
redirected to his/her profile page?

Just trying to understand why do you need == instead o . Thanks!
 But this only works when user login is on homepage, in our use cases there 
 are also other pages where a guest can decide to login
 Is there a vm script that is always triggered when user does login?
 
 
OK! I've not taken this into account! login.vm in your /templates folder 
seems to be the right place to tweak.

 Gerritjan
 
 Op 24 okt 2010, om 01:52 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
 geschreven:
 
 Hi,
 
 Gerritjan Koekkoek wrote:
 
 Hi,
 
 We would like to, conditionally,  redirect users who log in to their profile 
 page. (in our case; XWiki.username)
 The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup.
 
 How can I do this most elegantly, modifying as little as possible of the 
 standard pages that come with a distribution of XWIKI
 
 
 
 
 This is not elegant, but I think it works:
 
 #set($counter = 0)
 #set($user = $xwiki.getUser())
 #set($userContext = $context.user)
 
 #set($query = , BaseObject as obj, StringProperty as prop where 
 doc.fullName = obj.name and obj.className='XWiki.XWikiGroups' and 
 doc.fullName  'XWiki.XWikiGroupTemplate' and doc.fullName  
 'XWiki.XWikiAllGroup' order by doc.fullName asc)
 
 #set($results=$xwiki.searchDocuments($query))
 p/
 #foreach($item in $results)
 #if($user.isUserInGroup($item))
   #set($counter = $counter+1)
 #end
 #end
 
 #if($counter  0) 
 $response.sendRedirect($xwiki.getURL($userContext))
 #end
 
 You could copy and paste in your WebHome or create an ad hoc document 
 and use #includeInContext('YourSpace.YourDocument') to include it in 
 your WebHome.
 
 HTH,
 
 Ricardo
 
 
Greetings!

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] conditional redirect after login

2010-10-24 Thread Gerritjan Koekkoek
Hi,

The script works fine;
One modification required (#if($counter  0) == #if($counter == 0)

But this only works when user login is on homepage, in our use cases there are 
also other pages where a guest can decide to login
Is there a vm script that is always triggered when user does login?

Gerritjan

Op 24 okt 2010, om 01:52 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
geschreven:

Hi,

Gerritjan Koekkoek wrote:
 Hi,
 
 We would like to, conditionally,  redirect users who log in to their profile 
 page. (in our case; XWiki.username)
 The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup.
 
 How can I do this most elegantly, modifying as little as possible of the 
 standard pages that come with a distribution of XWIKI
 
 
 
This is not elegant, but I think it works:

#set($counter = 0)
#set($user = $xwiki.getUser())
#set($userContext = $context.user)

#set($query = , BaseObject as obj, StringProperty as prop where 
doc.fullName = obj.name and obj.className='XWiki.XWikiGroups' and 
doc.fullName  'XWiki.XWikiGroupTemplate' and doc.fullName  
'XWiki.XWikiAllGroup' order by doc.fullName asc)

#set($results=$xwiki.searchDocuments($query))
p/
#foreach($item in $results)
 #if($user.isUserInGroup($item))
   #set($counter = $counter+1)
 #end
#end

#if($counter  0) 
$response.sendRedirect($xwiki.getURL($userContext))
#end

You could copy and paste in your WebHome or create an ad hoc document 
and use #includeInContext('YourSpace.YourDocument') to include it in 
your WebHome.

HTH,

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Livetable does not show results

2010-10-23 Thread Gerritjan Koekkoek
Hi Thibault,

I copied the script in a page in the sandbox environment...
It should show a LiveTable on Panels.PanelClass
NO, the script works fine, but there are NO records shown

I also copied the script into the sandbox environment of our production 
instance:  www.cdlswold.org
It gives the same result as my test environment 2.5
production is on 2.1.1.25889

I guess it must be some kind of security?
Or could it be that not all objects originated from the same class defenition? 
(i.o: The class was modified after initial objects are created?)

Hope this helps tracking my problem down

Gerritjan


Op 22 okt 2010, om 16:15 heeft Thibaut Camberlin het volgende geschreven:

Hi Gerritjan,

I tested on Panels.PanelClass on a 2.5 M2 and it works fine.

Can you test this code (generated by the script)

{{velocity}}
#set($columns = [ doc.title  ,name  ,type  ,description  ,content  
,category ]) 
#set($columnsProperties = { name : { type : text, link : 
view, size : 10, filterable : true, sortable: true }, type : 
{ type : list, link : view, size : 10, filterable : true, 
sortable: true }, description : { type : text, link : view, 
size : 10, filterable : true, sortable: true }, content : { 
type : text, link : view, size : 10, filterable : true, sortable: 
true }, category : { type : list, link : view, size : 10, 
filterable : true, sortable: true },_avatar : { type : none, 
link : none, html : true, sortable:false },   _images : { 
type : none, link : none, html : true, sortable:false },   
_attachments : { type : none, link : none, html : true, 
sortable:false },   _actions : { type : none, link : none, 
html : true, sortable:false },doc.name : { type : text, 
link : view, size : 10, filterable : true, sortable: true },   
doc.space : { type : text, link : view, size : 10, filterable : 
true, sortable: true },   doc.fullName : { type : text, link : 
view, size : 10, filterable : true, sortable: true },   
doc.author : { type : text, link : view, size : 10, filterable 
: true, sortable: true },   doc.date : { type : text, link : 
view, size : 10, filterable : true, sortable: true },   
doc.creator : { type : text, link : view, size : 10, filterable 
: true, sortable: true },   doc.creationDate : { type : text, 
link : view, size : 10, filterable : true, sortable: true },   
doc.title : { type : text, link : view, size : 20, filterable : 
true, sortable: true } })

#set($options = { className:Panels.PanelClass, translationPrefix : 
panel.livetable., tagCloud : true, rowCount: 15, maxPages : 10, 
selectedColumn : doc.title, defaultOrder : asc })

#livetable(panel $columns $columnsProperties $options)
{{/velocity}}


You may have to hit ctrl + F5 to refresh the livetable.

--
Thibaut

On Wed, Oct 20, 2010 at 8:47 PM, Gerritjan Koekkoek 
gerritjankoekk...@gmail.com wrote:
Hi

I only have 2.5, deinstalled the old version
In my situation It looks like it is only working on classes where the classes 
sit in the XWiki space and the documents holding the objects are in the same 
space?
So it works with users, but not with panels.panelclass (or my own custom 
developed class). It does work brilliantly with tag-class Even get unexected 
goodies

I do not think it's the generator script, but something with livetable?

Gerritjan

Op 20 okt 2010, om 01:05 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
geschreven:

Hi,

Thibaut Camberlin wrote:
 Hi Gerritjan,

 Ludovic did that script not me I have to say!

 Did you test the same code on another version of XWiki ? If so what is the
 behaviour and the version ?
 Can you generate the livetable based on another class, say XWiki.XWikiUsers,
 what is the result ?



It is working fine in a XE/XEM 2.4.1 system. Thibaut, you can check it
here...

http://ebiotic.net/bin/ICT/LiveTableUsers

 On Tue, Oct 19, 2010 at 7:48 PM, Gerritjan Koekkoek 
 gerritjankoekk...@gmail.com wrote:


 Hi Thibaut,
 The script works like magic, very nice.
 Copy and Paste from the link created some formatting challenges, but after
 fixing the script generated actually created a live table;
 BUT...
 Still there are no records displayed? Like with the script I put in this
 question.
 The pages where the objects are stored are in a space that has access
 forbidden for unregistered users?
 Off course I run the generated script as a registered user (actually as a
 admin user
 I'm running this on xwiki 2.5

 Gerritjan

 Op 18 okt 2010, om 23:11 heeft Thibaut Camberlin het volgende geschreven:

 Hi Gerritjan,

 You can use the livetable generator code snippet
 http://code.xwiki.org/xwiki/bin/view/Snippets/LivetableGeneratorSnippet

 Hope this helps,
 --
 Thibaut


 On Sun, Oct 17, 2010 at 2:23 PM, Gerritjan Koekkoek 
 gerritjankoekk...@gmail.com wrote:


 Hi,

 i'm trying to use LiveTable to improve our user experience.
 This is my code:

 #set($collist = [name, email , subject, status, question,
 answer, generalize

Re: [xwiki-users] Livetable does not show results

2010-10-20 Thread Gerritjan Koekkoek
Hi

I only have 2.5, deinstalled the old version
In my situation It looks like it is only working on classes where the classes 
sit in the XWiki space and the documents holding the objects are in the same 
space?
So it works with users, but not with panels.panelclass (or my own custom 
developed class). It does work brilliantly with tag-class Even get unexected 
goodies

I do not think it's the generator script, but something with livetable?

Gerritjan

Op 20 okt 2010, om 01:05 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
geschreven:

Hi,

Thibaut Camberlin wrote:
 Hi Gerritjan,
 
 Ludovic did that script not me I have to say!
 
 Did you test the same code on another version of XWiki ? If so what is the
 behaviour and the version ?
 Can you generate the livetable based on another class, say XWiki.XWikiUsers,
 what is the result ?
 
 

It is working fine in a XE/XEM 2.4.1 system. Thibaut, you can check it 
here...

http://ebiotic.net/bin/ICT/LiveTableUsers

 On Tue, Oct 19, 2010 at 7:48 PM, Gerritjan Koekkoek 
 gerritjankoekk...@gmail.com wrote:
 
 
 Hi Thibaut,
 The script works like magic, very nice.
 Copy and Paste from the link created some formatting challenges, but after
 fixing the script generated actually created a live table;
 BUT...
 Still there are no records displayed? Like with the script I put in this
 question.
 The pages where the objects are stored are in a space that has access
 forbidden for unregistered users?
 Off course I run the generated script as a registered user (actually as a
 admin user
 I'm running this on xwiki 2.5
 
 Gerritjan
 
 Op 18 okt 2010, om 23:11 heeft Thibaut Camberlin het volgende geschreven:
 
 Hi Gerritjan,
 
 You can use the livetable generator code snippet
 http://code.xwiki.org/xwiki/bin/view/Snippets/LivetableGeneratorSnippet
 
 Hope this helps,
 --
 Thibaut
 
 
 On Sun, Oct 17, 2010 at 2:23 PM, Gerritjan Koekkoek 
 gerritjankoekk...@gmail.com wrote:
 
 
 Hi,
 
 i'm trying to use LiveTable to improve our user experience.
 This is my code:
 
 #set($collist = [name, email , subject, status, question,
 answer, generalize])
 
 #set($colprops = {
 name : { type : text, size : 20,  link : view},
 email :{ type : text, size : 20,  link : view},
 subject :{ type : text, size : 20, link : none},
 status :{ type : text, size : 20, link : none},
 question :{ type : text, size : 20, link : none, html :
 true, sortable:false },
 answer :{ type : text, size : 20, link : none, html :
 true, sortable:false },
 generalize : { type : list, class:
 CdlsatdCode.CdLS_ATD_UserQuestionsClass}
   })
 
 #set($options = {
 className:CdlsatdCode.CdLS_ATD_UserQuestionsClass,
 rowCount: 15 })
 p/
 #livetable(myLTQuestions $collist $colprops $options)
 
 It does show the table, but without any rows!
 The last column does recognize the List box as defined in the Class,
 because when I click it it shows the list of values defined in the class
 
 If I use a jsonQuery as in the example below, I get two records as
 
 defined
 
 in the filter.
 I tried to replace the above options value className with resultPage
 pointing to page containing the jsonQuery below... but with the same
 
 result,
 
 no rows returned
 
 ===
 {{include document=XWiki.LiveTableResultsMacros /}}
 {{velocity}}
 #gridresultwithfilter(CdlsatdCode.CdLS_ATD_UserQuestionsClass
 $request.collist.split(,)   and doc.creator='$context.user')
 {{/velocity}}
 
 the page I get shows me:
 {
 totalrows: 2,
 matchingtags: {
 },
 tags : [
 ],
 returnedrows:  0 ,
 offset: 1,
 reqNo: $request.reqNo,
 rows: [
 {
 doc_viewable : true,
 doc_name : GerritjanKoekkoek_doc261,
 doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc261,
 doc_space : CdlsatdPrivate,
 doc_url :
 
 
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
 
 doc_space_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/,
 doc_hasadmin  : true,
 doc_edit_url :
 
 
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
 
 doc_copy_url   :
 
 
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc261,
 
 doc_delete_url :
 
 
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
 
 doc_rename_url :
 
 
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?xpage=renamestep=1,
 
 doc_rights_url :
 
 
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?editor=rights,
 
 doc_author_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek,
 doc_date : 2009\/07\/18 16:44,
 doc_title : GerritjanKoekkoek_doc261,
 doc_author : Gerritjan Koekkoek,
 doc_creationDate : 2009\/07\/17 22:08,
 doc_creator : Gerritjan Koekkoek
 }
 , {
 doc_viewable : true,
 doc_name : GerritjanKoekkoek_doc264,
 doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc264,
 doc_space : CdlsatdPrivate,
 doc_url

Re: [xwiki-users] Livetable does not show results

2010-10-19 Thread Gerritjan Koekkoek
Hi Thibaut,
The script works like magic, very nice.
Copy and Paste from the link created some formatting challenges, but after 
fixing the script generated actually created a live table;
BUT...
Still there are no records displayed? Like with the script I put in this 
question.
The pages where the objects are stored are in a space that has access forbidden 
for unregistered users?
Off course I run the generated script as a registered user (actually as a admin 
user
I'm running this on xwiki 2.5

Gerritjan

Op 18 okt 2010, om 23:11 heeft Thibaut Camberlin het volgende geschreven:

Hi Gerritjan,

You can use the livetable generator code snippet
http://code.xwiki.org/xwiki/bin/view/Snippets/LivetableGeneratorSnippet

Hope this helps,
--
Thibaut


On Sun, Oct 17, 2010 at 2:23 PM, Gerritjan Koekkoek 
gerritjankoekk...@gmail.com wrote:

 Hi,
 
 i'm trying to use LiveTable to improve our user experience.
 This is my code:
 
 #set($collist = [name, email , subject, status, question,
 answer, generalize])
 
 #set($colprops = {
 name : { type : text, size : 20,  link : view},
 email :{ type : text, size : 20,  link : view},
 subject :{ type : text, size : 20, link : none},
 status :{ type : text, size : 20, link : none},
 question :{ type : text, size : 20, link : none, html :
 true, sortable:false },
 answer :{ type : text, size : 20, link : none, html :
 true, sortable:false },
 generalize : { type : list, class:
 CdlsatdCode.CdLS_ATD_UserQuestionsClass}
})
 
 #set($options = {
 className:CdlsatdCode.CdLS_ATD_UserQuestionsClass,
 rowCount: 15 })
 p/
 #livetable(myLTQuestions $collist $colprops $options)
 
 It does show the table, but without any rows!
 The last column does recognize the List box as defined in the Class,
 because when I click it it shows the list of values defined in the class
 
 If I use a jsonQuery as in the example below, I get two records as defined
 in the filter.
 I tried to replace the above options value className with resultPage
 pointing to page containing the jsonQuery below... but with the same result,
 no rows returned
 
 ===
 {{include document=XWiki.LiveTableResultsMacros /}}
 {{velocity}}
 #gridresultwithfilter(CdlsatdCode.CdLS_ATD_UserQuestionsClass
 $request.collist.split(,)   and doc.creator='$context.user')
 {{/velocity}}
 
 the page I get shows me:
 {
 totalrows: 2,
 matchingtags: {
 },
 tags : [
 ],
 returnedrows:  0 ,
 offset: 1,
 reqNo: $request.reqNo,
 rows: [
 {
 doc_viewable : true,
 doc_name : GerritjanKoekkoek_doc261,
 doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc261,
 doc_space : CdlsatdPrivate,
 doc_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
 doc_space_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/,
 doc_hasadmin  : true,
 doc_edit_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
 doc_copy_url   :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc261,
 doc_delete_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
 doc_rename_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?xpage=renamestep=1,
 doc_rights_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?editor=rights,
 doc_author_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek,
 doc_date : 2009\/07\/18 16:44,
 doc_title : GerritjanKoekkoek_doc261,
 doc_author : Gerritjan Koekkoek,
 doc_creationDate : 2009\/07\/17 22:08,
 doc_creator : Gerritjan Koekkoek
 }
 , {
 doc_viewable : true,
 doc_name : GerritjanKoekkoek_doc264,
 doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc264,
 doc_space : CdlsatdPrivate,
 doc_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264,
 doc_space_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/,
 doc_hasadmin  : true,
 doc_edit_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc264,
 doc_copy_url   :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc264,
 doc_delete_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc264,
 doc_rename_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?xpage=renamestep=1,
 doc_rights_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?editor=rights,
 doc_author_url :
 \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek,
 doc_date : 2009\/07\/20 14:22,
 doc_title : GerritjanKoekkoek_doc264,
 doc_author : Gerritjan Koekkoek,
 doc_creationDate : 2009\/07\/20 13:58,
 doc_creator : Gerritjan Koekkoek
 }
 ]}
 
 ___
 users mailing list
 users

Re: [xwiki-users] [Announcement] XWiki Enterprise 2.5 Release Candidate 1 Released

2010-10-17 Thread Gerritjan Koekkoek
Hi 
I grabbed and installed the RC1.
But I usually also import the newest XAR, so I tried to do it
When uploading and after that clicking on the XAR does not invoke the import 
details.
Only the header: package content appears on the right of the overview of 
imported XAR's

I was migrating from the latest stable; 2.4.2 and the database is a mySQL 
database and I run on Tomcat 6.0.29 on MAC OS X

Gerritjan

Op 16 okt 2010, om 00:27 heeft Sergiu Dumitriu het volgende geschreven:

The XWiki development team is pleased to announce the release of XWiki 
Enterprise 2.5 Release Candidate 1.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

Main changes since XWiki Enterprise 2.5 Milestone 2:

* New macros for the Space List and Tag Cloud
* Display user avatars in annotations
* A few improvements to the Extension Manager
* A few improvements to the User Directory
* WYSIWYG and Rendering improvements
* A few security and performance improvements

For more information see the Release notes at
http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXWikiEnterprise25RC1

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Livetable does not show results

2010-10-17 Thread Gerritjan Koekkoek
Hi,

i'm trying to use LiveTable to improve our user experience.
This is my code:

#set($collist = [name, email , subject, status, question, answer, 
generalize])

#set($colprops = {
 name : { type : text, size : 20,  link : view},
 email :{ type : text, size : 20,  link : view},
 subject :{ type : text, size : 20, link : none},
 status :{ type : text, size : 20, link : none},
 question :{ type : text, size : 20, link : none, html : true, 
sortable:false },
 answer :{ type : text, size : 20, link : none, html : true, 
sortable:false },
 generalize : { type : list, class: 
CdlsatdCode.CdLS_ATD_UserQuestionsClass}
 })

#set($options = { 
 className:CdlsatdCode.CdLS_ATD_UserQuestionsClass,
 rowCount: 15 })
p/
#livetable(myLTQuestions $collist $colprops $options)

It does show the table, but without any rows!
The last column does recognize the List box as defined in the Class, because 
when I click it it shows the list of values defined in the class

If I use a jsonQuery as in the example below, I get two records as defined in 
the filter.
I tried to replace the above options value className with resultPage pointing 
to page containing the jsonQuery below... but with the same result, no rows 
returned

===
{{include document=XWiki.LiveTableResultsMacros /}}
{{velocity}}
#gridresultwithfilter(CdlsatdCode.CdLS_ATD_UserQuestionsClass 
$request.collist.split(,)   and doc.creator='$context.user')
{{/velocity}}

the page I get shows me:
{
totalrows: 2,
matchingtags: {
},
tags : [
],
returnedrows:  0 ,
offset: 1,
reqNo: $request.reqNo,
rows: [
{
doc_viewable : true,
doc_name : GerritjanKoekkoek_doc261,
doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc261,
doc_space : CdlsatdPrivate,
doc_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
doc_space_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/,
doc_hasadmin  : true,
doc_edit_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
doc_copy_url   : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc261,
doc_delete_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc261,
doc_rename_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?xpage=renamestep=1,
doc_rights_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?editor=rights,
doc_author_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek,
doc_date : 2009\/07\/18 16:44,
doc_title : GerritjanKoekkoek_doc261,
doc_author : Gerritjan Koekkoek,
doc_creationDate : 2009\/07\/17 22:08,
doc_creator : Gerritjan Koekkoek
}
 , {
doc_viewable : true,
doc_name : GerritjanKoekkoek_doc264,
doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc264,
doc_space : CdlsatdPrivate,
doc_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264,
doc_space_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/,
doc_hasadmin  : true,
doc_edit_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc264,
doc_copy_url   : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc264,
doc_delete_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc264,
doc_rename_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?xpage=renamestep=1,
doc_rights_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?editor=rights,
doc_author_url : 
\/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek,
doc_date : 2009\/07\/20 14:22,
doc_title : GerritjanKoekkoek_doc264,
doc_author : Gerritjan Koekkoek,
doc_creationDate : 2009\/07\/20 13:58,
doc_creator : Gerritjan Koekkoek
}
]}

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Announcement] XWiki Enterprise 2.5 Release Candidate 1 Released

2010-10-17 Thread Gerritjan Koekkoek
I grabbed it, but noticed that when i'm on a page of version 1 syntax and 
containing velocity coding
that logging out will redirect to e not existing page
http://localhost:8080/xwiki-enterprise-web-2.5http://localhost:8080/xwiki-enterprise-web-2.5/bin/login/XWiki/XWikiLogin;jsessionid=D4A66E70138252BF6C8238EC18D01D76?srid=uUwDp0hsxredirect=%2Fxwiki%252Denterprise%252Dweb%252D2.5%2Fbin%2Fview%2FSandbox%2FUserQuestionList%3Fsrid%3DuUwDp0hs

Gerritjan


Op 16 okt 2010, om 00:27 heeft Sergiu Dumitriu het volgende geschreven:

The XWiki development team is pleased to announce the release of XWiki 
Enterprise 2.5 Release Candidate 1.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

Main changes since XWiki Enterprise 2.5 Milestone 2:

* New macros for the Space List and Tag Cloud
* Display user avatars in annotations
* A few improvements to the Extension Manager
* A few improvements to the User Directory
* WYSIWYG and Rendering improvements
* A few security and performance improvements

For more information see the Release notes at
http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXWikiEnterprise25RC1

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] conditional redirect after login

2010-10-07 Thread Gerritjan Koekkoek
Hi,

We would like to, conditionally,  redirect users who log in to their profile 
page. (in our case; XWiki.username)
The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup.

How can I do this most elegantly, modifying as little as possible of the 
standard pages that come with a distribution of XWIKI

Gerritjan Koekkoek

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Localize watchlists

2010-10-05 Thread Gerritjan Koekkoek
Hi,
Op 4 okt 2010, om 17:25 heeft [Ricardo Rodriguez] eBioTIC. het volgende 
geschreven:

Hi!

Anca Luca wrote:
 Le 4 oct. 2010 à 07:43, [Ricardo Rodriguez] eBioTIC. 
 ricardo.rodrig...@ebiotic.ne 
 t a écrit :
 
 
 Hi!
 
 Gerritjan Koekkoek wrote:
 
 Hi,
 
 I'm getting complaints of users that they can not read what is in  
 their watchlist notifications.
 We have a multi language setup; in this case my visitors would like  
 to get notified in their local language.
 So if a user is registered with default language french will also  
 get the watchlist notifications in french?
 
 
 I'm not an expert on XWatch but have you check the availability of the
 language you are looking (http://l10n.xwiki.org/xwiki/bin/view/ 
 XWatch/)
 
 
 That translate application is for xwiki watch, the feed reader 
 (http://watch.xwiki.org 
 ), which has nothing to do with watchlist. The confusion is quite  
 frequent actually.
 
Indeed the problem is with standard email notifications in standard XWIKI 
Enterprise
 

It's clear once again that I'm not an expert ... :-(
 and how default language setting (edit an user in object mode, go to
 XWiki.XWikiUser class object) affects to the content that each user
 receives?

Thus, only default user language settings and/or general default 
language seem could affect the language used for notification. I think I 
having some issues here as well... for instance, in Watchlist user 
preferences, do you see the settings for your notifier? I can edit this 
option, but I don't see the choose option. Another thing is that in our 
XWiki Enterprise 2.4.30451 it seems that the Last modifications feed for 
your watchlist feed is not valid. Please, what release are you using? 

We are using: XWiki Enterprise 2.1.1.25889
(Plan to upgrade soon)
We have internationalisation page, but have no clue what variables the 
notification is using? 

Thanks!0
Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Localize watchlists

2010-10-04 Thread Gerritjan Koekkoek
Hi,

I'm getting complaints of users that they can not read what is in their 
watchlist notifications.
We have a multi language setup; in this case my visitors would like to get 
notified in their local language.
So if a user is registered with default language french will also get the 
watchlist notifications in french?

Gerritjan
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] limit of around 10Mb for attached files

2010-09-26 Thread Gerritjan Koekkoek
I'm trying to Import a backup of around 45 MB in a test environment of Xwiki
It fails after clicking UPLOAD;I'm getting a message:
XWiki has a default limit of around 10Mb for attached files. This limit can be 
changed using the upload_maxsize parameter. Check the FAQ for more information.

I'm running XWiki Enterprise 2.4.2.31315
on mySQL 5.1
I've changed my.cnf of mySQL to increase max_allowed_packet
# The MySQL server
[mysqld]
port= 3306
socket  = /tmp/mysql.sock
skip-locking
key_buffer_size = 16M
max_allowed_packet = 64M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

This shows in when i run mysqld --verbose --help as:
max_allowed_packet67108864

I've also used the class editor in xwiki to edit the parameter of the 
preferences
Name: upload_maxsize (default)
Pretty Name: Maximum Upload Size (default)
Validation Regular Expression: (default)
Validation Message: (default)
Number Type: long (default)
Size of the corresponding form element in edit mode :  2 (changed)

any suggestions?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] limit of around 10Mb for attached files

2010-09-26 Thread Gerritjan Koekkoek
Thx for the help, but I already did that, do you think 2 is big enough?
Op 26 sep 2010, om 18:06 heeft Caleb James DeLisle het volgende geschreven:

Try going to yourwiki.com/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
and then expand the Objects of type XWiki.XWikiPreferences (1) section, then
find where it says: Maximum Upload Size
That number is a number of bytes, I usually just make it really huge.

Caleb

Gerritjan Koekkoek wrote:
 I'm trying to Import a backup of around 45 MB in a test environment of Xwiki
 It fails after clicking UPLOAD;I'm getting a message:
 XWiki has a default limit of around 10Mb for attached files. This limit can 
 be changed using the upload_maxsize parameter. Check the FAQ for more 
 information.
 
 I'm running XWiki Enterprise 2.4.2.31315
 on mySQL 5.1
 I've changed my.cnf of mySQL to increase max_allowed_packet
 # The MySQL server
 [mysqld]
 port  = 3306
 socket= /tmp/mysql.sock
 skip-locking
 key_buffer_size = 16M
 max_allowed_packet = 64M
 table_open_cache = 64
 sort_buffer_size = 512K
 net_buffer_length = 8K
 read_buffer_size = 256K
 read_rnd_buffer_size = 512K
 myisam_sort_buffer_size = 8M
 
 This shows in when i run mysqld --verbose --help as:
 max_allowed_packet67108864
 
 I've also used the class editor in xwiki to edit the parameter of the 
 preferences
 Name: upload_maxsize (default)
 Pretty Name: Maximum Upload Size (default)
 Validation Regular Expression: (default)
 Validation Message: (default)
 Number Type: long (default)
 Size of the corresponding form element in edit mode :  2 (changed)
 
 any suggestions?
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] limit of around 10Mb for attached files

2010-09-26 Thread Gerritjan Koekkoek
What is -Xmx? something of XWiki, Tomcat or mySql?

Op 26 sep 2010, om 21:24 heeft Caleb James DeLisle het volgende geschreven:

200 megabytes (2) should be enough. There is another problem with 
memory exhaustion but
usually you don't get the XWiki has a default limit of around 10Mb message 
when that happens.
Just out of curiosity, what is your -Xmx set to?

Caleb


Gerritjan Koekkoek wrote:
 Thx for the help, but I already did that, do you think 2 is big 
 enough?
 Op 26 sep 2010, om 18:06 heeft Caleb James DeLisle het volgende geschreven:
 
 Try going to yourwiki.com/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
 and then expand the Objects of type XWiki.XWikiPreferences (1) section, then
 find where it says: Maximum Upload Size
 That number is a number of bytes, I usually just make it really huge.
 
 Caleb
 
 Gerritjan Koekkoek wrote:
 I'm trying to Import a backup of around 45 MB in a test environment of Xwiki
 It fails after clicking UPLOAD;I'm getting a message:
 XWiki has a default limit of around 10Mb for attached files. This limit can 
 be changed using the upload_maxsize parameter. Check the FAQ for more 
 information.
 
 I'm running XWiki Enterprise 2.4.2.31315
 on mySQL 5.1
 I've changed my.cnf of mySQL to increase max_allowed_packet
 # The MySQL server
 [mysqld]
 port = 3306
 socket   = /tmp/mysql.sock
 skip-locking
 key_buffer_size = 16M
 max_allowed_packet = 64M
 table_open_cache = 64
 sort_buffer_size = 512K
 net_buffer_length = 8K
 read_buffer_size = 256K
 read_rnd_buffer_size = 512K
 myisam_sort_buffer_size = 8M
 
 This shows in when i run mysqld --verbose --help as:
 max_allowed_packet67108864
 
 I've also used the class editor in xwiki to edit the parameter of the 
 preferences
 Name: upload_maxsize (default)
 Pretty Name: Maximum Upload Size (default)
 Validation Regular Expression: (default)
 Validation Message: (default)
 Number Type: long (default)
 Size of the corresponding form element in edit mode :  2 (changed)
 
 any suggestions?
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Failed to execute macro: include

2010-07-27 Thread Gerritjan Koekkoek
Hi,

Is there a smart way to find the error causing a Failed to execute macro: 
include
When I click details of the error it displays a whole page of errorlines ending 
with
... 91 more
I have the feeling important information is missing.

for experts; the error codes i see;
org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for 
Document [CategorySheet]
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:143)
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:49)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5696)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:569)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:583)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor265.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at 
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at 

Re: [xwiki-users] CSS Styling in panel

2010-06-20 Thread Gerritjan Koekkoek
Hi 
to bring it together...
I have one panel document called: CdLSATDTopics
It contains two objects;
-PanelClass: called CdLSATDTopics (like document)
-StyleSheetExtension: called PopupMenu

If I check the Html page it does not yet contain a link to the stylesheet 
extension
I used: $xwiki.ssx.use('PopupMenu') = should this name be extended with 
space.document.object?

In the stylesheet extension I should refer to classes or ID's within the class 
as described by Raluca?


Op 20 jun 2010, om 12:57 heeft Raluca Stavro het volgende geschreven:

Hello,

On Sun, Jun 20, 2010 at 12:41 PM, Gerritjan Koekkoek
gerritjankoekk...@gmail.com wrote:
 Hi,
 Thxs, but is it also possible to use the stylesheet extension object to
 add CSS specifically to the panel, since it would keep my generic CSS more 
 clean
 
 I was thinking of adding a stylesheet extension object to the document that 
 holds the panel object, but
 it does not seem to to connect?
 I used;
 - name PopupMenu
 - Code: (the code from eric meyer)
 - Use this extension: on demand
 - Parse content: Yes

You don't need 'Yes' value here unless you insert Velocity code inside
the Stylesheet Extension.

 - Cashing policy: long
 
 My panel object is called : CdLSATDTopics, so I assume the CSS classname = 
 CdLSATDTopics

The class name is generated by using the Panel DOCUMENT NAME. So in
your case, if the document that stores you're Panel object is named
'PopupMenu', then this should be the class name of your panel.

Note: the full class name of a panel is formed out of 3 elements:
* 'panel'
* 'expanded' or 'collapsed'
* 'panel_document_name'

Example: 'panel expanded PopupMenu', where Panels.PopupMenu is the
full name of the panel document.

Raluca.



 
 right?
 
 
 Op 20 jun 2010, om 11:21 heeft Sergiu Dumitriu het volgende geschreven:
 
 On 06/20/2010 11:08 AM, Gerritjan Koekkoek wrote:
 Hi,
 
 I would like to apply some CSS styling to a panel only.
 
 I have some velocity code creating aul  list
 I would like to use the CSS as documented on
 http://meyerweb.com/eric/css/edge/menus/demo.html
 
 but it should only apply to the panel,
 I use the same velocity code also on a document, and there the styling 
 should not be applied
 
 Use proper CSS selectors. Each panel has a classname derived from the
 panel's name, which you can use to target just the panel. For example,
 My Recent Modifications has the classname MyRecentModifications. Use
 Firebug, or view page source, to see what classname your panel gets.
 Then, use this classname as a prefix in your selectors.
 
 Another option is to just use .panels as a prefix, which matches only
 the panels columns,
 
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


<    1   2   3   >