帝國CMS內容頁如何調取編輯器上傳的附件真實地址了?
網上收集靈動標簽的調用附件方法代碼[e:loop={
"select * from phome_enewsfile_1 where classid='$navinfor[classid]' and id='$navinfor[id]' order by id desc"
,0,24,0,
''
,
''
}]
<a href=
"<?=$public_r[newsurl]?>d/file/<?=$class_r[$GLOBALS[navclassid]][classpath]?>/<?=$navinfor[newspath]?>/<?=$bqr['filename']?>"
><?=
$bqr
[
'no'
]?></a>
[/e:loop]
改進優化后的靈動標簽的調用附件方法代碼[e:loop={
"select * from phome_enewsfile_1 where classid='$navinfor[classid]' and id='$navinfor[id]' order by id desc"
,0,24,0,
''
,
''
}]
<?=
$public_r
[newsurl]?>d/file/p/<?=
date
(
"Y"
,
$navinfor
[newstime])?>/<?=
date
(
"m-d"
,
$navinfor
[newstime])?>/<?=
$bqr
[
'filename']?>[/e:loop]
<?=$public_r[newsurl]?>網站根目錄
<?=$class_r[$GLOBALS[navclassid]][classpath]?> 欄目鏈接
<?=date("Y-m-d",$navinfor[newstime])?> 或 <?=$navinfor[newspath]?> 文章存放的日前目錄
<?=$bqr['filename']?> 代碼名--附件名
<?=$bqr['no']?> 附件原名
新聞熱點
疑難解答