[support] Views Sorting Trouble

Ryan LeTulle bayousoft at gmail.com
Wed Aug 11 16:17:32 UTC 2010


Michelle, u r a genius :)

thx

This is a nice little tut to do it a different way using a views attachment
as well:
http://drupaleasy.com/blogs/ultimike/2009/07/using-views-relationships-arguments-attachments

</ryan>


On Wed, Aug 11, 2010 at 11:08 AM, Michelle Ziegmann <
michelle at media.berkeley.edu> wrote:

> Ryan,
>
> I believe the answer is that you first need to add a relationship to
> Academic Division, which will make the node title of the division node
> available for sorting.  To do this:
> 1. Add relationship, choose the CCK field for the nodereference to the
> Academic Division
> 2. Add a sort criteria of Node Title, and choose the relationship you
> just created in the settings for this.
> 3. Re-order sort criteria so that Node Title with the relationship is
> first, followed by Node Title with no relationship.
>
> Hope that helps!
>
> Michelle
>
> On 8/10/2010 3:51 PM, Ryan LeTulle wrote:
> > I have a content type called Academic Program with a node reference
> > field to another content type called Academic Division.
> >
> > I am working on a view to display the info as such:
> >
> > Academic Division 1
> >   Academic Program 1
> >   Academic Program 2
> >
> > Academic Division 2
> >   Academic Program 3
> >   Academic Program 4
> >
> > Everything is cool except I am having trouble sorting the Academic
> > Division grouping.  It sorts the programs fine beneath the divisions.
> > I am using an HTML list style with Academic Division set as the
> > grouping.  Academic Program is the node title.  If I use it as the
> > sort the order changes but it is not correct.  Academic Division is
> > not available in the sort list.
> >
> > Can this be done from the admin interface?
> >
> > </ryan>
>
> --
> Michelle Ziegmann
> ===========================
> Electronic Communications Specialist
> University of California Berkeley
> Educational Technology Services
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100811/81fd0bf1/attachment.html 


More information about the support mailing list