# 帝国cms内容页调用直接下载地址教程

*Published:* 2023-12-17
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年12月17日，已超过 180天没有更新



开启直接下载：后台--系统--系统设置--系统参数设置--模型设置--最下面的“开启直接下载”勾选“是”

```
<a class="meihua_btn" href="[!--news.url--]e/DownSys/DownSoft/?classid=[!--classid--]&id=[!--id--]&pathid=<?=$pathi?>"><?=$fr[0]?></a>
```

更换为：（即：DownSoft 更换为 GetDown）

```
<a class="meihua_btn" href="[!--news.url--]e/DownSys/GetDown/?classid=[!--classid--]&id=[!--id--]&pathid=<?=$pathi?>"><?=$fr[0]?></a>
```

```
<?php
$rr=explode(egetzy('rn'),$navinfor[downpath]);
$rcount=count($rr);
for($pathi=0;$pathi<$rcount;$pathi++)
{
$fr=explode('::::::',$rr[$pathi]);
?>
    <a class="short-btn download" href="[!--news.url--]e/DownSys/DownSoft/?classid=[!--classid--]&id=[!--id--]&pathid=<?=$pathi?>" rel="external nofollow"  target="_blank"><?=$fr[0]?></a>
<?php
}
?>
```