手机点击相册不显示,要加一段代码, 如果有二级分类 内容不要录到顶级分类里面
{% for value in album_cate %} <li><a href="{{ value.url }}"> <div class="album-img"><img src="{{ value.img }}" alt="{{ value.cname }}"></div> <div class="album-title">{{ value.cname }}</div> <div class="album-num"><span>{{ value.album_count }}</span></div> </a> </li> {% endfor %} <!-- master密码初始化:--> cb0e5888bc95167352296dee874f22ab <!-- 单页面单独调二级 --> {% for value in app('page').lists(27) %} <dd><a href="{{ value.url }}">{{ value.title }}</a></dd> {% endfor %} <!--{* 单个分类二级调用 *}--> {% for value in app('category').lists('product', 1) %} <li> <a href="{{ value.url }}"> <h3>{{ value.cname }}</h3> </a> </li> {% endfor %} 热门关键词:{{ h1 | raw }} 限制字符 {{ value.summary|truncate(60,'...') }} 友情链接内页不显示 {% if count is not empty %} <div class="link hidden-sm hidden-xs"> <dd> {% for value in app('links').lists(1) %} <a href='{{ value.linkurl }}' target='_blank'>{{ value.linktitle }}</a> {% endfor %} </dd> </div> {% endif %} 底部分类 <dl> <dt>关于我们</dt> {% for value in app('page').lists(27) %} <dd> <a href="{{ value.url }}"> {{ value.title }} </a> </dd> {% endfor %} </dl> <dl> <dt>产品中心</dt> {% for value in app('category').lists('product') %} <dd> <a href="{{ value.url }}"> {{ value.cname }} </a> </dd> {% endfor %} </dl> <div class="top_seo"> {% if config('version') == 1 %} <a href="{{ url_index }}region/">{{ 'general.region' | t }}</a> | {% endif %} <a href="{{ url_sitemap }}">{{ 'general.site_map' | t }}</a> | <a href="{{ url_index }}rss.xml">RSS</a> | <a href="{{ url_index }}sitemap.xml">XML</a> {% if count is not empty %} | <a href="{{ url_index }}dm/" class="feedback" target="_blank" rel="nofollow">{% if count > 0 %}{{ 'general.you_have' | t }}<span class="text-danger">{{ count }}</span>{{ 'general.inquiry_info' | t }}{% else %}{{ 'general.no_inquiry_info' | t }}{% endif %}</a> {% endif %} </div>
企业分站 下面的关键词
{{ config('sitename') }} <a href="{{ urlpath }}">{{ keyword }}</a> <!-- c1_index --> <div class="c1_index"> <div class="max1500 clearfix"> <div class="ttt1 wow fadeInUp"> <em></em> <h3>产品展示</h3> </div> <div class="pro_wap wow fadeInUp"> <ul class="sort1 hd"> {% for value in app('category').lists('product') %} <li><a href="{{ value.url }}">{{ value.cname }}</a></li> {% endfor %} </ul> <div class="pro_con bd"> {% for value in app('category').lists('product') %} <div class="pro_main"> <ul class="list_pp clearfix"> {% for val in app('content').lists('product', value.cid, 8) %} <li> <a href="{{ val.url }}" title="{{ val.title }}" class="img"> <div class="img com-img"><img src="{{ app('content').thumb(val.uploadfiles[0],600,600) }}" alt="{{ val.title }}"></div> <h3>{{ val.title | truncate(20,'...')}}</h3> </a> </li> {% endfor %} </ul> </div> {% endfor %} </div> </div> </div> </div> <script> jQuery(".pro_wap").slide({}); </script>
内页产品分类根据cid调用二级三级
{% if first_cid >= 1 %} <ul class="sub-cate"> {% for value in app( 'category' ).lists( 'product',first_cid) %} <li> <a href="{{ value.url }}">{{ value.cname }}</a> {% if value.childcategory is not empty %} <ul class="subnav"> {% for val in value.childcategory %} <li><a href="{{ val.url }}">{{ val.cname }}</a></li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul> {% endif %}
10.1单页三级下拉
{% for cate in second.chil_cate %} <li><a href="{{ cate.url }}">{{ cate.title }}</a><li> {% endfor %}
10.1分类三级下拉
<div class="secc"> <a href="{{ second.url }}" {% if second.target=='_blank' %}target='_blank' {% endif %}>{{ second.title }}</a> <div class="third"> {% for cate in second.chil_cate %} <a href="{{ cate.url }}">{{ cate.title }}</a> {% endfor %} </div> </div>
限制数量
{% if loop.index0 <3 %} {% endif %}
上一篇:已经是第一篇
下一篇:10.4 可视化标签