Ricardo (and anyone else who like me needed to do more with users and groups
than xwiki provides by default),
This may help you get started and save time. I have added a bunch of extra
properties to users to store more information by changing XWikiUserSheet and
use velocity to display the information in useable ways. Below is the basics of
a page I have for simply displaying all the info for every user of the wiki,
although in our case it has a bunch of custom properties. Following that is
some code to show users in each group.
/**Start code here**/
All Team Members on the Wiki (using velocity)
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='XWiki.XWikiUsers'")
#set ($allUsers = $xwiki.searchDocuments($sql))
Click User name to get more information or edit profile
<table id="userTable" class="grid sortable filterable doOddEven"
cellpadding="0" cellspacing="0" border="0" nowrap>
<tr class="sortHeader">
<th>User</th>
<th>Project</th>
<th>Email</th>
<th>Company</th>
</tr>
#foreach ($user in $allUsers)
#set ($userdoc = $xwiki.getDocument($user))
#set ($em = $userdoc.display("email","view",$user))
<tr>
<td>[$userdoc.first_name $userdoc.last_name | $userdoc] </td>
<td> $userdoc.display("other_info","view",$user)</td>
<td>[$em | mailto:$em ]</td>
<td> $userdoc.display("company","view",$user)</td>
</tr>
#end
</table>
/**END xwiki code
/**Start code here**/
Get the email of all users in a group (using velocity)
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='XWiki.XWikiGroups'")
#set ($allGroups = $xwiki.searchDocuments($sql))
#foreach ($group in $allGroups)
1.1 $group
#set ($groupdoc = $xwiki.getDocument($group))
#set ($groupMembers =
$util.sort($xwiki.rightsmanager.getAllMembersNamesForGroup($groupdoc.name)))
#foreach ($mem in $groupMembers)
#set ($userdoc = $xwiki.getDocument($mem))
#set ($em = $userdoc.display("email","view",$mem))
$em<br>
#end
#end
/**END xwiki code
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of [Ricardo Rodriguez] Your EPEC Network ICT Team
> Sent: Thursday, December 11, 2008 1:56 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] advice on wiki structure
>
> Hi Graham,
>
> If you are looking for consultancy, I am sure http://xwiki.com is the
> right place to start with.
>
> If you are simply asking if what you are looking for is possible with
> XWiki, I think yes. I think it is worth you take a look to Virtual
> servers
> (http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSetupVirtualWikis)
> and XWiki Enterprise Manager
> (http://manager.xwiki.org/xwiki/bin/view/Main/).
>
> XWiki has a huge number of features, many of them not obvious by now
> for
> a regular user like me, that allow fine grained access control and a
> complete separation between business rules, presentation and data.
>
> I think we need a better understanding of the available tools and a lot
> of imagination to put things together! :-)
>
> Hope this helps,
>
> Ricardo
>
> creegers wrote:
> > I'm currently trying to measure XWIKI against some business
> requirements; our
> > business are basically looking for a simple WIKI that we can use to
> store
> > corporate/enterprise knowledge in a single place and make available
> to the
> > public via our websites and internally to our customer service
> agents.
> >
> > For a little more background to the requirements, the business is a
> > financial institution that provides loan products in different
> countries.
> > Each country currently has their own website (served on different
> domains,
> > with no obvious links to others), customers can apply for financial
> products
> > and administer their accounts through the sites, the terminology used
> to
> > describe the products is the same regardless of the country, however
> the
> > business rules e.g. application process, interest rates is/can be
> different.
> >
> > The business want to expose the content deemed as publicly available
> through
> > a FAQ/WIKI section on each website, however they don't wish other
> countries
> > content to be displayed on that website.
> >
> > Our customer service agents should be able to search the entire WIKI
> when
> > dealing with customers phone enquiries, they also wish there to be
> more
> > internal information available to the agents.
> >
> > I'm struggling to think of a way to achieve this using XWIKI and
> would be
> > grateful of any advice.
> >
> > Thanks in advance
> > Graham
> >
>
> --
> Ricardo RodrÃguez
> Your EPEC Network ICT Team
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users