On Mon, Feb 20, 2012 at 9:38 AM, Theresa Noisser <theresa.noisser(a)web.de> wrote:
Hello and in this topic, too: sorry for the late reply
because of my damned
emailadress and not-html-mails... :)
The user directory is nearly the thing i was looking for, but is it possible
to adjust the size of the images? I want to use it as a page for new
coworkers so if someone says "for this problem you should go to Mr. xy" and
the new one don't have a clue who Mr. xy is and how he looks he can look at
the page to see a picture.
I had a look at the code for this UserDirectory and
the page
XWikiGroupSheet, respectively, but i didn't found an obvious way to change
the image size. Can someone tell me how to do it? That would be great.
XWikiGroupSheet relies on getgroupmembers.vm Velocity template to get
the displayed results. This file is located in the 'templates' folder
inside the XWiki war, so in order to modify it you have to look for
the place where you deployed XWiki (or where you installed XWiki). If
you search for 'avatar' in getgroupmembers.vm you'll see that it
currently uses #mediumUserAvatar Velocity macro. Replace 'medium' with
'large' and reload the user directory.
Hope this helps,
Marius
Thanks in advance,
resi.
How about the page Main/UserDirectory ?
Example:
http://www.xwiki.org/xwiki/bin/view/Main/UserDirectory
<https://3c.web.de/client/dereferrer?redirectUrl=http%3A%2F%2Fwww.xwiki.org%2Fxwiki%2Fbin%2Fview%2FMain%2FUserDirectory&selection=tfol126ea17b5ec1c903
Thanks,
Caty
On Thu, Feb 16, 2012 at 12:57, Edo Beutler <ebeutler(a)synventis.com> wrote:
Hi Resi
I think you will have to write your own script for that.
First you get all users of your wiki. I don't know of an api call for
that, so you could use $services.query.xwql("from
doc.object(XWiki.XWikiUsers) as obj").execute() You could also add
e.g. "order by obj.last_name" if you like to.
The result is a list. Using #foreach you can display all the things
you want for each user.
The information about the specialities or responsibilities should be
connected somehow to the users (maybe by using groups?). You could
also consider adding additional fields to the XWiki.XWikiUsers class
to reflect your specialities and responsibilities.
How to display this information depends on how you save and connect
them to the users.
Hope this helps
Edo
On Thu, Feb 16, 2012 at 8:42 AM, Theresa Noisser <theresa.noisser(a)web.de
wrote:
Hello,
for our company intranet wiki i'd like to have a page where all
coworkers
are listed with their names and pictures. I found a velocity code to
give
out the useravatar (e.g. #largeUserAvatar('XWiki.username') ), but is
there
a way to automatically generate a page where all
the users are listed
with
names and pictures (perhaps in 2 columns and with
links to their profile
pages)? I only found a way to list all editors or page creators.
And second, i would like to add information to the profile pages of the
coworkers, e.g. their specialities or responsibilities. How can i do
that?
> Thanks in advance,
> resi.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
>
<https://3c.web.de/client/dereferrer?redirectUrl=http%3A%2F%2Flists.xwiki.org%2Fmailman%2Flistinfo%2Fusers&selection=tfol126ea17b5ec1c903>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
<https://3c.web.de/client/dereferrer?redirectUrl=http%3A%2F%2Flists.xwiki.org%2Fmailman%2Flistinfo%2Fusers&selection=tfol126ea17b5ec1c903>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
<https://3c.web.de/client/dereferrer?redirectUrl=http%3A%2F%2Flists.xwiki.org%2Fmailman%2Flistinfo%2Fusers&selection=tfol126ea17b5ec1c903
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users