ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Orderby using FF Matrix Custom Field

May 21, 2010 1:15pm

Subscribe [2]
  • #1 / May 21, 2010 1:15pm

    Janet Beckley

    15 posts

    I’m trying to numerically sort a group of entries using a custom field (course_number) set up in FF Matrix 1.3.5. The results are interesting. Instead of one group listed numerically, my sort breaks up into two groups:

      Group One: PBIO 4600 / 6600 - PBIO 8010 followed by
      Group Two: PBIO 1220L - PBIO 9300

    {exp:weblog:entries weblog="courses" category="{embed:my_cat}" show_future_entries="yes" show_expired="yes" dynamic="off" orderby="course_number" sort="asc"}

    Shouldn’t this work? Am I missing something?

    Jan

  • #2 / May 21, 2010 1:38pm

    Boyink!

    5011 posts

    No can do.

    To the weblog:entries tag the content in your FFM is all in one serialized field.  It can’t “see” one column to use as a sort parameter.

    In effect you are trying to sort an outer loop by a value only available inside an inner loop.  You can sort by course number within one weblog entry’s matrix rows, but not the entries themselves.

  • #3 / May 21, 2010 1:50pm

    Janet Beckley

    15 posts

    I was worried about that - I thought I read something to that effect. Thanks Michael and thanks for all the work you put in to create your EE tutorial book and websites. Both were my go-to references when I first started using EE.

  • #4 / May 21, 2010 1:52pm

    Boyink!

    5011 posts

    My pleasure!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases