Hi,guys
I'm first post here .I got a trouble of cck field,I put this code in my block
><?php
$views = views_get_view("front_pic_show");
$views->preview();
$front_pic_results = $views->result;
print_r($front_pic_results);
foreach($front_pic_results as $key=>$values){
echo "field_data_field_url2_node_entity_type."'/> nid."'>".$values->node_title."
Date Added:".date('m/d/Y',$values->node_created)."
";
}
?
but it's show many code like thisArray ( [0] => stdClass Object ( [node_title] => W1_0c_03 [nid] => 145 [node_created] => 1331026377 [field_data_field_url_node_entity_type] => node [_field_data] => Array ( [nid] => Array ( [entity_type] => node [entity] => stdClass Object ( [vid] => 145 [uid] => 18 [title] => W1_0c_03 [log] => [status] => 1 [comment] => 1 [promote] => 0 [sticky] => 0 [nid] => 145 [type] => screenshot [language] => und [created] => 1331026377 [changed] => 1331026377 [tnid] => 0 [translate] => 0 [revision_timestamp] => 1331026377 [revision_uid] => 18 [field_picture_category] => Array ( [und] => Array ( [0] => Array ( [value] => 5 ) ) ) [field_url] => Array ( [und] => Array ( [0] => Array ( [value] => http://img.kuutown.com/d3/maido/pic/screenshots/Wizard/W1_0c_03.jpg [format] => [safe_value] => http://img.kuutown.com/d3/maido/pic/screenshots/Wizard/W1_0c_03.jpg ) ) )
.I want to get this valuehttp://img.kuutown.com/d3/maido/pic/screenshots/Wizard/W1_0c_03.jpg
,how can i do?
Comments
Comment #1
lindalai CreditAttribution: lindalai commentedsorry,got some mistakes,the php code is like this
Comment #2
salientknight CreditAttribution: salientknight commentedHave you tried the CCK Block module?
Comment #3
salientknight CreditAttribution: salientknight commentedHave you tried the CCK block module?