1
$MrNode = node_load(array("nid" => 679));
$teaser_content = truncate_utf8(strip_tags($MrNode->teaser),400,true,true);
print $teaser_content;
上面是我用來加載drupal節點並顯示一定數量的字符的php代碼,但它似乎沒有工作...可以有人請在這件事上給予我幫助?非常感謝!drupal node_load和teaser問題
非常感謝...我正在使用drupal 6 ...終於有效,問題是沒有爲特定節點定義任何傳情,所以無法打印任何...: ) – 2011-06-06 08:08:49
是的,我遇到過這種情況。很高興它解決了:)。 – 2011-06-06 08:11:55