如题请问如何只显示当前被浏览这发布的内容,比如上传的图片或者其他内容类型的内容,在views中如何设置.
区块中获取被浏览者的uid,很久前就讨论过,有现成的帖子。
这样就可以在区块中传递参数了。
<?phpif (arg(0) == 'node' && is_numeric(arg(1))) {$node=node_load(arg(1));$args[0]=$node->uid;}?>
------ 瞅瞅 店铺网
区块中获取被浏览者
区块中获取被浏览者的uid,很久前就讨论过,有现成的帖子。
这样就可以在区块中传递参数了。
<?phpif (arg(0) == 'node' && is_numeric(arg(1))) {
$node=node_load(arg(1));
$args[0]=$node->uid;
}
?>
------
瞅瞅 店铺网