-
Notifications
You must be signed in to change notification settings - Fork 51
Code selects
Tell us your code select stories: Matt Rolf asks “Who out there has used code select and what are you using it for? How do you like it? Share your stories!”
Jul 7, 2008, 2:38 PM
Re: Tell us your code select stories [In reply to]
I love code selects!
The simplest thing I’ve used them for is building quick lists, like
5,10,15,20,…,100 or letters from A-Z.
I think Bret has mentioned this before on the list, but Sportsnet’s
bricolage installation uses code selects extensively, mostly with the
“story-aware code select” patch that went into 1.10.4.
For example, a code select will detect the story’s category (hockey,
baseball, basketball, etc.) and then show a list of teams for that
sport. This way, a single “team associator” code select element can be
used, rather than having separate elements for each sport and relying
on the web team to pick the right element to add.
In a more complicated use, we also use a code select that displays a
list of stories in the same category (using Story::list()) to allow
stories to be inserted and shuffled around a “top stories” listing.
Same deal goes with the code select knowing what category to look in.
On 7-Jul-08, at 4:59 PM, Matt Rolf wrote:
> Who out there has used code select and what are you using it for?
> How do you like it? Share your stories!
>
> -Matt
Greg Heo
— Bric.PhillipSmith – 09 Jul 2008