hi!
most keszitem elso drupal oldalamat: www.treehugger.hu
nem mukodik ez a PHP snippet, amit a drupal.org-rol szedtem le:
/**
* This php snippet displays content of a specified type, with teasers
*
* To change the type of content listed, change the $content_type.
*
* Works with drupal 4.6
*/
$content_type = 'booklist';
$result1 = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = '$content_type' AND n.status = 1 ORDER BY n.created ASC"));
while ($node = db_fetch_object($result1)) {
$output .= node_view(node_load(array('nid' => $node->nid)), 1);
/* $output .= theme('pager', NULL, $listlength); */
}
print $output;
annyit valtoztattam rajta, hogy a leiras szerint kicsereltem a $content_type = 'story';-t $content_type = 'booklist';-re. story-val mukodik a snippet, de booklist-al nem! egyszeruen semmit nem ir ki az oldalra, pedig van egy csommo booklist letrehozva mar. a booklist content type-ot letrehoztam (nehany szovegmezo van benne 12 kedvenc konyv megadasahoz), a letrehozott booklist tipusu tartalmakat listazni tudom az adminisztracios feluletben, megnezni kulon oldalon, etc.
mi lehet a gond?
koszi,
Fórum:

OK
megvan a gond: "booklist" helyett "flexinode-2"-t kell irni, tehat nem a content type neve kell, amit a flexinode letrehozasanal megadsz neki!