greggles

Topics

programming

php drupal scheme scheming macros design patterns da la

design

design css

random thoughts

scribbles

alter ego

other me 'em that link us my space me linked in

Collections

Programmable web
PHP design patterns

Similar things

  • Relation modules
  • Relations Battle Plan II and first results
  • Relations and their domain structures
  • Relations API - query generation and TODO
  • relations update
  • A pause for thought and some cut backs
  • Going mad talking about relations
  • Once again relations, or the need to focus on smaller parts of the big picture. A rant.
  • An initial phase runner for drupal install
  • drpkg and relations svn

guild
Home » blogs » vlado's blog

Relations battle plan

Submitted by vlado on Mon, 2005-10-31 09:37.code | drupal | plan | programming | projects | relations

The battle plan for implementing relations in drupal in no particular order.

  • framework
    • relations hook
    • composition
    • intersection
    • exclusion
    • relation node type
    • integration with listings api of cck fame
  • data model
    • adjacency lists
    • trees
    • term
    • user
  • user interface
    • add relation between two things
    • add to tree
    • query builder
      • composition
      • exclusion
      • intersection
vlado's blog | add new comment
Some remarks
Submitted by Ber (not verified) on Mon, 2005-10-31 11:16.

* relations hooks
* trees: can vauxia help here?
* Term: do we need to bether about taxonomy yet? Should we not ignore that for the time being?

reply
re: remarks
Submitted by vlado on Mon, 2005-10-31 11:40.

hooks - possibly yes, it is a matter of splitting the functionality. I can see the biggest split in execute a relation query and give back the result in a consistent form and get some data to build queries from. Both should be available. The first for speed, the second for extensibility.

trees - vauxia's code will help. I've actually used it, with some extensions, mainly for INSERTs, so we can postpone reindexing.

term - well, it is a good example for a complex relation in Drupal - it is more node->terms->node. What I meant is find related nodes by taking into account which terms they are tagged with.

reply
Home » blogs » vlado's blog

dikini.net

spreading confusion by accident since 1970