{
    分享网正式开通,我们为大家提供免费资源,欢迎大家踊跃投稿!

灵动标签调用附件真实地址

帝国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']?> 附件原名


资源均来自第三方,谨慎下载,前往第三方网站下载


米微资源分享网 , 版权所有丨本站资源仅限于学习研究,严禁从事商业或者非法活动!丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:灵动标签调用附件真实地址
喜欢 ()分享 (0)