AlphaGroup! A View to group nodes by A|B|C in one page etc
dman - January 14, 2008 - 15:21
| Project: | Views 'Group-By' Pack |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
............
-A-
Apple
Avocado
-B-
Banana
-C-
Cherry
Cucumber
............
This provides 'Group by Alpha - List' and 'Group by Alpha - Teaser' view
options.
It adds an [A|B|C...] anchor list to the top of the page to skip to results.
As usual, it took me two hours of looking and testing code before I found this cool little module, and used the code as an example to build on.
So here's feeding back!
The code probably needs a few more options and configurations built in for different folks requirements, and some more theming love, but "release early" etc.
Are you interested in adding this function to the fold?
.dan.

| Attachment | Size |
|---|---|
| grouped_view_after.gif | 6.6 KB |

#1
hm? Looks like the actual module attachment didn't stick when I posted... Here it is.
#2
ping
#3
This module is exactly what I have been looking for - kudos... hope you can get it added to the views group by module soon!
#4
Awesome work, this is a huge help to me.
One issue I've found. I have i18n enabled and 2 languages on the site (English/Spanish) and if the indexed field has spanish accented characters, it moves to the top.
For example, T gets put above A because of characters (i.e. Trincado y destrincado de Tuberías) in the field. I verified this by filtering the view to show only English nodes and it worked A-Z as it should.
#5
My bad, it was because a node's title had a space in front of its first character (T). Fixing that fixed the issue.