Home > Backend Development > PHP Tutorial > 织梦标签dede:php的一个有关问题,懂织梦的进

织梦标签dede:php的一个有关问题,懂织梦的进

WBOY
Release: 2016-06-13 10:15:59
Original
962 people have browsed it

织梦标签dede:php的一个问题,懂织梦的进
不知道dede:php这个标签的使用方法! 栏目多级嵌套。直接查询数据库,直接嵌套显示
dede:php直接写sql怎么循环栏目标题,还有就是我是多级嵌套,那么写sql时候怎么获取上层
的ID之类的变量呢?

------解决方案--------------------
核心文件是include/dedetemplate.class.php
------解决方案--------------------
{dede:channelartlist type="top" row="10"}

  • {dede:field name="typename"/}

    {dede:channel type="son" noself="yes" row="4" }
  • [field:typename/]


  • {/dede:channel}
    {/dede:channelartlist} 

    这样可以做二级联动 不知道是不是你要的效果
    ------解决方案--------------------
    直接php sql语句不就行了
    Related labels:
    source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template