![织梦栏目添加 [英文名称] [栏目大图] [栏目小图] 功能(图1) 织梦栏目添加 [英文名称] [栏目大图] [栏目小图] 功能(图1)](https://www.sucai51.cn/uploads/allimg/200915/16195915K-0.png) 
 
ALTER TABLE `dede_arctype` ADD `enname` CHAR( 255 ) NOT NULL DEFAULT '';
ALTER TABLE `dede_arctype` ADD `litpic` CHAR( 255 ) NOT NULL DEFAULT '';
ALTER TABLE `dede_arctype` ADD `litimg` CHAR( 255 ) NOT NULL DEFAULT '';如图
	![织梦栏目添加 [英文名称] [栏目大图] [栏目小图] 功能(图2) 织梦栏目添加 [英文名称] [栏目大图] [栏目小图] 功能(图2)](https://www.sucai51.cn/uploads/allimg/200915/1619596120-2.png) 
 
链接: https://pan.baidu.com/s/1d-sqOE3Shdv7cZUfiniiAQ 提取码: 75ca
如果不想直接覆盖文件或者你的文件是修改过的话,参考最下面的 第六、七、八步 修改方法来
如果上传图片失败一般是浏览器缓存引起,可以试试换个浏览器试试
{dede:channelartlist row=7 typeid=top}
英文名称:{dede:field.enname/}
栏目大图:{dede:field.litpic/}
栏目小图:{dede:field.litimg/}
{/dede:channelartlist}{dede:channel row=7 type=top}
英文名称:[field:enname/]
栏目大图:[field:litpic/]
栏目小图:[field:litimg/]
{/dede:channel}{dede:type typeid=1}
英文名称:[field:enname/]
栏目大图:[field:litpic/]
栏目小图:[field:litimg/]
{/dede:type}6.1、先参考这个教程添加个自定义方法
https://www.dedehtml.com/notes/get-type-infos.html
6.2、顶级栏目英文名称
{dede:field.typeid function=getToptype(@me,enname)/}{dede:field.typeid function=getToptype(@me,litpic)/}{dede:field.typeid function=getToptype(@me,litimg)/}
	
	
以下是自己自由修改的方式,根据自己的情况来
文件下载
链接: https://pan.baidu.com/s/1fkzxldVho6JeFznNMWjLpQ 提取码: yjqs
8.1、/dede/templets/catalog_add.htm 找到
onSubmit="return checkSubmit();"改成
onSubmit="return checkSubmit();" enctype="multipart/form-data"继续找到
name="typename"在它下面的</tr>另起一行插入代码
<script language='javascript' src='js/catalog.js'></script>
<tr>
	<td class='bline' height="26" style="padding-left:10px;"> 英文名称: </td>
	<td class='bline'>
		<input name="enname" id="enname" type="text" size="30" class="iptxt" />
	</td>
</tr>
<tr>
	<td height="24" colspan="5" class="bline">
		<table width="800" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="26" style="padding-left:10px;"> 栏目大图: </td>
				<td width="482">
					<table width="100%" border="0" cellspacing="1" cellpadding="1">
						<tr>
							<td height="30">
								<input name="litpic" id="litpic" type="text" style="width:220px;opacity:1;margin-left:0;cursor:auto;" value="" />
								<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
								<iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
								<span class="litpic_span"><input name="bigpic" type="file" id="bigpic"  onChange="SeePicNew(this, 'ppicview', 'uplitpicfra', 165, 'catalog_add.php','save','bigpic','litpic');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;" /></span>
								<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litpic','imgstick','picview');" class='np coolbg'/>
								<input type='checkbox' class='np' name='ddisremote' value='1'>远程 
							</td>
						</tr>
					</table>
				</td>
				<td width="160" align="center">
					<p id='ppicview' class='ppre'><img height="50" src="images/pview.gif"></p>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td height="24" colspan="5" class="bline">
		<table width="800" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="26" style="padding-left:10px;"> 栏目小图: </td>
				<td width="482">
					<table width="100%" border="0" cellspacing="1" cellpadding="1">
						<tr>
							<td height="30">
								<input name="litimg" id="litimg" type="text" style="width:220px" value="" />
								<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
								<iframe name='upsmallpicfra' id='upsmallpicfra' src='' width='200' height='200' style='display:none'></iframe>
								<span class="litpic_span"><input name="smallpic" type="file" id="smallpic"  onChange="SeePicNew(this, 'psmallpicview', 'upsmallpicfra', 165, 'catalog_add.php', 'save', 'smallpic', 'litimg');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;"/></span>
								<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litimg','imgstick','smallpicview');" class='np coolbg'/>
								<input type='checkbox' class='np' name='ddisremote2' value='1'>远程 
							</td>
						</tr>
					</table>
				</td>
				<td width="160" align="center">
					<p id='psmallpicview' class='ppre'><img height="50" src="images/pview.gif"></p>
				</td>
			</tr>
		</table>
	</td>
</tr>8.2、/dede/templets/catalog_edit.htm 找到
onSubmit="return checkSubmit();"改成
onSubmit="return checkSubmit();" enctype="multipart/form-data"继续找到
name="typename"在它下面的</tr>另起一行插入代码
<script language='javascript' src='js/catalog.js'></script>
<tr>
	<td class='bline' height="26" style="padding-left:10px;"> 英文名称: </td>
	<td class='bline'>
		<input name="enname" id="enname" type="text" size="30" class="iptxt" value="<?php echo $myrow['enname']?>" />
	</td>
</tr>
<tr>
	<td height="24" colspan="5" class="bline">
		<table width="800" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="26" style="padding-left:10px;"> 栏目大图: </td>
				<td width="482">
					<table width="100%" border="0" cellspacing="1" cellpadding="1">
						<tr>
							<td height="30">
								<input name="litpic" id="litpic" type="text" style="width:220px;opacity:1;margin-left:0;cursor:auto;" value="<?php echo $myrow['litpic']?>" />
								<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
								<iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
								<span class="litpic_span"><input name="bigpic" type="file" id="bigpic"  onChange="SeePicNew(this, 'ppicview', 'uplitpicfra', 165, 'catalog_edit.php','save','bigpic','litpic');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;" /></span>
								<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litpic','imgstick','picview');" class='np coolbg'/>
								<input type='checkbox' class='np' name='ddisremote' value='1'>远程 
							</td>
						</tr>
					</table>
				</td>
				<td width="160" align="center">
					<p id='ppicview' class='ppre'><img height="50" src="<?php if($myrow['litpic']!="") echo $myrow['litpic']; else echo "images/pview.gif";?>"></p>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td height="24" colspan="5" class="bline">
		<table width="800" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="26" style="padding-left:10px;"> 栏目小图: </td>
				<td width="482">
					<table width="100%" border="0" cellspacing="1" cellpadding="1">
						<tr>
							<td height="30">
								<input name="litimg" id="litimg" type="text" style="width:220px" value="<?php echo $myrow['litimg']?>" />
								<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
								<iframe name='upsmallpicfra' id='upsmallpicfra' src='' width='200' height='200' style='display:none'></iframe>
								<span class="litpic_span"><input name="smallpic" type="file" id="smallpic"  onChange="SeePicNew(this, 'psmallpicview', 'upsmallpicfra', 165, 'catalog_edit.php', 'save', 'smallpic', 'litimg');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;"/></span>
								<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litimg','imgstick','smallpicview');" class='np coolbg'/>
								<input type='checkbox' class='np' name='ddisremote2' value='1'>远程 
							</td>
						</tr>
					</table>
				</td>
				<td width="160" align="center">
					<p id='psmallpicview' class='ppre'><img height="50" src="<?php if($myrow['litimg']!="") echo $myrow['litimg']; else echo "images/pview.gif";?>"></p>
				</td>
			</tr>
		</table>
	</td>
</tr>8.3、/dede/catalog_add.php 找到 大概在239行
UpDateCatCache();在它上面加入
//添加英文名称栏目大图栏目小图
require_once(DEDEADMIN.'/inc/inc_archives_functions.php');
if(!empty($ddisremote))
{
	$litpic = UploadOneImage('imgfile', $litpic, $ddisremote, 1);
}
if(!empty($ddisremote2))
{
	$litimg = UploadOneImage('imgfile', $litimg, $ddisremote2, 1);
}
$id = $dsql->GetLastID();
$upquery = "UPDATE `dede_arctype` SET `enname`='$enname',`litpic`='$litpic',`litimg`='$litimg' WHERE id='$id' ";
$dsql->ExecuteNoneQuery($upquery);
//添加英文名称栏目大图栏目小图7.4、/dede/catalog_edit.php 找到 大概在106行
UpDateCatCache();在它上面加入
//添加英文名称栏目大图栏目小图
require_once(DEDEADMIN.'/inc/inc_archives_functions.php');
if(!empty($ddisremote))
{
	$litpic = UploadOneImage('imgfile', $litpic, $ddisremote, 1);
}
if(!empty($ddisremote2))
{
	$litimg = UploadOneImage('imgfile', $litimg, $ddisremote2, 1);
}
$upquery = "UPDATE `dede_arctype` SET `enname`='$enname',`litpic`='$litpic',`litimg`='$litimg' WHERE id='$id' ";
$dsql->ExecuteNoneQuery($upquery);
//添加英文名称栏目大图栏目小图9.1、/include/taglib/channel.lib.php 找到
id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath有4处这样的多个字段,4处都改成
*9.2、/include/taglib/channelartlist.lib.php 找到
id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath这样的多个字段,改成
*9.3、/include/taglib/type.lib.php 找到
id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath这样的多个字段,改成
*以上第六、第七、第八自己修改完成栏目添加 [英文名称] [栏目大图] [栏目小图] 功能
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!