我知道头衔,我希望从标题中删除,我尝试了两种方式,但并未适当开展工作。
1 P-4, 1 P-3, 1 FS, 1 NS
$title = arg(2); // get node title from the url
$node = node_load(array( title => $title));
$nid = $node->nid;
print $nid;
错误说: Can only flip STRING and INTEERT Value! in DrupalDefaultEntityController->load(
,Trying to have property of non-object
2)
$items = entity_load( node , FALSE, array(
type => article ,
title => arg(2),
));
但是,我应该做些什么?