[xwiki-devs] User Directory - Organogram
It is possible to use the XWikiUserClass for an organogram? Example <http://blog.i-love-it.be/useruploads/18/images/organogram_5bi.png> I would love to make an organogram, and populate it with the profile picture and other info (department, phone number, ect) This way, new people in our organisation can just look at the organogram to see who is who! :-) -- View this message in context: http://xwiki.475771.n2.nabble.com/User-Directory-Organogram-tp7584711.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On 04/16/2013 05:03 AM, Hamster wrote:
It is possible to use the XWikiUserClass for an organogram?
Example <http://blog.i-love-it.be/useruploads/18/images/organogram_5bi.png>
I would love to make an organogram, and populate it with the profile picture and other info (department, phone number, ect)
This way, new people in our organisation can just look at the organogram to see who is who! :-)
Yes, it is (but you have to code the UI yourself). You can add a new field to the XWikiUsers class, let's say "department", and you can then use that field to put users in their right department, and later put them in the right column based on the value stored there. -- Sergiu Dumitriu http://purl.org/net/sergiu
Hi Sergui, I have added two new properties (Department and Position), and have made those properties visible/editable on the user profile page (I had to search a bit). As a quick win, I also added those two new properties to the Live Table of the UserDirectory. Now I want to remove the "User ID" column (this column is not necessary, as clicking on the profile picture will take you to the profile page of that user). But I can't remove that column! (Not by the GUI) Any clue on how I can remove the "User ID" column? (XWiki 4.3) -- View this message in context: http://xwiki.475771.n2.nabble.com/User-Directory-Organogram-tp7584711p758472... Sent from the XWiki- Dev mailing list archive at Nabble.com.
-bump- -- View this message in context: http://xwiki.475771.n2.nabble.com/User-Directory-Organogram-tp7584711p758477... Sent from the XWiki- Dev mailing list archive at Nabble.com.
-BUMP- Besides the other two problems, I have also noticed that my modified view of the User Directory is only visible to myself. Other users are still seeing the default UserDirectory. I want to change the appearance (add two more columns, remove the UserID column) of the UserDirectory which ALL users can see! But how? -- View this message in context: http://xwiki.475771.n2.nabble.com/User-Directory-Organogram-tp7584711p758513... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi, On May 16, 2013, at 3:42 PM, Hamster <[email protected]> wrote:
-BUMP-
Besides the other two problems, I have also noticed that my modified view of the User Directory is only visible to myself. Other users are still seeing the default UserDirectory.
I want to change the appearance (add two more columns, remove the UserID column) of the UserDirectory which ALL users can see!
But how?
Indeed, see http://jira.xwiki.org/browse/XE-1137 Right now you'll need to edit the User directory page and make changes there. Thanks -Vincent
Aha! I have modified the Velocity code on the UserDirectory: To remove the "User ID" columns I have changed: #set ($columns = ['_avatar', 'doc.fullName']) to #set ($columns = ['_avatar']) To add the other default columns, I have changed: #set ($defaultColumns = ['first_name', 'last_name']) to #set ($defaultColumns = ['first_name', 'last_name', 'company', 'department', 'position', 'phone']) I hope this helps for others who might want to modify the UserDirectory -- View this message in context: http://xwiki.475771.n2.nabble.com/User-Directory-Organogram-tp7584711p758514... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (3)
-
Hamster -
Sergiu Dumitriu -
Vincent Massol