i will create a custom page for list teasers, how i have much terms in my nodes, i need remove it from teasers..
look:
function article_menu() {
$items = array();
$items['articles'] = array(
'title' => t('Articles'),
'page callback' => 'artigo_main',
'access callback' => true,
'access arguments' => true,
'type' => MENU_LOCAL_TASK,
);
return $items;
}
function article_main(){
drupal_set_title(t('Articles'));
$has_article = false;
$result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} n WHERE n.type = 'article' AND n.status = 1 ORDER BY n.created"), variable_get('default_nodes_main', 10), 0, NULL);
while($t = db_fetch_object($result)) {
$n = node_load(array('nid' => $t->nid));
### remove all terms from teaser for list
$n->taxonomy = array();
$output .= node_view($n, true, false, true);
$has_article = true;
}
if( $has_article ){
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
}else{
$output .= t("You have not created any article entries.");
}
return $output;
}
this example list nodes of article and remove the terms of teasers...
goood bye..