二次开发内容:

【安达二次开发】极致cms建站系统后台文章内容和商品内容列表左侧加栏目,方便显示对应内容。

使用程序:

极致cms建站系统。

更改文件均为后台的文件和html模板文件,请点击左侧免费下载。下载覆盖时注意备份原文件!!!!!!

方法:


/**
 * 说明
 * 安达  QQ:81070149  安达工作室:www.anda.pub   安达模板:www.andawork.com
 * 如果你的程序修改过里面的文件,那么就复制下面的内容到对应的文件及位置就好。
 */


//1.   /A/c/ArticleController.php 在function articlelist(){中的38行处($this->fields_search = $res['fields_search'];的下面)加入如下代码:

    $classtype = M('classtype')->findAll(NULL,'orders desc');
    $classtype = set_class_haschild($classtype);
    $classtype = getTree($classtype);
    $this->classtypes = $classtype;


//2.    /A/c/ProductController.php 在function productlist(){中的36行处($this->fields_list = M('Fields')->findAll(array('molds'=>'product','islist'=>1),'orders desc');的下面)加入如下代码:

    $classtype = M('classtype')->findAll(NULL,'orders desc');
    $classtype = set_class_haschild($classtype);
    $classtype = getTree($classtype);
    $this->classtypes = $classtype;   

//3.    /A/t/tpl/style/css/style.css 中加入下面的代码:

.anda-left{background-color: #fff;padding: 20px; box-shadow: 2px 2px 10px rgba(0,0,0,.1)!important;width: 13%;float: left;margin-right: 1%;}
.anda-left ul li a{display: block;line-height: 36px;padding: 0 15px;}
.anda-left ul li a.active{background-color: #f46f5e;color: #fff;}
.anda-left ul li a:hover{background-color: #dbdbdb;color: #000;}


//4.    /A/t/tpl/article-list.html中,将原来的

<div class="x-body">
	<div class="layui-card">
替换为
<div class="x-body layui-clear">
        <div class="anda-left">
		<ul>
			{foreach $classtypes as $v}
			{if($v['molds']=='article')}
			<li><a href="{fun U('Article/articlelist',['tid'=>$v['id']])}" {if($v['id']==$tid)}class="active"{/if}>{fun str_repeat('&nbsp;&nbsp;&nbsp;',$v['level'])}{if($v['level'])}|—{/if} {$v['classname']}</a></li>
			{/if}
			{/foreach}
		</ul>
	</div>
	<div class="layui-card layui-col-xs10">
将原来的
<a><cite>{$molds['name']}列表</cite></a>
替换为
<a><cite>{if($tid)}【{fun get_info_table('classtype',['id'=>$tid],'classname')}】{/if}{$molds['name']}列表</cite></a>


//5.    /A/t/tpl/product-listt.html中,将原来的

<div class="x-body">
		<div class="layui-card">
替换为
<div class="x-body layui-clear">
        <div class="anda-left">
		<ul>
			{foreach $classtypes as $v}
			{if($v['molds']=='product')}
			<li><a href="{fun U('Product/productlist',['tid'=>$v['id']])}" {if($v['id']==$tid)}class="active"{/if}>{fun str_repeat('&nbsp;&nbsp;&nbsp;',$v['level'])}{if($v['level'])}|—{/if} {$v['classname']}</a></li>
			{/if}
			{/foreach}
		</ul>
	</div>
	<div class="layui-card layui-col-xs10">
        将原来的
<a><cite>{$molds['name']}列表</cite></a>
替换为
<a><cite>{if($tid)}【{fun get_info_table('classtype',['id'=>$tid],'classname')}】{/if}{$molds['name']}列表</cite></a>

以上就是极致cms后台内容加左侧栏目的方法了,有需要的联系安达

 

效果截图:

默认显示所有的文章分类

点击显示对应的栏目内容

本站所有模板素材资源均来自用户分享和网络收集,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服,我们核实后会立即删除。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源