详情页

Zblog文章页添加自定义字段,如何在include.php新建字段?

时间:2022年05月01日

编辑:佚名

zblog主题tx_fzy在include.php新建字段下载地址down_url,以及编辑页写入数据库的字段,
Add_Filter_Plugin('Filter_Plugin_Edit_Response','themename_down_url');
//网站下载地址 down_url
function themename_down_url(){
    global $zbp,$article;
    if(!$article->Metas->down_url){
$article->Metas->down_url= '';
}
echo '<br><br><label for="meta_alink" class="editinputname">下载地址</label> <input type="text" name="meta_down_url" value="'.htmlspecialchars($article->Metas->down_url).'" placeholder="请填写下载地址" style="width:75%" >';
}
附:最近在用模板template下的文件
comment.php
commentpost.php
comments.php
compagebar.php
footer.php
header.php
index.php
module.php
pagebar.php
post-istop.php
post-multi.php
post-page.php
post-single.php
single.php
index-list.php 首页文章列表
post-multi.php 分类文章列表
index-s.php txcms修改
post-single.php 单页
相关文章
猜你需要