Closed (fixed)
Project:
Cooliris (PicLens formerly)
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Jun 2008 at 11:52 UTC
Updated:
12 Jul 2008 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedHi Telega,
Good remarks, I've changed the title of this issue and created another issue for the pagination, that's indeed something I'll have to implement! I'm not sure if I'll get it working for teasers, but I'll certainly look into it.
Comment #2
telega commentedHi
I have implemented PicLens teasers support for my project. I'm attaching the code, if you like to see it.
Two notes about the code:
1. Optimization: my code uses node_load() to load nodes with fields. Probably this can be skipped for table/list views and your approach used.
2. I added code to display site logo in PicLens:
I guess this code can be moved into main piclens.module file so that it's common for all mediaRSS feeds.
Regards,
telega
Comment #3
swentel commentedFunny, I was looking right now on how to implement this, I'll look at your code right away, thanks!
Comment #4
telega commentedCorrection: line
$output .= '<atom:link rel="previous" href="'.url($_GET['q'], 'page='.($page-1)).'"/>';should be
if (page > 0) $output .= '<atom:link rel="previous" href="'.url($_GET['q'], 'page='.($page-1)).'"/>';Or otherwise sql exception is generated.
Comment #5
swentel commentedSupport for teasers add to drupal 5 branch - it's a slightly different approach than yours, but got good inspiration from it though. Thank for the code! Pagination is also on it's way.