[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Sorting Options
Quoting Cameron (lists@cameroncorda.com):
> Mike Heins wrote:
>
> >Quoting Mike Heins (mike@valuemedia.com):
> >
> >
> >>That is actually a deficiency in the code. Matrix options sort by the
> >>o_sort field (or whatever MV_OPTION_TABLE_MAP defines that to be). That
> >>should also be done for simple options if the field is present, I think.
> >>
> >>Certainly it should be done with an option.
> >>
> >>I will put this in the todo list.
> >>
> >>
> >
> >I have this in the DEVEL branch of CVS -- you can pass a sort=1 to
> >get them sorted. I don't know whether I will put it in stable...
> >probably so but I have to think about it.
> >
> >
> >
>
> Mike,
> I added the line sort=1, to my results page, but the options still do
> not appear as intended. Do I also need to make a change to Interchange
> somewhere.
As I thought I said, I added it to the DEVEL branch of CVS. Unless you
get that you don't have the code. The patch is not that trivial as
to pass it here -- I made a fair number of other changes at the same
time.
If you want to fake it for a while, you can find the tag_options
subroutine of Vend::Interpolate and add an "ORDER BY o_sort" to
the query there.
> FYI, here is the code I use:
>
> [if-item-data !options o_modular]
>
> [table-organize
> cols=2
> table='width="150"'
> td.0='align="right"'
> td.1='align="left"'
> ]
> [item-options td=1 tr=1 label=1 price=1 sort=1]
> [/table-organize]
>
> -Cameron
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike@perusion.com>
Prove you aren't stupid. Say NO to Passport.