By seehui on
I am currently using Views module to show a list of all users in a page. I want to have a alphabetical pager on the top of the page, so that it will look like this: A(2) | B(0)| C(2)|.....Z(3)
I noticed that in Views module, the "Glossary" has exactly the alphabetical pager that I want, but it is for nodes. I don't know how to change it to fit with user listing.
I found "User List" module, which has the alphabetical pager, but does not provide information such as email, status, role and date created . That's why i came to View.
Any idea how to do it? Perhaps some small coding to put on the header to show the alphabetical pager?
Edited by WorldFallz - moved to appropriate forum.
Comments
Or any modules that can
Or any modules that can achieve this?
I believe you can add a
I believe you can add a 'sort' condition into your view (I rarely use views, so I'm not 100% sure of that). Choose to sort by name ascending, and it should output in the order you want.
Contact me to contract me for D7 -> D10/11 migrations.
Yes, it can sort by ascending
Yes, it can sort by ascending or descending order. But the extra feature I want is to show a small alphabetical pager, like A(2) | B(0).... indicate how many user's ID start with alphabet A and when i click on A(2), the two user with ID start with A will appear.
I know this is something extra, but it makes searching easier when there are hundreds of user in the list. Thanks for the advice.
Ahh, I see what you
Ahh, I see what you mean.
Sorry, I have no help for you there. I've not seen any modules that could do this - I'd end up just doing it in a custom module.
Contact me to contract me for D7 -> D10/11 migrations.
It's okay. Anyway, thanks for
It's okay. Anyway, thanks for your help.
Try
the glossary view that comes with Views
Yes, but that one is for
Yes, but that one is for content of the website only. I want to apply it to user list. Any way to do it?
Cant
remember the steps exactly, but if you look how the default glossary view is constructed you should be able to apply it to the user list.
Or...
....Try this http://drupal.org/node/621718
I tried but fails. sigh....
I tried but fails. sigh.... Seems like I found a tough question for myself.
Late but want to give answer...
Hello,
A very late answer, (I am searching for another answer), but since it doesnt seem to be answered I might aswell give my 5 cents worth...
To get the A (1) | B (3) | C (2)... list at the top of the Viewspage you add an Attachment. Then you take the Username as argument, Choose: summary ascending order, check the box "use as wordlist" (or something I have a swedish version so I dont know what the english version says...) and just choose 1 for how many characters to use.
This should work, try it if you havent already found the answer to your question...