List Info

Thread: RE: List of events and element groups




RE: List of events and element groups
user name
2008-03-20 12:59:13
>> In my opinion, no, although it would make
retrieving lists of events

>> in a sorted order slightly easier for your template
developers, but  
>> it's really not that hard to retrieve a list of all
events, then  
>> sort them in your template.  Perhaps there is
already a Bric-API  
>> feature for sorting stories based on a custom
field?  I'm not sure.

>Is it not possible to have the database sort them?

Probably, but I believe one would have to understand the
Bric database
schema to do that -- as opposed to just using the
out-of-the-box Bric
APIs -- unless there's a feature for selecting a subelement
field to
sort on that I'm not aware of.

For the NGA, I'm using database sorting, but my hacked
system uses a
separate db table for caching the schedules of all events...
probably a
lot more work than Phillip is trying to take on at this
point.
Definitely more work than sorting inside the templates.
 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )