Hi everyone!
I would like to create a wiki in your farm to host the work of the
editorial board of the Galician Translation Journal "Viceversa"
(http://webs.uvigo.es/webatg/viceversa/viceversa.htm). We are looking
for a utility that allows us to share files, edit collaboratively,
keep track of the work online, etc. and I think XWiki is the thing!
My user name: alugris
Proposed wiki name: viceversa
Thank you!
Alberto
--
=======================================================================
Alberto Álvarez Lugrís <alugris(a)uvigo.es>
Facultade de Filoloxía e Tradución
Universidade de Vigo
Campus Universitario Lagoas/Marcosende s/n
36310 Vigo
Pontevedra
Tel.: 986 812 329
Fax: 986 812 380
http://www.tradutoresgalegos.org [Asociación de Tradutores Galegos]
http://www.bivir.com [Biblioteca Virtual]
http://www.uvigo.es/webs/h06/weba573/indice.html [Área de T&I]
http://webs.uvigo.es/alugris [Docencia]
=======================================================================
*
Mike,
Can you document useful code snipets like this on the XWiki site? Thanks.
Regards,
Richard
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]On Behalf
Of Mike Oliver
Sent: 22 May 2008 20:56
To: users(a)xwiki.org
Subject: Re: [xwiki-users] Creating a Toolbar of my own
Bingo we have a winner...
#set ($hql = ", BaseObject as obj where obj.name=doc.fullName
and obj.className='XWiki.ToolbarClass' and
obj.name<>'XWiki.ToolbarClassTemplate'")
#set ($toolbars= $xwiki.searchDocuments($hql))
#if ($toolbars.size() > 0)
#foreach ($toolbar in $toolbars)
#set ($itemdoc = $xwiki.getDocument($toolbar))
#set ($itemobject = $itemdoc.getObject('XWiki.ToolbarClass'))
#set ($imgsrc =
$xwiki.getAttachmentURL("$itemdoc","$itemdoc.display('UpIcon')"))
* <a href="/xwiki/bin/view/$itemdoc.display('GotoPage')"><img
src="$imgsrc"/></a> [$toolbar] <br>
Mike Oliver wrote:
>
> Ok almost there...
>
> This line works with the Click here link, but the img link doesn't.
>
>
> * <img src="$imgsrc"/> [Click here>$itemdoc.display('GotoPage')]
> [$toolbar] <br>
>
>
> Mike Oliver wrote:
>>
>> Ok proding right along I got the icon attached to the toolbar page to
>> display for each in the toolbars list, but the link on the image doesn't
>> work.
>>
>> Here is the latest...
>>
>> #set ($hql = ", BaseObject as obj where obj.name=doc.fullName
>> and obj.className='XWiki.ToolbarClass' and
>> obj.name<>'XWiki.ToolbarClassTemplate'")
>> #set ($toolbars= $xwiki.searchDocuments($hql))
>> #if ($toolbars.size() > 0)
>> #foreach ($toolbar in $toolbars)
>> #set ($itemdoc = $xwiki.getDocument($toolbar))
>> #set ($itemobject = $itemdoc.getObject('XWiki.ToolbarClass'))
>> #set ($imgsrc =
>> $xwiki.getAttachmentURL("$itemdoc","$itemdoc.display('UpIcon')"))
>>
>> * [<img src="$imgsrc"/> > $itemdoc.display('GotoPage')]
>> [$toolbar] <br>
>>
>> #the following is just to show what's in the properties using a couple
>> different methods, I tried both above.
>> $itemdoc.display('UpIcon') | $itemdoc.display('DownIcon') |
>> $itemdoc.display('GotoPage') | $itemobject.getProperty('GotoPage').value
>> <br>
>>
>> #end
>> #else
>> #info("There are no Toolbar documents in this wiki!")
>> #end
>>
>>
>> Mike Oliver wrote:
>>>
>>> Ok first problem solved the img link had the arguments in the wrong
>>> order so
>>>
>>> <mg
>>>
src="$xwiki.getAttachmentURL("AEBtn0.jpg","Toolbar.AdvancedEditorButton")"
>>> /> was bad and
>>>
>>> <mg
>>>
src="$xwiki.getAttachmentURL("Toolbar.AdvancedEditorButton","AEBtn0.jpg")"
>>> /> was good.
>>>
>>> Now the question is, given the desire to show in the dashboard now and
>>> eventually in a panel later the icons named in the properties of the
>>> toolbar classes, how do I loop through the toolbars and build the displa
>>> from the properties?
>>>
>>>
>>> Mike Oliver wrote:
>>>>
>>>> I am making good progress on a new Class that has properties, style
>>>> sheet and template that I created after following the Todo Tutorial.
>>>>
>>>> The ToolbarClass has the following properties
>>>>
>>>> Type/Name/SampleContent
>>>>
>>>> String/Title/Advanced Editor
>>>> TextArea/Description/This button takes you to the advanced editor page
>>>> String/UpIcon/AEBtn0.jpg
>>>> String/DownIcon/AEBtn1.jpg
>>>> String/DisabledIcon/AEBtn2.jpg
>>>> String/GotoPage/Tools.AdvancedEditor
>>>>
>>>> Also following the Todo Tutorial I created the Toolbar Space Web Home
>>>> page dashboard with
>>>>
>>>>
>>>> #set ($hql = ", BaseObject as obj where obj.name=doc.fullName
>>>> and obj.className='XWiki.ToolbarClass' and
>>>> obj.name<>'XWiki.ToolbarClassTemplate'")
>>>> #set ($toolbars= $xwiki.searchDocuments($hql))
>>>> #if ($toolbars.size() > 0)
>>>> #foreach ($toolbar in $toolbars)
>>>>
>>>> * [$toolbar]
>>>>
>>>> #end
>>>> #else
>>>> #info("There are no Toolbar documents in this wiki!")
>>>> #end
>>>>
>>>> And I added the Comments object to the ToolbarClassTemplate
>>>> and then added a couple of document and attached the UPIcon and
>>>> DownIcon images as attachments.
>>>>
>>>> Going to the Web Home of the I see the list of the two document with
>>>> the ToolbarClass object on them so cool beans just as the tutorial
>>>> instructed with the names changed and bingo we have a winner.
>>>>
>>>> Now the tricky part, I want to show the attached images in the
>>>> dashboard for each document, where the property of the Toolbar object
>>>> for UpIcon is used to identifiy which attachment to display.
>>>>
>>>> I tried
>>>>
>>>>
>>>> #set ($hql = ", BaseObject as obj where obj.name=doc.fullName
>>>> and obj.className='XWiki.ToolbarClass' and
>>>> obj.name<>'XWiki.ToolbarClassTemplate'")
>>>> #set ($toolbars= $xwiki.searchDocuments($hql))
>>>> #if ($toolbars.size() > 0)
>>>> #foreach ($toolbar in $toolbars)
>>>>
>>>> * <<mg
>>>>
src="$xwiki.getAttachmentURL("AEBtn0.jpg","Toolbar.AdvancedEditorButton")"
>>>> /> [$toolbar]
>>>>
>>>> #end
>>>> #else
>>>> #info("There are no Toolbar documents in this wiki!")
>>>> #end
>>>>
>>>> where I know that AEBtn0.jpg is the attached image but that doesn't
>>>> show.
>>>>
>>>> Eventually I want to use the string in the UpIcon property to identify
>>>> the image to display but unless I can get the attachement to display on
>>>> another page I cannot proceed.
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Creating-a-Toolbar-of-my-own-tp17410485p17412204.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent. Attachments to this e-mail
may contain software viruses which could damage your system. We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
Hi,
I am using XE 1.3.2 and Mysql 5.0 with jetty 5.1.5. Can any one give a
support for JNDI configuration of jetty 5.1.5 (Not jetty 6). Or is it same
for both Jetty 5 & jetty 6? Can any one help?
Regards,
Project trainees.
Again,
Now, I will tell my problem in detailed!! I have create a class with
some properties and through this, I can insert & display data(by using
velocity and HTML). I have to fetch and insert this data into a Mysql
table. I could connect to Mysql through Groovy but couldn't integrate
this with Velocity.
The code which I have used and the error showed is:-
#foreach ($todo in $todos)
<tr>
#set ($todoDoc = $xwiki.getDocument($todo))
#set ($todoObj = $todoDoc.getObject("XWiki.TodoClass"))
<td>[$todoObj.ID>$todo]</td>
<td>[$todoObj.ProjectName>$todo]</td>
<td>$todoObj.Assignee</td>
<td>$todoObj.TargetDate</td>
<td>$todoObj.Status</td>
</tr>
<%
import groovy.sql.Sql
db = Sql.newInstance("jdbc:mysql://localhost/test", "root",
"amma123", "com.mysql.jdbc.Driver")
db.execute("insert into projects (id, project, assignee,
last_modified_datetime) values (${$todoObj.ID}, ${$todoObj.ProjectName},
${$todoObj.Assignee}), ${$todoObj.Status})")
%>
#end
Error number 4002 in 4: Error while parsing groovy page Todo.WebHome
Wrapped Exception: startup failed, Script1.groovy: 5: Unknown type:
SCOPE_ESCAPE at line: 5 column: 92. File: Script1.groovy @ line 5, column
92.
Hopes response,
Thanks,
Project trainees.
Hi!
In version 1.1.2 I was able to continue list using \ on the next
line, like:
1. lalalala\
#picture_macro()
1. rrererer\
#picture_macro()
So the picture or some text would be in the list item.
It was very nice when posting a big text with paragraphs, so you can
actually see those paragraphs in a wiki code.
But now (version 1.3) it doesn't work, and I'm forced to modify all
the pages and use instead this syntax:
1. lalala\#picture_macro()
1. ererer\#picture_macro()
Also, wiki code becomes "unreadable" when posting a big text.
Ar cieтu, Mihails
Hi,
I am using XE 1.3.2 and Mysql 5.0 with jetty 5.1.5. Can any one give a
support for JNDI configuration of jetty 5.1.5 (Not jetty 6). Or is it same
for both Jetty 5 & jetty 6? Can any one help?
Regards,
Project trainees.
Hello!
Did anyone encoutered such a problem with XEclipse?
My operating system is: Windows XP
Java: java 6 update 4
Xeclipse version: xwiki-eclipse-rcp-win32-win32-x86-1.1
xeclipse log:
!SESSION 2008-05-23 10:59:36.078 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ro_RO
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.runtime 2 0 2008-05-23 10:59:37.234
!MESSAGE Authorization infrastructure (org.eclipse.core.runtime.compatibility.auth) not installed.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/core/internal/runtime/auth/AuthorizationHandler
at org.eclipse.core.internal.runtime.InternalPlatform.initializeAuthorizationHandler(InternalPlatform.java:603)
at org.eclipse.core.internal.runtime.InternalPlatform.start(InternalPlatform.java:745)
at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:31)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.internal.runtime.auth.AuthorizationHandler
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 16 more
I cannot connect to any server. and I haven't got a clue of what is that.
THX!
Take care ,
Gabriela Radu :)
www.gabrielaradu.com
Hello,
I'm having some trouble understating how the default permissions work
and could use some help/guidance. I've got workspaces running,
configured to authenticated off AD and have user groups populating via
the group mapping stuff. It works really slick.
My problem stems from when a new user logs into xwiki the My Dashboard
pages just says.
"You cannot create a personnal space since your not registered on this
wiki!"
Also when a user tries to edit their profile image I get this error.
Error You are not allowed to view this document or perform this
action.
The user is a member of the XWikiAllGroup and those pages work for my
superadmin account.
I guess my question is what types of permissions are required for that
functionality to work and how do I go about changing them so they will
work. I've fumbled around in the space rights and global rights
changing all sorts of stuff but not really making any headway in getting
those sections working.
Thanks
Justin St. Onge
Academic Server Administrator/Lab Coordinator
SUNY College at Oneonta <http://www.oneonta.edu/> - Academic Computer
Services <http://helpdesk.oneonta.edu/>
stongejc(a)oneonta.edu
"Look, defenseless babies!"
Fletch
Hello,
I read a lot about developing XWiki, I installed maven, a subclient, ... and
got the repository, too. I want to ask, if I understood it right, that I
work together with the community on developing the XWiki code. That means,
that I'm programming something and then put it up to the repository. After
checking my changes, they are available for other developers.
If this is right, I'd like to know, if it is possible, to work on the code
of my private XWiki, which is installed. I tried to import the .xar file to
eclipse, but I didn't find anything. I searched a lot for a solution but now
I'm at a point, where I don't know how to carry on with developing.
So my question is:
I'd like to develop the code of my own XWiki, not on the repository, is this
possible?
Thanks a lot!
Yours sincerely
Lisa Wäldchen
--
View this message in context: http://www.nabble.com/Development-of-a-private-XWiki-tp17359119p17359119.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks Sergio.
My wiki is on the farm (http://patternlanguagenetwork.myxwiki.org/). Does
that mean its a virtual wiki, and I cannot have programming rights? That
means I can't write or install any groovy code, and can't access
$context.context. Very limiting!
- Yishay
> Date: Fri, 16 May 2008 15:22:54 +0200
> From: Sergiu Dumitriu <sergiu(a)xwiki.com>
> Subject: Re: [xwiki-users] permitting "programming"
>
> Yishay Mor wrote:
> > the adminstration panel does not include a column for "programming". How
> do
> > I grant a user programming rights?
> >
>
> That appears only in the global rights (not on space or document
> rights), and only in the main wiki (virtual wikis can't have programming
> rights for the moment, for security reasons).
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
>
>
___________________________
Yishay Mor, Researcher, London Knowledge Lab
http://www.lkl.ac.uk/people/mor.htmlhttp://yishaym.wordpress.comhttps://www.linkedin.com/in/yishaymorhttp://www.google.com/calendar/embed?src=yishaym%40gmail.com
+44-20-78378888 x5737
Hi all,
Here is my problem, I switch from xwiki DB authentication to our corporate
LDAP, and some user will have their login changed.
Ex: in xwiki they created some basic username such as their first name, and
in LDAP they will have to enter their corporate login that is usually the
first letter of their first name concatened to the seven first character to
their name.
Some users in this case have already created a lot of documents and if I
change directly the Xwiki.userName in the database this does not work as it
seems that the login is used to reference all document from a specific user.
So how to change the ownership of document from old name to new name ?
Fabien