On Wednesday, July 2, 2014 10:46:21 PM UTC-7, Капылов Данил wrote: > > hello > > How to conclude posts on one page sorted by creation date in separate > blocks. > > Example: unit - Today, the unit - This week, block - Long >
I'm way behind on my reading, thanks to other projects, so I apologize for the late response. On the other hand, I don't understand what is getting asked. Is the context using web2py to view wiki changes, or activity on a webforum (both are included in the web2py examples)? If that is the context, are you trying to group the posts that have happened today into one part of the web page displaying the results of a query, and the ones from the rest of the week in another block? In this case, "block" probably means a DIV. One way to do that would be to use 2 separate queries into the DAL, and return two arrays of ROW objects, displaying one array in one table and the other in another table. Your view would put div tags around each table (some of the helpers will do that for you automatically, I believe). If I'm on the wrong track (or thinking of the wrong application), I'll look for your correction, and meanwhile one of the more experienced advisers (and advisors) here can provide additional comments. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.