给phpcms v9专题添加一个radio单选按钮,可以多次利用专题创建不同的栏目进行内容编辑,给专题添加一个自定义字段
1、
2、
找到 phpcms\modules\special\templates中的special_add.tpl.php和special_edit.tpl.php文件
special_add.tpl.php中添加
special_edit.tpl.php
3、在数据库表`phpcms_special`中添加type2字段
4、模版调用
专题模版首页
{loop $types $t}
{if $t['name'] == "简介"}
{pc:special action="content_list" specialid="$id" typeid="$t[typeid]" listorder="3" num="999"}
{loop $data $r}
{$r['title']}
{$r['description']}...
>>更多
{/loop}
{/pc}{/if}
{/loop}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn