Re: [xwiki-users] Multilingual problem in 1.8.1

2009-04-14 Thread Vincent Massol

On Apr 13, 2009, at 10:35 PM, Sergiu Dumitriu wrote:

 jerem wrote:
 Hi,
 I just installed XWiki 1.8.1 in ubuntu 8.10 / tomcat 6 / MySQL 5.0.  
 My ubuntu is in english language (administration / language  
 support / default language), so is my LANG environment variable.
 In my prefs by default I have language en, multilingual no. If  
 I select yes for multilingual, page content is in english but all  
 menus switch to french. Adding only en to the list of languages  
 doesn't change this.
 How can I have my wiki fully english by default with multilingual  
 set and default language en ?

 The wiki uses by default the language specified by the browser in a  
 HTTP
 header. Normally, you should be able to switch to English by following
 the language link from the right side of the header (there should a  
 link
 called En), or by appending ?language=en to the URL. You can also  
 force
 the wiki to display only in one of the languages specified in the
 settings, by changing xwiki/WEB-INF/xwiki.cfg. Search the
 Internationalization section, and you should see two commented
 settings: xwiki.language.preferDefault, and
 xwiki.language.forceSupported. Uncomment them and set them to 1.

See
* http://platform.xwiki.org/xwiki/bin/view/Features/I18N
* 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HLanguagesettings

Thanks
-Vincent

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


Re: [xwiki-users] Private user authentication

2009-04-14 Thread Vincent Massol
Hi Chris,

On Apr 14, 2009, at 4:26 AM, Chris Ellis wrote:

 I've freshly installed XE 1.8.1 and am pleased to see that the email
 registration process has been fixed.

 I want to use XE for an admin wiki in a school environment and do  
 not wish
 to have students being able to register.

 Ideally, I would like to have users self-register and then have to  
 wait for
 admin approval to activate account.

 Is there anyway to do this with XE? Otherwise, what is the best  
 strategy for
 restricting user registration?

The new Getting Started guide might help you:
http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/

And more specifically:
http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/SettingUserRights

Also this information is supposed to be here too but it's not complete:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HWikiAccessConfiguration

It's not linked from anywhere yet but Guillaume who's worked on it  
should do that real soon.

Thanks
-Vincent

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


Re: [xwiki-users] Private user authentication

2009-04-14 Thread Vincent Massol

On Apr 14, 2009, at 9:12 AM, Vincent Massol wrote:

 Hi Chris,

 On Apr 14, 2009, at 4:26 AM, Chris Ellis wrote:

 I've freshly installed XE 1.8.1 and am pleased to see that the email
 registration process has been fixed.

 I want to use XE for an admin wiki in a school environment and do  
 not wish
 to have students being able to register.

 Ideally, I would like to have users self-register and then have to  
 wait for
 admin approval to activate account.

 Is there anyway to do this with XE? Otherwise, what is the best  
 strategy for
 restricting user registration?

 The new Getting Started guide might help you:
 http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/

 And more specifically:
 http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/SettingUserRights

 Also this information is supposed to be here too but it's not  
 complete:
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HWikiAccessConfiguration

Note that this section is being refactored into
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access+Rights but  
this new page
is currently not correctly explained and it's hard to understand  
anything. Guillaume is working on it.

Thanks
-Vincent



 It's not linked from anywhere yet but Guillaume who's worked on it  
 should do that real soon.

 Thanks
 -Vincent


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


Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor

2009-04-14 Thread Vincent Massol
Hi Andreas,

On Apr 14, 2009, at 1:04 AM, Andreas Schaefer wrote:

 Thanks. Finally I saw it (stupid me) but now the info/warning/error
 macros are failing on my. I use XWiki Enterprise 1.8.17790 and it just
 ignores the macro using:

 #warning(This is my warning to you)

The velocity macros that were working for XWiki Syntax 1.0 still work  
for XWiki syntax 2.0 (provided you use them inside the {{velocity}}  
macro). However most of them output HTML and in XWiki Syntax 2.0 you  
need to surround any HTML block by the {{html}} macro so basically  
you'll need to write:

{{html}}{{velocity}}#warning(This is my warning to you){{/velocity}} 
{{/html}}

Note that we're working on automatically adding the html macro  
wrapping for XE 1.8.2 so you only need to do that temporarily.

Thanks
-Vincent

 Is there a way to fix that because I used that a lot so far.

 On another note I could not find the Wiki Syntax help on my
 installation. The link on Wiki Editor 'Help on XWiki Syntax' is
 displaying the old 1.0 syntax. How to I change that to 2.0. I tried to
 find a panel that would contain and I found one but could not figure
 out how to change it.

 Thanks

 Andreas Schaefer
 CEO of Madplanet.com Inc.
 andreas.schae...@madplanet.com
 schaef...@me.com

 On Apr 13, 2009, at 12:02 PM, Vincent Massol wrote:

 Hi Andreas,

 On Apr 13, 2009, at 7:40 PM, Andreas Schaefer wrote:


 So, how would I upgrade a page to version 2.0 or do I need to  
 rewrite
 the entire page?

 Just change the page's syntax to XWiki Syntax 2.0. You'll get a  
 dialog
 box asking you whether to convert to 2.0 syntax.

 -Vincent

 Sorry to ask but I could not find the answer.

 Thanks

 Andreas Schaefer
 CEO of Madplanet.com Inc.
 andreas.schae...@madplanet.com
 schaef...@me.com

 On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble)
 wrote:

 Hi,

 I can see you're using the XWiki 1.0 syntax and thus the old  
 WYSIWYG
 editor which is no longer maintained. What you describe could be a
 bug
 in the old editor. I tried your example in the new editor using the
 {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0
 syntax and try the new WYSIWYG editor.

 Thanks,
 Marius

 Andreas Schaefer wrote:

 Hi

 I normally edit my pages in the Wiki editor but to add links or
 images I use the WYSIWYG editor. Now having a code box like this:

 {code}
 - (BOOL) textFieldShouldReturn: (UITextField *) textField {
 [self greetMe:nil];
 return YES;
 }

 {code}

 will turn into this:

 {code}
 - (BOOL) textFieldShouldReturn: (UITextField *) textField {
 [self greetMe:nil];
 return YES;
 }

 {code}

 Any ideas why and how to workaround this problem.

 Cheers

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


[xwiki-users] Change database name of virtual wiki

2009-04-14 Thread hel-o

Hi,

is there a way to change the database name of a virtual wiki?

Thanks
hel.

-
hel.
h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/Change-database-name-of-virtual-wiki-tp2631685p2631685.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


Re: [xwiki-users] Multilingual problem in 1.8.1

2009-04-14 Thread jerem

Thanks for your answers, ... :)
... and sorry for not having searched enough before posting ... :(
-- 
View this message in context: 
http://n2.nabble.com/Multilingual-problem-in-1.8.1-tp2627477p2631854.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


[xwiki-users] How to make editor panels go left when in left column layout?

2009-04-14 Thread Jonas Almfeldt
Hi,

I have changed the layout from the default right column layout to left
column instead, and moved the panels from left to right.

It works fine until I choose to edit a page.
When in edit mode the left column dissapears and the right column suddenly
appears containing the following three panels:
* Choose Editor
* Document Information
* Help on the Xwiki syntax

How can I move these editor panels to the left?

One additional question:
Is is possible to edit .vm templates directly in the web browser?

Kind regards,
Jonas
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] export includechildpages

2009-04-14 Thread hel-o

Hi,

the export including child pages works fine but when you define a level that 
does not exist you get an exception:

Detailierte Information:

Error number 11015 in 11: Exception while exporting
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while 
exporting
Wrapped Exception: null
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:64)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:

java.lang.NullPointerException
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:253)
at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:198)
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:61)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 

[xwiki-users] [myxwiki] XWiki Enterprise 1.8.1 Upgrade

2009-04-14 Thread Jean-Vincent Drean
Hello,

myxwiki.org has been upgraded to XE 1.8.1, if you own a wiki hosted
there you should have a look at :
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise181

We also strongly recommend an upgrade to the latest wiki version. To
upgrade you must download XE 1.8.1 XWiki XAR from :
http://www.xwiki.org/xwiki/bin/view/Main/Download
And follow the upgrade guide available at :
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments

To be notified of the myxwiki.org server upgrade you can follow
myxwiki on twitter:
http://twitter.com/myxwiki

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


Re: [xwiki-users] How to navigate user pages as tree structure from main page?

2009-04-14 Thread Manfred
Hi Niels,

Thanks for the extensive exposition on tooltips and breadcrumbs. Will concede 
the technical aspects are a bit whoa for me, but I'm confident the Xwiki 
developers will know what you're on about ;-)

Initial discussion topic was around ways to improve / provide a hierarchical 
page navigation tree, AFAIK no mention was made of tooltips - so that 
functionality may not even be on the agenda for Xwiki or I don't know at least. 
Its just that one of the developers mentioned an example page using Curriki to 
illustrate a point, so I gave some feedback round that.

I then visited said page and the tree navigation structure of it I quite like, 
it was the other 'features' that irritated me, so I put in my 0.03 in case the 
xwiki developers were thinking of doing something similar, so that they at 
least have 1 user input of hopefully what not to do.

I'm sure your input will be valuable to them as well,

I did look at your xwiki site and I see how you've done it - the first page of 
the space you have created a TOC for the docs in it, it appears. Of course that 
works, but what I was asking for was an xwiki generated space aware, tree like 
hierarchical nested wiki page navigation structure to this which fits in the 
navigation, recently modified, etc area of the xwiki browser page rather than 
me needing to occupy the space page with a TOC or provide hyperlinks elsewhere, 
etc.

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


[xwiki-users] ERROR [BaseCollection] Failed to get class [internal] from wiki [...]

2009-04-14 Thread Tronicek

Hi,

I'm testing an upgrade from XE 1.7M1 to XE 1.8.1 incl. XEM.

My environment:
JBoss 1.4.1, XE 1.8.1

No matter which Wiki page is addressed i got a few errors at console and 
server.log per page:

13:40:25,802 ERROR [BaseCollection] Failed to get class [internal] from wiki 
[xwiki]
java.lang.NullPointerException

Has someone the same problem?

Thanks,
Rudolf
-- 
View this message in context: 
http://n2.nabble.com/ERROR--BaseCollection--Failed-to-get-class--internal--from-wiki--...--tp2632698p2632698.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


Re: [xwiki-users] Change database name of virtual wiki

2009-04-14 Thread Thomas Mortagne
Hi,

On Tue, Apr 14, 2009 at 09:39, hel-o h...@hel.at wrote:

 Hi,

 is there a way to change the database name of a virtual wiki?

Changing the database name and the descriptor name
(XWikiServerWikiname - XWikiServerNewwikiname) should work. Note that
any existing link targeting this wiki will not work anymore.


 Thanks
 hel.

 -
 hel.
 h...@hel.at

 --
 View this message in context: 
 http://n2.nabble.com/Change-database-name-of-virtual-wiki-tp2631685p2631685.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


Re: [xwiki-users] Change database name of virtual wiki

2009-04-14 Thread hel-o

Hi,



Changing the database name and the descriptor name
(XWikiServerWikiname - XWikiServerNewwikiname) should work. Note that
any existing link targeting this wiki will not work anymore.

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



That means i have to rename the XWikiServerWikiname page?

Just another question. Is it possible to use db names like xwiki_wikiname.

Thanks
hel.


-

h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/Change-database-name-of-virtual-wiki-tp2631685p2633495.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


Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor

2009-04-14 Thread Andreas Schaefer
Hi Vincent

I am still not able to work this out. I have this Wiki Snippet on a  
page:

{{html}}{{velocity}}#info(The IBOutlet classifier can be moved to the  
property definition if you like){{/velocity}}{{/html}}

and it generates this HTML code:

!--stopmacro--!--startmacro:html|-||-|{{velocity}}#info(The  
IBOutlet classifier can be moved to the property definition if you  
like){{/velocity}}--pplt;div class=infomessagegt;The  
IBOutlet classifier can be moved to the property definition if you  
likelt;/divgt;/p/p!--stopmacro--

which leads to entire text inside the paragraph to be printed out  
(including the div).

I upgraded to 1.8.1 yesterday by just replacing the WAR file.

Andreas Schaefer
CEO of Madplanet.com Inc.
andreas.schae...@madplanet.com
schaef...@me.com

On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:

 The velocity macros that were working for XWiki Syntax 1.0 still work
 for XWiki syntax 2.0 (provided you use them inside the {{velocity}}
 macro). However most of them output HTML and in XWiki Syntax 2.0 you
 need to surround any HTML block by the {{html}} macro so basically
 you'll need to write:

 {{html}}{{velocity}}#warning(This is my warning to you){{/velocity}}
 {{/html}}

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


Re: [xwiki-users] Change database name of virtual wiki

2009-04-14 Thread Thomas Mortagne
On Tue, Apr 14, 2009 at 16:37, hel-o h...@hel.at wrote:

 Hi,



 Changing the database name and the descriptor name
 (XWikiServerWikiname - XWikiServerNewwikiname) should work. Note that
 any existing link targeting this wiki will not work anymore.

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



 That means i have to rename the XWikiServerWikiname page?

Yes


 Just another question. Is it possible to use db names like xwiki_wikiname.

Yes using xwiki.db.prefix. See
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfigurethenamesofdatabaseschemas28since16M129


 Thanks
 hel.


 -
 
 h...@hel.at

 --
 View this message in context: 
 http://n2.nabble.com/Change-database-name-of-virtual-wiki-tp2631685p2633495.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


Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor

2009-04-14 Thread Thomas Mortagne
On Tue, Apr 14, 2009 at 17:47, Andreas Schaefer schaef...@me.com wrote:
 Hi Vincent

 I am still not able to work this out. I have this Wiki Snippet on a
 page:

 {{html}}{{velocity}}#info(The IBOutlet classifier can be moved to the
 property definition if you like){{/velocity}}{{/html}}

Actually you should use
{{velocity}}{{html}}#info(The IBOutlet classifier can be moved to the
property definition if you like){{/html}}{{/velocity}}
to execute velocity code before html.

By defaut {{html}} only expect html content so it will not execute
wiki content likes macros?


 and it generates this HTML code:

 !--stopmacro--!--startmacro:html|-||-|{{velocity}}#info(The
 IBOutlet classifier can be moved to the property definition if you
 like){{/velocity}}--pplt;div class=infomessagegt;The
 IBOutlet classifier can be moved to the property definition if you
 likelt;/divgt;/p/p!--stopmacro--

 which leads to entire text inside the paragraph to be printed out
 (including the div).

 I upgraded to 1.8.1 yesterday by just replacing the WAR file.

 Andreas Schaefer
 CEO of Madplanet.com Inc.
 andreas.schae...@madplanet.com
 schaef...@me.com

 On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:

 The velocity macros that were working for XWiki Syntax 1.0 still work
 for XWiki syntax 2.0 (provided you use them inside the {{velocity}}
 macro). However most of them output HTML and in XWiki Syntax 2.0 you
 need to surround any HTML block by the {{html}} macro so basically
 you'll need to write:

 {{html}}{{velocity}}#warning(This is my warning to you){{/velocity}}
 {{/html}}

 ___
 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] Code Box Content Changes in WYSIWYG Editor

2009-04-14 Thread Andreas Schaefer
Switching the velocity and html tag seems to do the trick:

{{velocity}}{{html}}#info(The IBOutlet classifier can be moved to the  
property definition if you like){{/html}}{{/velocity}}

BTW I would love to add a comment or edit the Macro description on 
http://code.xwiki.org/xwiki/bin/view/Macros/InfoMacro#Comments 
  but I cannot figure out how to register.

Cheers

Andreas Schaefer
CEO of Madplanet.com Inc.
andreas.schae...@madplanet.com
schaef...@me.com

On Apr 14, 2009, at 8:47 AM, Andreas Schaefer wrote:

 Hi Vincent

 I am still not able to work this out. I have this Wiki Snippet on a  
 page:

 {{html}}{{velocity}}#info(The IBOutlet classifier can be moved to  
 the property definition if you like){{/velocity}}{{/html}}

 and it generates this HTML code:

 !--stopmacro--!--startmacro:html|-||-|{{velocity}}#info(The  
 IBOutlet classifier can be moved to the property definition if you  
 like){{/velocity}}--pplt;div class=infomessagegt;The  
 IBOutlet classifier can be moved to the property definition if you  
 likelt;/divgt;/p/p!--stopmacro--

 which leads to entire text inside the paragraph to be printed out  
 (including the div).

 I upgraded to 1.8.1 yesterday by just replacing the WAR file.

 Andreas Schaefer
 CEO of Madplanet.com Inc.
 andreas.schae...@madplanet.com
 schaef...@me.com

 On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:

 The velocity macros that were working for XWiki Syntax 1.0 still work
 for XWiki syntax 2.0 (provided you use them inside the {{velocity}}
 macro). However most of them output HTML and in XWiki Syntax 2.0 you
 need to surround any HTML block by the {{html}} macro so basically
 you'll need to write:

 {{html}}{{velocity}}#warning(This is my warning to you){{/ 
 velocity}}
 {{/html}}


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


Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor

2009-04-14 Thread Guillaume Lerouge
Hi,

On Tue, Apr 14, 2009 at 6:01 PM, Andreas Schaefer schaef...@me.com wrote:

 Switching the velocity and html tag seems to do the trick:

 {{velocity}}{{html}}#info(The IBOutlet classifier can be moved to the
 property definition if you like){{/html}}{{/velocity}}

 BTW I would love to add a comment or edit the Macro description on
 http://code.xwiki.org/xwiki/bin/view/Macros/InfoMacro#Comments
  but I cannot figure out how to register.

You can register an account on XWiki.org here :
http://www.xwiki.org/xwiki/bin/register/XWiki/Register
It will work on all the XWiki.org sites.
Guillaume




 Cheers

 Andreas Schaefer
 CEO of Madplanet.com Inc.
 andreas.schae...@madplanet.com
 schaef...@me.com

 On Apr 14, 2009, at 8:47 AM, Andreas Schaefer wrote:

  Hi Vincent
 
  I am still not able to work this out. I have this Wiki Snippet on a
  page:
 
  {{html}}{{velocity}}#info(The IBOutlet classifier can be moved to
  the property definition if you like){{/velocity}}{{/html}}
 
  and it generates this HTML code:
 
  !--stopmacro--!--startmacro:html|-||-|{{velocity}}#info(The
  IBOutlet classifier can be moved to the property definition if you
  like){{/velocity}}--pplt;div class=infomessagegt;The
  IBOutlet classifier can be moved to the property definition if you
  likelt;/divgt;/p/p!--stopmacro--
 
  which leads to entire text inside the paragraph to be printed out
  (including the div).
 
  I upgraded to 1.8.1 yesterday by just replacing the WAR file.
 
  Andreas Schaefer
  CEO of Madplanet.com Inc.
  andreas.schae...@madplanet.com
  schaef...@me.com
 
  On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
 
  The velocity macros that were working for XWiki Syntax 1.0 still work
  for XWiki syntax 2.0 (provided you use them inside the {{velocity}}
  macro). However most of them output HTML and in XWiki Syntax 2.0 you
  need to surround any HTML block by the {{html}} macro so basically
  you'll need to write:
 
  {{html}}{{velocity}}#warning(This is my warning to you){{/
  velocity}}
  {{/html}}
 

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




-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor

2009-04-14 Thread Vincent Massol

On Apr 14, 2009, at 5:55 PM, Thomas Mortagne wrote:

 On Tue, Apr 14, 2009 at 17:47, Andreas Schaefer schaef...@me.com  
 wrote:
 Hi Vincent

 I am still not able to work this out. I have this Wiki Snippet on a
 page:

 {{html}}{{velocity}}#info(The IBOutlet classifier can be moved to  
 the
 property definition if you like){{/velocity}}{{/html}}

 Actually you should use
 {{velocity}}{{html}}#info(The IBOutlet classifier can be moved to the
 property definition if you like){{/html}}{{/velocity}}
 to execute velocity code before html.

Right my mistake... I guess users will make this mistake quite often  
too ;)

The outer macro is always executed first.

Thanks
-Vincent

 By defaut {{html}} only expect html content so it will not execute
 wiki content likes macros?


 and it generates this HTML code:

 !--stopmacro--!--startmacro:html|-||-|{{velocity}}#info(The
 IBOutlet classifier can be moved to the property definition if you
 like){{/velocity}}--pplt;div class=infomessagegt;The
 IBOutlet classifier can be moved to the property definition if you
 likelt;/divgt;/p/p!--stopmacro--

 which leads to entire text inside the paragraph to be printed out
 (including the div).

 I upgraded to 1.8.1 yesterday by just replacing the WAR file.

 Andreas Schaefer
 CEO of Madplanet.com Inc.
 andreas.schae...@madplanet.com
 schaef...@me.com

 On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:

 The velocity macros that were working for XWiki Syntax 1.0 still  
 work
 for XWiki syntax 2.0 (provided you use them inside the {{velocity}}
 macro). However most of them output HTML and in XWiki Syntax 2.0 you
 need to surround any HTML block by the {{html}} macro so basically
 you'll need to write:

 {{html}}{{velocity}}#warning(This is my warning to you){{/ 
 velocity}}
 {{/html}}

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


Re: [xwiki-users] How to navigate user pages as tree structure from main page?

2009-04-14 Thread Niels Mayer
I mentioned the curriki tooltips issue because you noted performance issues
in waiting for certain actions in curriki's navigation. Ludovic gave the
example
http://www.curriki.org/xwiki/bin/view/Coll_curriki/RefineyourSearchforLearningResources?bc=;Coll_curriki.CurrikiHelp;Coll_curriki.HowtoSearchBrowseCurriki_0--
note the extensive use of tooltips on each item as you hover over
them
in the navigation. IMHO, this is the reason for the perfomance issues:

You noted:

 1. The noticeable lag between clicking on a tree link and the next level
 opening. My internet connection isnt *that* slow and I'd guess even at
 intranet speeds it would still be noticeable. Taking a guess maybe the page
 needs to have the tree/toc preloaded/cached to avoid this lag or some other
 approach, but the pregnant pause waiting for the toc/tree part of the screen
 to redraw is somewhat disconcerting.


The point of my message was to point out  that some of the widgetry you were
looking at might perform differently in a different environment that doesn't
burden the browser with as much work. Because of the particular tooltips
approach used, JavaScript and the user's  browser can be a potential
performance bottleneck.

A generalized imlementation of the navigation Ludovic pointed out might want
to skip some of these performance bottlenecks, rather than replicating them.
Or solve the issue by coming up with an incremental approach for tooltips.
For example, using the hover timeout to fetch and compute the individual
toolktip HTML for the item one's mouse is over, as opposed to having to
precompute all the tooltips each time you expand a level in the navigation.

Regarding your navigation needs, have you considered using (or modifying)
Main.Dashboard or Main.SpaceIndex? The code snippet I put in the WebHome
page of most spaces created on my site comes from Main.SpaceIndex, (usage
example: /xwiki/bin/view/Main/SpaceIndex?space=Main ).

Additionally, the code in Main.Dashboard indicates it can be used on a
per-space basis:

## This dashboard can be used for both wikis (Main.WebHome)
## and spaces (*.WebHome).
##
#set($isSpaceDashboard = false)
#if($doc.space != Main)
#set($isSpaceDashboard = true)
#end

However, it sounds lke you're looking for something closer to
Panels.Navigation, Panels.Spaces.
or Panels.SpaceDocs ...

Niels
http://nielsmayer.com



On Tue, Apr 14, 2009 at 2:36 AM, Manfred manonin...@gmail.com wrote:

 Hi Niels,

 Thanks for the extensive exposition on tooltips and breadcrumbs. Will
 concede the technical aspects are a bit whoa for me, but I'm confident the
 Xwiki developers will know what you're on about ;-)

 Initial discussion topic was around ways to improve / provide a
 hierarchical page navigation tree, AFAIK no mention was made of tooltips -
 so that functionality may not even be on the agenda for Xwiki or I don't
 know at least. Its just that one of the developers mentioned an example page
 using Curriki to illustrate a point, so I gave some feedback round that.

 I then visited said page and the tree navigation structure of it I quite
 like, it was the other 'features' that irritated me, so I put in my 0.03 in
 case the xwiki developers were thinking of doing something similar, so that
 they at least have 1 user input of hopefully what not to do.

 I'm sure your input will be valuable to them as well,

 I did look at your xwiki site and I see how you've done it - the first page
 of the space you have created a TOC for the docs in it, it appears. Of
 course that works, but what I was asking for was an xwiki generated space
 aware, tree like hierarchical nested wiki page navigation structure to this
 which fits in the navigation, recently modified, etc area of the xwiki
 browser page rather than me needing to occupy the space page with a TOC or
 provide hyperlinks elsewhere, etc.

 Cheers
 ___
 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