content types

mgparisi's picture

New Approach to Content Types.

I have been writing up a white paper on how Drupal could work, but wanted to submit an initial and important first step. I know allot of people see comments as nodes being a major issue. Many want it, while others site potential problems with performance. Without comments as Nodes we have no code uniformity making any CCK features and Views features needing exceptions based on if its a node or if its a comment.

6 comments · Read more
dragonwize's picture

Help shape a Content Types and Views book

I am currently in the very beginning stages of writing a book on Drupal Content Types that will focus on Core, CCK, and Views. I have a first draft of the outline that I am working on. I would love to get community feedback to help shape the book at this very early stage.

http://alanio.net/blog/2009/02/first-draft-drupal-book-outline-content-t...

Thank you,
Alan

1 comment
KingMoore's picture

Fetching CCK nodes spanning multiple Content Types

CCK: 6.x-2.1
Drupal: 6.8

I am working on a module that needs to fetch sets of nodes based on various criteria (I don't think the criteria isn overly important for this discussion). The content nodes may span all content types installed on the site. I need to fetch a list of all the nodes matching my requirements and all of their fields/content.

I need this basic functionality:

$result = db_query('SELECT * FROM {node} WHERE #my conditions are met#');
while($row = db_fetch_object($result)){
 
  $node = node_load($row->nid);

  ... do stuff ...

}

1 comment · Read more
Syndicate content