|
|
|
@ -148,8 +148,29 @@ class Information_model extends CI_Model {
|
|
|
|
|
from infoStructures a inner join infoContents b on a.is_ic_id=b.ic_id
|
|
|
|
|
where is_id in ($path 0) and is_id <> ? and is_siteCode = ? order by is_level asc", array($is_id, $site_code));
|
|
|
|
|
$path_result = $path_query->result();
|
|
|
|
|
$path_list = [];
|
|
|
|
|
|
|
|
|
|
return $path_result;
|
|
|
|
|
foreach ($path_result as $path_row) {
|
|
|
|
|
|
|
|
|
|
$ic_url = $path_row->ic_url;
|
|
|
|
|
$ic_url_title = $path_row->ic_url_title;
|
|
|
|
|
|
|
|
|
|
if ($path_row->ic_id === '278008010') {
|
|
|
|
|
$ic_url = '/inspiration';
|
|
|
|
|
$ic_url_title = 'inspiration title';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$path_array = [
|
|
|
|
|
'ic_id' => $path_row->ic_id,
|
|
|
|
|
'is_id' => $path_row->is_id,
|
|
|
|
|
'ic_title' => $path_row->ic_title,
|
|
|
|
|
'ic_url' => $ic_url,
|
|
|
|
|
'ic_url_title' => $ic_url_title
|
|
|
|
|
];
|
|
|
|
|
$path_list[] = $path_array;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $path_list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//根据路径获取某一级别节点详细页
|
|
|
|
|