This most likely will be postponed, but I want to submit it for anyone willing to improve Views integration. This is based on my experience of working with Views. If anyone has more ideas, feel free to share!
- Don't declare table joins in hook_views_data(). These are "hidden" JOINs, which happen automatically which means user does't control it. This leads to ugly workarounds such as setting "gallery id > 0" filter to emulate INNER JOIN. Note that it's possible to set up INNER JOIN in the table declaration, but it then removes possibility of using LEFT JOIN
- Use relationships where possible. Relationships provide user-controlled joins. In example above, user could just check "require this relationship".
- Views relationships also can have UI to select their settings, which means it's possible to support Node Gallery relationships better
Comments
Comment #0.0
crea commentedAdded 1 more point
Comment #0.1
crea commentedupdate
Comment #1
zengenuity commentedAt this point, I won't be adding new features to the D6 version. If features are wanted for D7, please post a new issue.
Comment #1.0
zengenuity commentedtypo fix