<tr>
<td height="26">列表命名规则:</td>
<td> <input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" class="iptxt" />
<img src=http://www.dede58.com/"img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"/></td>
</tr>
在其下面新增以下内容:
1
<tr>
2
3
4
5
6
7
8
<td height="65">栏目图片:</td>
<td>
<input name="typeimg" type="text" style="width:250px" id="typeimg" class="alltxt" value="<?php echo $myrow['typeimg']?>" />
<input type="button" name="set9" value="浏览... "class="coolbg np" style="width:60px" onClick="SelectImages('form1.typeimg&activepath=%2Ftemplets%2Ftypeimg&img=yes');" />
(栏目模板里用{dede:field.typeimg /}调用)
</td>
</tr>
完成!
添加或修改图片时在 栏目管理》高级选项上传即可。
如果想同时在文章内容页调用打开\include\arc.archives.class.php 查找
1
if($this->ChannelUnit->ChannelInfos['issystem']!=-1)
将
1
$query = "Select arc.*,tp.reid,tp.typedir,ch.addtable
2
3
4
5
6
from `dede_archives` arc
left join dede_arctype tp on tp.id=arc.typeid
left join dede_channeltype as ch on arc.channel = ch.id
where arc.id='$aid' ";
$this->Fields = $this->dsql->GetOne($query);
替换为
1
$query = "Select arc.*,tp.reid,tp.typedir,tp.typeimg,ch.addtable
2
3
4
5
6
from `dede_archives` arc
left join dede_arctype tp on tp.id=arc.typeid
left join dede_channeltype as ch on arc.channel = ch.id
where arc.id='$aid' ";
$this->Fields = $this->dsql->GetOne($query);