Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread Joao Henrique Silva Santos
Hi
Yes, I did, but it only mentions the WAR distribution upgrade. Or am I
mis-reading it?

rgds,
Joao

On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 Hi Joao,



  Joao Henrique Silva Santos wrote:
   Hi.
  
   I have installed an XWiki 1.2.2 through a XWiki Enterprise ZIP, and
   now want to upgrade to 1.3.
   From the documentation, it seems that easy upgrades of the wiki
   require the WAR installation, which I have not done. Do I have to
   export my current wiki into a WAR (if so, how can I do it?), or is it
   done through a different method?



 Have you checked out Upgrading an XWiki Installation in the following
  location?

  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

  HTH,

  Ricardo


  --
  Ricardo Rodríguez
  Your EPEC Network ICT 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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread Joao Henrique Silva Santos
Hi.
Thanks again for the detailed reply and your macro

I tested different browsers (IE 7 , IE6, Firefox) in different
machines (1 browser  1 machine).
Also, i've modified the macros.vm to include the new macro.

I will test your macro and post again when I'm done with testing.

regard,
Joao

On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 Hi Joao,


  Joao Henrique Silva Santos wrote:

  Finally, even a panel which uses the standard panelheader does not
   behave properly.
   Does anybody have a possible explanation / common problems?
  
  


 I am not able to reproduce what you are describing. The macro works fine
  for me. I've modified it a bit. Perhaps it is clearer now. See this...

  #set($initialState= collapsed)
  #set($alternativeState=expanded)

  #macro(panelheaderc $title)

 #set($cookieName = ${context.user}_${panel})

 #set($expanded = $initialState)

 #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName))
  ## Note: We pass the Panel name as an HTML class attribute so that it's
  possible to style
  ## the Panels selectively using CSS.
  #set ($specialClassAttribute = )
  #if ($paneldoc  $paneldoc != )
   #set ($specialClassAttribute =
  $util.convertToAlphaNumeric($paneldoc.name))
  #end
  div class=panel $expanded $specialClassAttribute
  h5 class=xwikipaneltitle onclick=if(eltHasClass(this.parentNode,

 '$initialState')) createCookie('$cookieName','$alternativeState', '');

 else eraseCookie('$cookieName');
  togglePanelVisibility(this.parentNode);$title/h5
  div class=xwikipanelcontents
  #end


 Initial state can be easily moved to each panel content. Alternative
  state can be easily set with a if-else-end structure. I am falling while
  evaluating the value of $initialState, but this is only a matter of
  looking for the right syntax.

  If you are using a modified macros.vm including the customized macros, I
  am not able to figure out any problem other than a malfunction at your
  browser level. Have you tried with several browsers from the same box?
  Could you try this version I am proposing? It works fine here.

  But if you are using a #includemacros(macrosFile) statement, it could
  be a matter of where you use it. I don't know how to put it this macro's
  call to affect the whole site without modifying macro.vm. I don't know
  if this is possible or we must include it in all and any documents
  needing the macros included there. I will do some more research prior to
  posting a question about this. Any input will be welcome Thanks.

  Best,


  Ricardo

  --
  Ricardo Rodríguez
  Your EPEC Network ICT 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


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Joao Henrique Silva Santos wrote:
 Hi
 Yes, I did, but it only mentions the WAR distribution upgrade. Or am I
 mis-reading it?

Touché! :-) Good point. It was me myself who misread your message.

I've once downloaded and used a zipped distribution to debug a problem 
with MySQL (following Vincent advice) and all what I did was to remove 
the folder of the hsqldb database (I don't remember the name and some 
xwiki.org sections are now down for maintenance, but it was easy to 
locate) and configure hibernate.cfg.xml accordingly.

So I am *guessing* that all you have to do is to bring down your servlet 
container, create a backup copy of the whole /xwiki directory structure 
(jsut in case!), put in place the new zip contents, copy your current 
database to the new location and start the container again.

Please, let me knows if this helped. It could be helpful for others if 
we could create a FAQ about this (if it doesn't existe yet!) Thanks.

Best,

Ricado

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] installation problems

2008-03-13 Thread Yishay Mor
Thanks Ricardo,

My server's 8080 is behind a firewall, but I can see it and have no problem
running other JSP / servlets.

thanks for reminding me about hibernate.cfg.xml
I also realized that I hadn't installed a MySql driver in WB-INF.
However, even though I fixed these two issues, I'm still getting a blank
page.

Also, I wasn't sure with settings to use in hibernate:

!-- settings commented out in original file --

property name=connection.url
jdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;sessionVariables=sql_mode=''/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property name=connection.driver_classcom.mysql.jdbc.Driver
/property
property name=dialectorg.hibernate.dialect.MySQLDialect/property
property name=connection.provider_class
com.xpn.xwiki.store.DBCPConnectionProvider/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/

!-- instructions from
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL --

property name=connection.urljdbc:mysql://localhost/xwiki/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property name=connection.driver_classcom.mysql.jdbc.Driver
/property
property name=dialectorg.hibernate.dialect.MySQLDialect/property



Date: Wed, 12 Mar 2008 01:29:07 +0100
 From: [Ricardo Rodriguez] Your EPEC Network ICT Team
 [EMAIL PROTECTED]
 Subject: Re: [xwiki-users] installation problems
 To: XWiki Users users@xwiki.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hi, Yishay,

 Yishay Mor wrote:
  Hi all,
 
  I'm trying to install xwiki 1.3 on a Mac XSERVE Leopard (osx 1.5)
  server, and I'm not getting very far.
 
  I downloaded the war, opened http://localhost:8080/manager/html, and
  deployed.
  My manager shows XWiki up and running.
  I click http://localhost:8080/xwiki and get redirected to
  http://localhost:8080/xwiki/bin/view/Main/WebHome
  and then I get a blank page.
  same for http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences

 Just to be sure, have you edited your hibernate.cfg.xml? It is a bit
 strange that you get a blank page instead of an error, but...

 Another doubt, does XServe Leopard has a firewall? Is port 8080
 accessible?

 My 2 c.,

 Ricardo

 --
 Ricardo Rodr?guez
 Your EPEC Network ICT Team


___
  Yishay Mor, Researcher, London Knowledge Lab
   http://www.lkl.ac.uk/people/mor.html
   http://yishaym.wordpress.com
   https://www.linkedin.com/in/yishaymor
   http://www.google.com/calendar/embed?src=yishaym%40gmail.com
   +44-20-7837 x5737
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] installation problems

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Yishay Mor wrote:
 Thanks Ricardo,

 My server's 8080 is behind a firewall, but I can see it and have no 
 problem running other JSP / servlets.

If you can manage your network, could you try by stopping the firewall? 
I am guessing it could be easy for you if xwiki and MySQL are running on 
the same server and you have an administrative account there. It is 
weird that you don't get errors if you had not hibernate.cfg.xml 
configured and a MySQL drivers in place.

Could you also take a look to your catalina.out and/or the console of 
your server? There must be useful information there.

 thanks for reminding me about hibernate.cfg.xml
 I also realized that I hadn't installed a MySql driver in WB-INF.
 However, even though I fixed these two issues, I'm still getting a 
 blank page.

 Also, I wasn't sure with settings to use in hibernate:

Use always the uncommented lines from your current release as the base 
for your configuration. Documentation is mostly manually updated, so 
there could be changes not reflected there. This is a wiki, so our 
contribution will be welcome... when we know what we are doing :-)

Thanks!

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] How to add an object to a document automatically?

2008-03-13 Thread Vincent Massol

One solution is to use 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications

-Vincent

On Mar 13, 2008, at 12:15 PM, Dan wrote:

I have defined a NoteClass. I'd like to add an object of NoteClass  
to every new document when it is created. I don't want users to  
manually add this object because I want to make it more easier.

Can someone tell me how to do this?
Thanks a million.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread Joao Henrique Silva Santos
Thanks for the info.
I'll try it when I know I have some free time just for the upgrading,
in case something goes wrong. Perhaps later today.
In any case, I'll post some results.

But I have a question, when you say to copy database do you mean only
the $XWIKI_HOME/database folder? just like that :-) ?

rgds,
Joao

On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 Hi,


  Joao Henrique Silva Santos wrote:
   Hi

  Yes, I did, but it only mentions the WAR distribution upgrade. Or am I
   mis-reading it?


 Touché! :-) Good point. It was me myself who misread your message.

  I've once downloaded and used a zipped distribution to debug a problem
  with MySQL (following Vincent advice) and all what I did was to remove
  the folder of the hsqldb database (I don't remember the name and some
  xwiki.org sections are now down for maintenance, but it was easy to
  locate) and configure hibernate.cfg.xml accordingly.

  So I am *guessing* that all you have to do is to bring down your servlet
  container, create a backup copy of the whole /xwiki directory structure
  (jsut in case!), put in place the new zip contents, copy your current
  database to the new location and start the container again.


 Please, let me knows if this helped. It could be helpful for others if
  we could create a FAQ about this (if it doesn't existe yet!) Thanks.

  Best,

  Ricado


  --

 Ricardo Rodríguez
  Your EPEC Network ICT 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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread Joao Henrique Silva Santos
Hi, Ricardo

I've tested your macro and it behaves just as before..
I guess I'll try to upgrade the wiki and see if it is one of the solved bugs.

regards,
Joao

On 13/03/2008, Joao Henrique Silva Santos [EMAIL PROTECTED] wrote:
 Hi.
  Thanks again for the detailed reply and your macro

  I tested different browsers (IE 7 , IE6, Firefox) in different
  machines (1 browser  1 machine).
  Also, i've modified the macros.vm to include the new macro.

  I will test your macro and post again when I'm done with testing.

  regard,
  Joao

  On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team

 [EMAIL PROTECTED] wrote:
   Hi Joao,
  
  
Joao Henrique Silva Santos wrote:
  
Finally, even a panel which uses the standard panelheader does not
 behave properly.
 Does anybody have a possible explanation / common problems?


  
  
   I am not able to reproduce what you are describing. The macro works fine
for me. I've modified it a bit. Perhaps it is clearer now. See this...
  
#set($initialState= collapsed)
#set($alternativeState=expanded)
  
#macro(panelheaderc $title)
  
   #set($cookieName = ${context.user}_${panel})
  
   #set($expanded = $initialState)
  
   #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName))
## Note: We pass the Panel name as an HTML class attribute so that it's
possible to style
## the Panels selectively using CSS.
#set ($specialClassAttribute = )
#if ($paneldoc  $paneldoc != )
 #set ($specialClassAttribute =
$util.convertToAlphaNumeric($paneldoc.name))
#end
div class=panel $expanded $specialClassAttribute
h5 class=xwikipaneltitle onclick=if(eltHasClass(this.parentNode,
  
   '$initialState')) createCookie('$cookieName','$alternativeState', '');
  
   else eraseCookie('$cookieName');
togglePanelVisibility(this.parentNode);$title/h5
div class=xwikipanelcontents
#end
  
  
   Initial state can be easily moved to each panel content. Alternative
state can be easily set with a if-else-end structure. I am falling while
evaluating the value of $initialState, but this is only a matter of
looking for the right syntax.
  
If you are using a modified macros.vm including the customized macros, I
am not able to figure out any problem other than a malfunction at your
browser level. Have you tried with several browsers from the same box?
Could you try this version I am proposing? It works fine here.
  
But if you are using a #includemacros(macrosFile) statement, it could
be a matter of where you use it. I don't know how to put it this macro's
call to affect the whole site without modifying macro.vm. I don't know
if this is possible or we must include it in all and any documents
needing the macros included there. I will do some more research prior to
posting a question about this. Any input will be welcome Thanks.
  
Best,
  
  
Ricardo
  
--
Ricardo Rodríguez
Your EPEC Network ICT 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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Joao Henrique Silva Santos wrote:
 Hi, Ricardo

 I've tested your macro and it behaves just as before..
 I guess I'll try to upgrade the wiki and see if it is one of the solved bugs.

 regards,
 Joao
Could I access to your wiki to see how do the panels behave from here?

I will set some panel in our wikis using this same macro to see if they 
work fine for you as they do for me.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Using a Google search appliance with xwiki

2008-03-13 Thread Guillaume Lerouge
Hi Jim, thanks for the feedback.

  I was able to quickly integrate our lab environment's Google Mini
 Appliance with xwiki today…

 The set-up of the appliance was simple (after some experimentation on what
 to filter out to reduce redundancy and confusion);

 1.   List of urls to crawl (e.g  http://hostname.domain:8080/xwiki )

 2.   List of patterns to follow (e.g. hostname.domain:8080/xwiki)

 3.   List of patterns to NOT crawl – I added to the default list  the
 following

 a.   contains:?viewer=code

 b.  contains:?format=rtf

 c.   contains:?format=pdf

 d.  contains:?tag=

 e.  contains:?xpage=print

 f.contains:?rev=

I don't think there's a risk, but you may want to add contains:delete,
contains:edit, contains:inline  contains:?editor= to your list... At
worse it will make indexing faster.

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread Joao Henrique Silva Santos
Your site's panels do behave correctly.
As for migrating to the war distribution, is there a way to export the
whole current wiki? I only found how to export single pages to XAR
file.

Obrigado

Joao



On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 Joao Henrique Silva Santos wrote:
   Hi, Ricardo

  Thanks for your proposal to test my wiki.
  
   It's url is:
   http://baco.cfn.ist.utl.pt:8080/xwiki
  
   Currently, the panels on the left panel-column are using your macro,
   and the ones at the right are using mine (only XWiki tutorial and
   Create are expanded by default).
   Some of them do behave properly: Networking, Database, and Quick 
 links.


 Your links work as you described. So, now the other term of the
  cross-comparison:

  http://environmentalchange.net

  Most of the contents are behind the login, but you must be able to see
  the Blog Entries panel on the right, bottom right. It is set as
  collapsed by default.

  It you get a correct behavior there, I can only think of a possibility:
  the port. Yours is using 8080, mine 80. But this does not make sense as
  far as they are panels doing fine... :-( I will try here by changing the
  port to my test box, but it will faster if you can check our place.

  If this is not the reason, we must wait for your upgrade and see what
  happen.

  Joao, don't you think that you could move to the war/xar distribution? I
  think small tokamaks deserve it! :-)

  Saúde e sorte,


  Ricardo

  --
  Ricardo Rodríguez
  Your EPEC Network ICT 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


Re: [xwiki-users] Using a Google search appliance with xwiki

2008-03-13 Thread Vincent Massol

Cool Jim! Thanks for sharing this.

It would be great if you could add a cod snippet on code.xwiki.org  
that describes this.


Thanks
-Vincent

On Mar 13, 2008, at 2:06 PM, Guillaume Lerouge wrote:


Hi Jim, thanks for the feedback.
I was able to quickly integrate our lab environment's Google Mini  
Appliance with xwiki today…


The set-up of the appliance was simple (after some experimentation  
on what to filter out to reduce redundancy and confusion);


1.   List of urls to crawl (e.g  http://hostname.domain:8080/ 
xwiki )


2.   List of patterns to follow (e.g. hostname.domain:8080/xwiki)

3.   List of patterns to NOT crawl – I added to the default  
list  the following


a.   contains:?viewer=code

b.  contains:?format=rtf

c.   contains:?format=pdf

d.  contains:?tag=

e.  contains:?xpage=print

f.contains:?rev=

I don't think there's a risk, but you may want to add  
contains:delete, contains:edit, contains:inline  contains:? 
editor= to your list... At worse it will make indexing faster.


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


Re: [xwiki-users] Using a Google search appliance with xwiki

2008-03-13 Thread Dowson_Jim
Guillaume Lerouge [mailto:[EMAIL PROTECTED] writes:

 I don't think there's a risk, but you may want to add 
 contains:delete, contains:edit, contains:inline  
 contains:?editor= to your list... 
 At worse it will make indexing faster.

I understand the ?editor= pattern.

I'm concerned that first three might wildcard exclude too much.

Can you provide additional guidance on the url pattern so that a page
called delete%20an%object is not included, for example?

Thanks, Guillaume.

--
Jim Dowson
CTO, Global Services, (821-76814)
Linx: (617) 598-0505


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


Re: [xwiki-users] Using a Google search appliance with xwiki

2008-03-13 Thread Guillaume Lerouge
Re,

 I don't think there's a risk, but you may want to add
  contains:delete, contains:edit, contains:inline 
  contains:?editor= to your list...
  At worse it will make indexing faster.

 I understand the ?editor= pattern.

 I'm concerned that first three might wildcard exclude too much.

 Can you provide additional guidance on the url pattern so that a page
 called delete%20an%object is not included, for example?


delete, edit  inline are usually used in urls such as
xwiki/bin/delete/SpaceName/PageName, so you could use contains: bin/edit
bin/delete , bin/inline , bin/objectremove and so on...

If using the / sign doesn't break the googlesearch syntax it should work
fine.

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


[xwiki-users] XWiki encoding problem

2008-03-13 Thread Diego Ruotolo
Hi,
I have encountered an encoding problem during migration from 0.9.8 to
1.3 : some character, like ù, are encoded in strange way, like ù.
I followed the howto on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding, but the
result was the same.
I give you some data:

0.9.8:
- HTML, Tomcat, XWiki: ISO-8859-1
- MySql, System: UTF-8
- None was specified in the hibernate.cfg.xml file

1.3:
- HTML, XWiki, System, Hibernate, Jetty, hsqldb: UTF-8

I also tried with different encoding configuration, i.e.: XWiki, HTML
and Jetty with ISO-8859-1, but nothing happened.
The migration was made using the import/export tool.
Can you help me?
Thanks

Diego

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


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread Joao Henrique Silva Santos
Hi.
I've upgraded the xwiki from 1.2.2 to 1.3 final using the zip distributions
All I did was:

1 - copy the entire directory to a backup folder
2 - unzip the 1.3 zip file xwiki-enterprise-hsqldb-1.3.zip
3 - deleted the newly created database ($XWIKI_HOME/database), and
replaced it with the backed up database folder.

Then I wanted to implement the changes I had made on the 1.2.2
albatross skin, but since I could not find where to make some changes
(namely how to change the url of the wiki icon, which was defined on
global.vm), I decided instead to:

4 - rename albatross (in webapps/xwiki/skins) to albatrossORIGINAL;
5 - copy to the skins folder the albatross folder from my backed up
1.2.2 xwiki

It is now running and so far it seems everything is fine, including user list.

Joao


On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 Joao Henrique Silva Santos wrote:

  Thanks for the info.
   I'll try it when I know I have some free time just for the upgrading,
   in case something goes wrong. Perhaps later today.
   In any case, I'll post some results.
  
   But I have a question, when you say to copy database do you mean only
   the $XWIKI_HOME/database folder? just like that :-) ?


 Yeap, as simple as that :-) XWiki is a great and simple stuff!

  Cheers,


  --

 Ricardo Rodríguez
  Your EPEC Network ICT 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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread Joao Henrique Silva Santos
Hi.
I've upgraded the xwiki to 1.3 using the zip distribution, but since I
could not find where I should make some changes on the albatross skin
I copied the entire albatross folder.
The problem with the panels is still there, but that could be due to a
bug on the albatross skin (bug either already existent or made by me).

I will look further into the new albatross skin structure, and try to
adapt it to my changes. If I can use the new  albatross skin that will
probably help debugging (or solving) my problems.

Joao


On 13/03/2008, Joao Henrique Silva Santos [EMAIL PROTECTED] wrote:
 Your site's panels do behave correctly.
  As for migrating to the war distribution, is there a way to export the
  whole current wiki? I only found how to export single pages to XAR
  file.

  Obrigado

  Joao



  On 13/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team

 [EMAIL PROTECTED] wrote:
   Joao Henrique Silva Santos wrote:
 Hi, Ricardo
  
Thanks for your proposal to test my wiki.

 It's url is:
 http://baco.cfn.ist.utl.pt:8080/xwiki

 Currently, the panels on the left panel-column are using your macro,
 and the ones at the right are using mine (only XWiki tutorial and
 Create are expanded by default).
 Some of them do behave properly: Networking, Database, and Quick 
 links.
  
  
   Your links work as you described. So, now the other term of the
cross-comparison:
  
http://environmentalchange.net
  
Most of the contents are behind the login, but you must be able to see
the Blog Entries panel on the right, bottom right. It is set as
collapsed by default.
  
It you get a correct behavior there, I can only think of a possibility:
the port. Yours is using 8080, mine 80. But this does not make sense as
far as they are panels doing fine... :-( I will try here by changing the
port to my test box, but it will faster if you can check our place.
  
If this is not the reason, we must wait for your upgrade and see what
happen.
  
Joao, don't you think that you could move to the war/xar distribution? I
think small tokamaks deserve it! :-)
  
Saúde e sorte,
  
  
Ricardo
  
--
Ricardo Rodríguez
Your EPEC Network ICT 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


Re: [xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL

2008-03-13 Thread [EMAIL PROTECTED]
 http://wahlfreiheit.ch:8082/xwiki/

 Try:

 ProxyPass /xwiki http://wahlfreiheit.ch:8082/xwiki/
 ProxyPassReverse /xwiki http://wahlfreiheit.ch:8082/xwiki/

 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


When I'm doing that, the page works fine with
http://wahlfreiheit.ch/xwiki/but not with
http://wahlfreiheit.ch/. I do want to show the xwiki on root (/).

I don't understand that behavior...
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL

2008-03-13 Thread Sergiu Dumitriu
[EMAIL PROTECTED] wrote:
 
 http://wahlfreiheit.ch:8082/xwiki/
 
 Try:
 
 ProxyPass /xwiki http://wahlfreiheit.ch:8082/xwiki/
 ProxyPassReverse /xwiki http://wahlfreiheit.ch:8082/xwiki/
 
 When I'm doing that, the page works fine with 
 http://wahlfreiheit.ch/xwiki/ but not with http://wahlfreiheit.ch/. I do 
 want to show the xwiki on root (/).
 
 I don't understand that behavior...
 

To options:

1. Use:

   ProxyPass / http://wahlfreiheit.ch:8082/
   ProxyPassReverse / http://wahlfreiheit.ch:8082/

and move XWiki from tomcat/webapps/xwiki to tomcat/webapps/ROOT
This means that you won't have the Tomcat manager app, but you will also 
remove /xwiki/ from the path.


2. Add a redirect from http://wahlfreiheit.ch/ to 
http://wahlfreiheit.ch/xwiki/

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Great!

Joao Henrique Silva Santos wrote:
 Hi.
 I've upgraded the xwiki from 1.2.2 to 1.3 final using the zip distributions
 All I did was:

 1 - copy the entire directory to a backup folder
 2 - unzip the 1.3 zip file xwiki-enterprise-hsqldb-1.3.zip
 3 - deleted the newly created database ($XWIKI_HOME/database), and
 replaced it with the backed up database folder.
   

I think this path could go in a FAQ entry. Perhaps it does not make 
sense to propose a way of updating from the zipped standalone 
distribution running on Jetty/hhsqldb to the war one. The standalone 
release is intended to entry level users, and it would be advisable to 
move to the war distribution running on whatever servlet container and a 
relational database like MySQL or Oracle. But you have your contents in 
the standalone version... what database are you planning to run with 
XWiki war?
 Then I wanted to implement the changes I had made on the 1.2.2
 albatross skin, but since I could not find where to make some changes
 (namely how to change the url of the wiki icon, which was defined on
 global.vm), I decided instead to:

 4 - rename albatross (in webapps/xwiki/skins) to albatrossORIGINAL;
 5 - copy to the skins folder the albatross folder from my backed up
 1.2.2 xwiki
   

This is not a good idea. Albatross has changed a lot since 1.2.2 times 
(better, the pair Albatross/Toucan :-), so I think you MUST use the new 
release. I will be glad to help you to recover your customized behavior, 
but first of all we need to work out the collapsed/expanded panels issue.

What do you think?

Saúde,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Please, where must I include a #includeMacros macro to have the macros 
defined there available for any document in a wiki?

I see the Macro Mapping field in Administration  Preferences  
Advanced, but I am not able to find how to use it. I've tried by putting 
the macros there, the macro there calling a document with the macros' 
definition,.. but none of these worked. A modified macros.vm does perfect.

Thanks for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL

2008-03-13 Thread [EMAIL PROTECTED]

 To options:

 1. Use:

   ProxyPass / http://wahlfreiheit.ch:8082/
ProxyPassReverse / http://wahlfreiheit.ch:8082/

 and move XWiki from tomcat/webapps/xwiki to tomcat/webapps/ROOT
 This means that you won't have the Tomcat manager app, but you will also
 remove /xwiki/ from the path.


 2. Add a redirect from http://wahlfreiheit.ch/ to
 http://wahlfreiheit.ch/xwiki/

 --
 Sergiu Dumitriu http://purl.org/net/sergiu/


Thanks for trying to help me, but those to proposals are not solving the
problem IMHO.

1. I don't want to move XWIKI from tomcat/webapps/xwiki to tomcat/ because
then I couldn't use anything else with Tomcat
2. A redirect does somehow not work

Even if I put the working link (
http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/) into the
ProxyPass argument it does not work. The ProxyPass is actually working but
somehow not. Do I may have to configure something in Tomcat, too? But then
again, why is http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/working
when addressed directly but not with ProxyPass...?

All I want is if I enter http://wahlreiheit.ch in my browser it should go to
http://wahlreiheit:8082/xwiki/ and show the xwiki installation...I don't get
it..   :-(
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread Sergiu Dumitriu
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Please, where must I include a #includeMacros macro to have the macros 
 defined there available for any document in a wiki?
 
 I see the Macro Mapping field in Administration  Preferences  
 Advanced, but I am not able to find how to use it. I've tried by putting 
 the macros there, the macro there calling a document with the macros' 
 definition,.. but none of these worked. A modified macros.vm does perfect.
 
 Thanks for your help,
 
 Ricardo
 

If it doesn't have to be a wiki document, then the best thing to do is 
to write a mymacros.vm file, put it somewhere, like /skins/mymacros.vm, 
and register it in /WEB-INF/velocity.properties (search for macros.vm 
and append it there).

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to get all users who have modified a specified document

2008-03-13 Thread LiDan

Dear, all
I'd like list in the document page  all the users  who have ever edited the
document.
Can someone tell me how to get the users list?
Thank you very much.
-- 
View this message in context: 
http://www.nabble.com/How-to-get-all-users-who-have-modified-a-specified-document-tp16038331p16038331.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] How to get all users who have modified a specified document

2008-03-13 Thread Guillaume Lerouge
Hi LiDan,

 I'd like list in the document page  all the users  who have ever edited
 the document.
 Can someone tell me how to get the users list?


Isn't the page history feature doing this already ? It's located in the Show
 Page history menu...

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


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 If it doesn't have to be a wiki document, then the best thing to do is 
 to write a mymacros.vm file, put it somewhere, like /skins/mymacros.vm, 
 and register it in /WEB-INF/velocity.properties (search for macros.vm 
 and append it there).
   

Thanks Sergiu. This surely works, but it will imply to keep track of a 
change done in another XWiki configuration file. Of course is not big 
deal to add it to xwiki.cfg and hibernate.cfg.xml that have to be 
changed after each update. I think the approach proposed by Guillaume 
avoid it.

Is there any performance difference between both methods I must take 
into account?

Thanks!!

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote:
 First you need to put all your macros in one page, let's say 
 XWiki.MyMacros . Then you'll have to go to the Administration, Tab 
 Preferences, Line Advanced. Then put the name of your page in the 
 Velocity Macro Pages field (you can put only one page there for 
 performance reasons). So you'll have :

 Velocity Macro Pages :
 XWiki.MyMacros

 Then save the page. You can now call your macros from wherever in the 
 wiki.

Thanks, Guillaume. It works fine. I was putting the document in the 
wrong method. Is it worth a FAQ entry?

Are you aware of any performance difference between this approach and 
the one prosed by Sergiu?

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL

2008-03-13 Thread Sergiu Dumitriu
Sergiu Dumitriu wrote:
 [EMAIL PROTECTED] wrote:
 
 2. A redirect does somehow not work
 
 What did you try? There is a mod_redirect component, AFAIK.
 

Put this inside the VirtualHost definitions:

RedirectMatch permanent ^/$ http://wahlfreiheit.ch/xwiki/

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL

2008-03-13 Thread [EMAIL PROTECTED]
On Thu, Mar 13, 2008 at 4:35 PM, Sergiu Dumitriu [EMAIL PROTECTED] wrote:

 Sergiu Dumitriu wrote:
  [EMAIL PROTECTED] wrote:
 
  2. A redirect does somehow not work
 
  What did you try? There is a mod_redirect component, AFAIK.
 

 Put this inside the VirtualHost definitions:

 RedirectMatch permanent ^/$ http://wahlfreiheit.ch/xwiki/

 --
 Sergiu Dumitriu


Ok, I was vry close to run amok. I don't know how resp. why it works now
(with your suggestions) but it does. I will spend later some to figure out
why...right now I'm done with my server (spent the whole day on this).

THANK YOU VERY MUCH SERGIU
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Just looked at the code to see how it works.

 Registering in velocity.properties causes the file to be parsed once 
 when the platform starts.

 Registering in XWikiPreferences causes the file to be parsed for each 
 line (!) of the parsed document.

 
Thanks!

Far clear! To look at the code is my main pending issue :-(

Keep trying to survive with the help of the community,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Found the problem. The panels that have a space in the document name 
 don't work. Cookie names cannot contain spaces, so when setting and 
 checking the cookie the script should remove any spaces.
   

Experience again! And systematic... :-) Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread Sergiu Dumitriu
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Sergiu Dumitriu wrote:
 Found the problem. The panels that have a space in the document name 
 don't work. Cookie names cannot contain spaces, so when setting and 
 checking the cookie the script should remove any spaces.
   
 
 Experience again! And systematic... :-) Thanks!
 
 Cheers,
 
 Ricardo
 

Can you try and fix the js?
Thanks
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Sergiu Dumitriu wrote:


Can you try and fix the js?
Thanks
  

I'll try! Thanks.

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] name of default database

2008-03-13 Thread squirrely_wrath



vmassol wrote:
 
 
 On Jan 10, 2008, at 2:31 PM, rssh wrote:
 

 Good day.

 I just download xwiki, and see, that it is not possible to set name  
 of default
 database scheme other than 'xwiki'. (Becouse xwiki.tableName is  
 hardcoded in
 SQL statements)

 Unfortunately. this means that it is hard to use xwiki as platform  
 for web
 application, because usually we have situation 'one application/one  
 database
 scheme' and want to use few applications (or few version of same  
 application)
 simultaneously.

 Question: if I change this and wull create path for configurable  
 database
 scheme name of main xwiki instance, would this patches be accepted  
 (?) or such
 using is out of scope of interest for xwiki community ?
 
 We'd love that patch . However it's not an easy patch (you/we'll need  
 to test it in lots of different conditions: XE, XEM, different  
 databases).
 
 Thanks
 -Vincent
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

Any news on this? I did just run into this issue... 
-- 
View this message in context: 
http://www.nabble.com/name-of-default-database-tp14734850p16043053.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] Xwiki documentation

2008-03-13 Thread Jason Gewehr
I am new to Xwiki and am having an extremely hard time finding documentation
for anything.  Let me give you an example.  I took a look at the code for
the Create New Page panel.  It starts like this:

#if($hasedit)
#panelheader($msg.get(Create))
form method=post action=$doc.getURL(view, xpage=create)
onsubmit=cancelCancelEdit()

It seems interesting, so I want to know more about it:

What is $hasedit and where is it documented?
What is $msg.get and where is it documented?
What is cancelCancelEdit() and where is it documented?

At least I can find document.getURL() in the API.  Why not the others?

This is only the first 3 lines of code, and already I have wasted 2 hours on
Google.  What am I doing wrong?  I would like to be able to develop with
Xwiki, but it will not be possible like this.  Please give me some advice.

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