Re: [xwiki-users] Panel Wizard doesn't show it

2009-03-14 Thread Guillaume Lerouge
Hi Antonio,

On Sat, Mar 14, 2009 at 10:36 AM, Antonio Goncalves 
antonio.mail...@gmail.com wrote:

 So that means until the next upgrade we can't use the panel wizard ? Is
 there another way to move panels around without the wizard (previous
 versions of XWiki had textfields for left and right panels) ?


You can go to .../xwiki/bin/admin/SpaceName/WebPreferences?editor=object or
.../xwiki/bin/admin/XWiki/XWikiPreferences?editor=object and edit the
XWiki.XWikiPreferences object - it has a field for right panels, a field
for left panels and 2 select boxes to choose whether or not to display the
right  left panels.

Guillaume



 Thanks,
 Antonio

 2009/3/14 Vincent Massol vinc...@massol.net

 
  On Mar 13, 2009, at 6:19 PM, Antonio Goncalves wrote:
 
   Hi Sergiu,
   Our wiki instance is hosted, so what can I do to upgrade the
   platform to a
   recent version ?
 
  You can't. We do this regularly but we wait for the admin waits a bit
  after releases are done to upgrade. Raffaello is in charge of this
  farm so I'll let him answer when is the next upgrade planned.
 
  Thanks
  -Vincent
 
   Thanks,
   Antonio
  
   2009/3/13 Sergiu Dumitriu ser...@xwiki.com
  
   Antonio Goncalves wrote:
   Hi,
   I'm not sure of what happen (our XWiki is hosted and I don't know
   all the
   admin tasks that are made), but the Panel wizard application
   doesn't work
   anymore. It looks like the XWiki version has changed
   (1.4.1.14796), it
   could
   be a reason. When I go to the panel wizard, I get the following at
   the
   top
   and cannot move any panels around. It's like the page doesn't
   include the
   needed javascript
  
   Any idea ?
   Thanks,
   Antonio
  
   Glissez et déposez les panels pour les réarranger a l'intérieur des
   colonnes
   latérales. Pour ajouter ou retirer des panels, glissez les de la
   liste
   des
   panels disponibles vers une colonne ou à l'inverse, d'une colonne
   vers la
   liste.
   $xwiki.jsfx.use(js/scriptaculous/scriptaculous.js)
   $xwiki.jsfx.use(js/xwiki/accordion/accordion.js)
   $xwiki.jsfx.use(js/xwiki/panelwizard/Drag.js)
   $xwiki.jsfx.use(js/xwiki/panelwizard/ieemu.js)
   $xwiki.jsfx.use(js/xwiki/panelwizard/toolTip.js)
  
  
   This means that you have imported a recent .xar, but didn't upgrade
   the
   rest of the platform accordingly. Looking at the version, I think
   you're
   talking about XWiki Enterprise Manager, which doesn't include the
   required plugins yet.
  
   You can either:
   - downgrade the wiki content to an equivalent version (XEM 1.4 uses
   XE 1.6)
   - upgrade the platform to a recent version
  
   --
   Sergiu Dumitriu
   http://purl.org/net/sergiu/
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 



 --
 --
 Antonio Goncalves (antonio.goncal...@gmail.com)
 Software architect

 Paris JUG leader : www.parisjug.org
 Web site : www.antoniogoncalves.org
 Blog: jroller.com/agoncal
 LinkedIn: www.linkedin.com/in/agoncal
 ___
 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] Images in links

2009-03-14 Thread Vincent Massol
Hi Lewis,

On Mar 14, 2009, at 9:18 AM, Lewis Denizen wrote:

 Thanks Vincent (and sorry for the late reply!) - inlined my reply:

 On Sun, Mar 1, 2009 at 4:41 AM, Vincent Massol vinc...@massol.net  
 wrote:

 Same here, the image syntax doesn't support relative paths.

 I guess we could improve the link and image syntax to support paths
 starting with / and then consider them as paths relative to the
 context root. However it wouldn't work for relative paths such as
 ../../some/path.

 Right now we could easily add a XWiki API to get an absolute URL from
 a relative one.

 Note that you can still use the old syntax using the {{velocity}}
 {{html}}a href=..{{/html}}{{/velocity}} but that's not very
 nice and it would be nice if it could be written using the new syntax
 but was made to avoid using HTML... :)

 Would recognizing references starting with / a good solution for
 you? What do others think?


 I guess checking for / at the beginning would work, or maybe some  
 way of
 flagging it as a relative path would be even better (maybe something  
 like
 [[image:img.png||relative=true]]).  Not sure how feasible this is,  
 or if it
 would make sense to do so...

See the vote I've sent on this:
http://tinyurl.com/c737ve

This won't be in 1.8 final but will be in 1.9M1.

 This is not correct. The html macro must contain HTML. This is not the
 case in your example. You need this:

 {{velocity}}
 * this works - [[image:
 http://localhost:8080/$xwiki.getSkinFile('icons/black-file.pnghttp://localhost:8080/$xwiki.getSkinFile%28%27icons/black-file.png
  
 
 ')
 ]]
 * this doesn't work - {{html}}img src=$xwiki.getSkinFile('icons/
 black-file.png')/{{/html}}
 {{/velocity}}

 It seems that the HTML Macro's final filter parses this last test
 case as 1
 BulletedListBlock and 1 XMLBlock, but I'm not sure if this the
 expected
 behavior.  If this is the expected behavior, the more need to get  
 the
 [[image:]] tag working...

 Thanks again for the great job!


 Hm...  kind of makes sense but, what does the wiki=true flag do,  
 then...?

It means that HTML element content can contain wiki syntax as in:
elementtext with wiki syntax here/element

 It's also a bit problematic for me since I have the following (posting
 everything, since this might be useful for others as well):

 --

 {{velocity}}#set($serverClassFullName = Server.ServerClass){{/ 
 velocity}}
 {{velocity}}#set($serverDocumentSQL = select distinct doc from  
 Document as
 doc, doc.object(${serverClassFullName}) as obj where obj.name 
 '${serverClassFullName}Template'){{/velocity}}
 {{velocity}}#set($serverDocuments =
 $xwiki.queryManager.xwql($serverDocumentSQL).execute()){{/velocity}}

 There are currently {{velocity}}**${serverDocuments.size()}**{{/ 
 velocity}}
 document(s) containing Server objects.

 {{velocity}}

Why do you repeat the velocity macro several times? You can wrap all  
the macros into one single velocity macro.

 {{html}}

This one can also be in the top level velocity macro.

 table id=serverList class=grid sortable filterable doOddEven
  tr class=sortHeader
th class=selectFilterSpace/th
thClass/th
thServer/th
th class=unsortable noFilterLink/th
  /tr

Note that in the future we've planned to add filterable/sortable  
tables in the new table syntax directly.

  #foreach($serverDocument in $serverDocuments)
#set($serverObjectSQL = select obj.hostname, obj.prettyName,
 obj.urlRoot, obj.hostName from Document as doc,
 doc.object(${serverClassFullName}) as obj where doc.id =
 ${serverDocument.id})
#set($serverObjects =
 $xwiki.queryManager.xwql($serverObjectSQL).execute())
  tr
td${serverDocument.space}/td
td${serverDocument.name}/td
td
  #foreach($serverObject in $serverObjects)
#set($server = $listtool.get($serverObject, 0))
#set($serverPrettyName = $listtool.get($serverObject , 1))
#set($serverURLRoot = $listtool.get($serverObject, 2))
#set($serverHostName = $listtool.get($serverObject , 3))
* ${serverPrettyName} - a href=${serverURLRoot}img
 src=$xwiki.getSkinFile('icons/black-file.png') alt=Root URL  
 title=Root
 URL //a a href=${serverHostName}img
 src=$xwiki.getSkinFile('icons/black-rss-mini.png') alt=Host Name
 title=Host Name //a
  #end
/td
td[[${serverDocument.name}${serverDocument}]]/td
  /tr
  #end
 /table
 {{/html}}
 {{/velocity}}

This looks good.

 --

 This will list out all the properties of Server.ServerClass for all
 documents that contain a Server.ServerClass object in it.  I got  
 this to
 work by replacing the XWiki list syntax with:

td
  ul
  #foreach($serverObject in $serverObjects)
#set($server = $listtool.get($serverObject, 0))
#set($serverPrettyName = $listtool.get($serverObject , 1))
#set($serverURLRoot = $listtool.get($serverObject, 2))

Re: [xwiki-users] Panel Wizard doesn't show it

2009-03-14 Thread Vincent Massol
Hi Antonio,

On Mar 14, 2009, at 10:36 AM, Antonio Goncalves wrote:

 So that means until the next upgrade we can't use the panel wizard ?

I thought you confirmed sergiu's supposition that you had imported a  
XAR not matching the version installed on the farm? If so you'll need  
to revert it and it should work fine.

If you tell us what you've done exactly maybe we can find a workaround.

 Is
 there another way to move panels around without the wizard (previous
 versions of XWiki had textfields for left and right panels) ?

You can go the administration, then click on Edit Objects and look  
for left and right panels field.

Thanks
-Vincent


 Thanks,
 Antonio

 2009/3/14 Vincent Massol vinc...@massol.net


 On Mar 13, 2009, at 6:19 PM, Antonio Goncalves wrote:

 Hi Sergiu,
 Our wiki instance is hosted, so what can I do to upgrade the
 platform to a
 recent version ?

 You can't. We do this regularly but we wait for the admin waits a bit
 after releases are done to upgrade. Raffaello is in charge of this
 farm so I'll let him answer when is the next upgrade planned.

 Thanks
 -Vincent

 Thanks,
 Antonio

 2009/3/13 Sergiu Dumitriu ser...@xwiki.com

 Antonio Goncalves wrote:
 Hi,
 I'm not sure of what happen (our XWiki is hosted and I don't know
 all the
 admin tasks that are made), but the Panel wizard application
 doesn't work
 anymore. It looks like the XWiki version has changed
 (1.4.1.14796), it
 could
 be a reason. When I go to the panel wizard, I get the following at
 the
 top
 and cannot move any panels around. It's like the page doesn't
 include the
 needed javascript

 Any idea ?
 Thanks,
 Antonio

 Glissez et déposez les panels pour les réarranger a l'intérieur  
 des
 colonnes
 latérales. Pour ajouter ou retirer des panels, glissez les de la
 liste
 des
 panels disponibles vers une colonne ou à l'inverse, d'une colonne
 vers la
 liste.
 $xwiki.jsfx.use(js/scriptaculous/scriptaculous.js)
 $xwiki.jsfx.use(js/xwiki/accordion/accordion.js)
 $xwiki.jsfx.use(js/xwiki/panelwizard/Drag.js)
 $xwiki.jsfx.use(js/xwiki/panelwizard/ieemu.js)
 $xwiki.jsfx.use(js/xwiki/panelwizard/toolTip.js)


 This means that you have imported a recent .xar, but didn't upgrade
 the
 rest of the platform accordingly. Looking at the version, I think
 you're
 talking about XWiki Enterprise Manager, which doesn't include the
 required plugins yet.

 You can either:
 - downgrade the wiki content to an equivalent version (XEM 1.4 uses
 XE 1.6)
 - upgrade the platform to a recent version
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Installation Problems

2009-03-14 Thread Dharani
I'm new to Xwiki platform.
I need to install Curriki in my machine  (windows platform).
What I want to know is before I go through the instructions listed in page
http://curriki.xwiki.org/xwiki/bin/view/Main/InstallationInstructions , do I
need to install Xwiki first and then follow the instructions in the above
page.


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