Return to Jive Software

Skip navigation
2,778 Views 11 Replies Last post: Jan 21, 2009 2:50 PM by long.tonthat RSS
jcrump Beginner 395 posts since
Nov 27, 2006
Currently Being Moderated

Oct 16, 2008 11:40 AM

Feature Request: List View for Browsing People in Clearspace (2.5.x)

Hi, We're working with Clearspace 2.5.2.

 

This is a feature request for a list view option when browsing People. The "photo" view in 2.5.2 is great if you have photos uploaded, but we'd like users to be able to choose for themselves whether they want to see their results this way, or in a list view.

 

people.jpg

 

The list view (below taken from 1.10.8) provides easy access to key information that people need: username, email address, ability to show profile details. I would argue that the photo view is not intuitive if you are looking for this information (there's no indication that hovering over the avatar will show the email address; plus username isn't shown).

people110.jpg

 

This view is still available in 2.5.x when using the "Pick Users" tool; we'd like to see it as an option in the People area as well. For example, we're all used to Windows giving us the option of a list view or icons for our files. It would be great to have the same type of thing in Clearspace (and it would be fairly intuitive). It should also be very easy to set the default, without altering the .ftl templates.

 

Thanks again!

Jeff

long.tonthat Jive Employee 12,610 posts since
Apr 1, 2008
Currently Being Moderated
Oct 16, 2008 2:46 PM in response to: Jeff Crump
Re: Feature Request: List View for Browsing People in Clearspace (2.5.x)

Jeff, thanks so much for the description and images, they helped a great deal in explaining feature request. I went ahead and filed a feature request for this: CS-9474

 

I am 100% on board with this request, look forward to seeing it in a future release of Clearspace Thanks, let me know if there's anything else I can add to this ticket,

~Long

dky Novice 25 posts since
Sep 25, 2008
Currently Being Moderated
Nov 4, 2008 4:28 PM in response to: Long Ton That
Re: Feature Request: List View for Browsing People in Clearspace (2.5.x)

I'll add my support for a view like this - it'd help a lot!!!

 

In addition - it would be great if this new view could be customized - so that we could choose what fields are shown in the list -- and also so that we could sort the list based on those fields.

 

Alternatively - how hard would it be for me to write a new view? It seems that the people page already has the idea of different filters/views... how would I go about defining a new one?

dakwissen Novice 247 posts since
Jun 16, 2008
Currently Being Moderated
Nov 13, 2008 12:01 AM in response to: Long Ton That
List view

As we will have 1000 of users I like the list view as well. It' s a request inside our company. Christian

dky Novice 25 posts since
Sep 25, 2008
Currently Being Moderated
Jan 16, 2009 5:12 PM in response to: dakwissen
Re: List view

I started looking at the /template/global/people.ftl file, and some of the CSS code that defines how people are displayed - and I'm thinking that it may be possible to hack the CSS and .ftl to get a list-view that's reasonably good. It won't have any bells and whistles, but whatever.

 

The main questions I have are:

- how can i adjust the number of items that are displayed in the result. This seems to be something to do with Paginator -- but I'm not sure how to change it.

- how can I set the default sort to be by first name (or last name) -- rather than date joined?

 

Thanks,

 

david,

 

(using clearspace 2.5.3)

long.tonthat Jive Employee 12,610 posts since
Apr 1, 2008
Currently Being Moderated
Jan 19, 2009 2:10 PM in response to: David Young
Re: List view

David,

You'll want to take a look at the PeopleAction.java, which is the action that the people.ftl is mapped to.

 

- how can i adjust the number of items that are displayed in the result. This seems to be something to do with Paginator -- but I'm not sure how to change it.

Set the following system property: people.search.pagesize = XX, where XX is an the number of people displayed per page (default is 12).

 

- how can I set the default sort to be by first name (or last name) -- rather than date joined?

Looks like the following system property controls the default view: people.search.view.default = YYYY, where Y is the various types of sort (alphabetical, newest (default), status, etc)

 

~Long

dky Novice 25 posts since
Sep 25, 2008
Currently Being Moderated
Jan 20, 2009 4:07 PM in response to: Long Ton That
Re: List view

Fantastic - the people.search.pagesize property worked great!

 

I'm not getting people.search.view.default to work. Where can I find the PeopleAction.java file to learn about this (or other) property -- and see the values I can set it to?

 

david,

long.tonthat Jive Employee 12,610 posts since
Apr 1, 2008
Currently Being Moderated
Jan 20, 2009 4:11 PM in response to: David Young
Re: List view

David,

If you have the Clearspace source, the PeopleAction.java class can be found in: com.jivesoftware.community.action

~Long

dky Novice 25 posts since
Sep 25, 2008
Currently Being Moderated
Jan 21, 2009 10:41 AM in response to: Long Ton That
Re: List view

I don't think we have the source... not totally sure. What would be the path on the server for the java file?

Sorry if this is becoming more of a tutorial-style question than I intended...

I'm not a Java programmer -- but was hoping that by looking at the Java code I could find the exact valuesI can set the people.search.view.default variable.

 

david,

long.tonthat Jive Employee 12,610 posts since
Apr 1, 2008
Currently Being Moderated
Jan 21, 2009 11:33 AM in response to: David Young
Re: List view

Hey David,

No problem, these are valid questions.

 

Unfortunately the source files aren't on the server, they're compiled Java files that you won't be able to extract info from. You'll need to download the source build @ jivesoftware.com > my accounts > purchases to access the source code.

 

Regarding the people.search.view.default values, these are the ones defined in this class:

    public static final String VIEW_ALPHA = "alphabetical";
    public static final String VIEW_NEWEST = "newest";
    public static final String VIEW_STATUS = "status";
    public static final String VIEW_ONLINE = "online";
    public static final String VIEW_SEARCH = "search";

These were recently introduced, so it's possible that they aren't working as intended. Let me know if you're seeing a behavior that you believe is wrong.

~Long

dky Novice 25 posts since
Sep 25, 2008
Currently Being Moderated
Jan 21, 2009 12:14 PM in response to: Long Ton That
Re: List view

Setting the property does yield some results...

 

   newest: sets the sort menu to "date joined"
   online: adds a filter for "online" and hides the sort menu.
but...

   alphabetical: sets the sort menu to "relevance"

So - some sort-of work, others don't...

 

I'm using an older version of Clearspace... 2.5.2... so maybe this has been updated in later versions?

long.tonthat Jive Employee 12,610 posts since
Apr 1, 2008
Currently Being Moderated
Jan 21, 2009 2:50 PM in response to: David Young
Re: List view

David,

You're correct, doesn't look like setting it to "alphabetical" (Default sort by: name) is behaving incorrectly. I went ahead and filed a bug report and resolved the issue: CS-11123, it's needs to be reviewed and tested ... but it's currently scheduled to be fixed in 2.5.8.

 

Hope this clears things up,

~Long

More Like This

  • Retrieving data ...

Bookmarked By (0)

Case Product Issues

Loading Jira issues

Loading related product issues for this case
To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.