INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Smartlist Question  (Read 998 times)

wig

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 750
Smartlist Question
« on: January 23, 2006, 11:02:25 am »

I'm having trouble creating a smartlist which will give me the results I want. I've created a custom extended category called Exercise, which contains the values Yes, No ,Best, and Maybe. Most of the entries are yes, but I want a smartlist that gives me a good mix of Yes, Best and Maybe results. How can I make this work?

Right now I have ~n=20 ~sort=[Random] [Exercise]=[ Best],[ Maybe],[Yes] ~limit=-1,10,[Exercise] but this just halts the Yes entries at 10 without ensuring that the rest of the list gets filled up with Best and Maybe entries. Thanks for any help.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Smartlist Question
« Reply #1 on: January 23, 2006, 12:43:34 pm »

I don't have time to work out a string for you right now, but you want to build your search around the ~mix rule.

MC 11: New Mix Smartlist Rule

you'll be wanting something like:

~mix=20,10,{[exercise]=yes},5,{[exercise]=maybe},5,{[exercise]=best} ~sort=random

wig

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Smartlist Question
« Reply #2 on: January 23, 2006, 02:39:07 pm »

That was a great suggestion. Here's what I came up with

~mix=20,25%,{[Exercise]=Best},50%,{[Exercise]=Yes},25%,{[Exercise]=Maybe}


It's already randomly sorted, I assume that's a feature of the mix selection.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Smartlist Question
« Reply #3 on: January 23, 2006, 03:24:40 pm »

yup. good stuff. you all happy now?
Pages: [1]   Go Up