帝國CMS內(nèi)容頁如何調(diào)取編輯器上傳的附件真實(shí)地址了?
網(wǎng)上收集靈動標(biāo)簽的調(diào)用附件方法代碼
[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]
改進(jìn)優(yōu)化后的靈動標(biāo)簽的調(diào)用附件方法代碼
[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]?>網(wǎng)站根目錄
<?=$class_r[$GLOBALS[navclassid]][classpath]?> 欄目鏈接
<?=date("Y-m-d",$navinfor[newstime])?> 或 <?=$navinfor[newspath]?> 文章存放的日前目錄
<?=$bqr['filename']?> 代碼名--附件名
<?=$bqr['no']?> 附件原名
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 靈動標(biāo)簽調(diào)用附件真實(shí)地址