织梦{ dede:listsql sql } 标签中如何给sql 语句中的条件传入栏目ID的值,跪求大神指点.

WBOY
Release: 2016-06-13 11:32:25
Original
1153 people have browsed it

织梦{ dede:listsql sql } 标签中怎么给sql 语句中的条件传入栏目ID的值,跪求大神指点....
在一个列表页需要调用该栏目下的文章内容和视频内容,还分别都需要给相应的数据做分页,绞尽乳汁后发现了{dede:listsql sql="SELECT * FROM `dede_archives`,`dede_addonarticle` where dede_archives.typeid = dede_addonarticle.typeid and  dede_archives.typeid = ~typeid~ " pagesize='10'} 这个标签,  当给typeid传入固定的值得时候就可以调数据出来,我现在是需要动态获取栏目ID的值进行查询,记得以前写{dede:sql sql=""} 这个标签的时候用过~typeid~ 动态传过值,可现在在{dede : listsql }标签中获取不到typeid的值,不知道前辈是怎么在这个标签中使用动态获取typeid的值的,这个标签我是在 list_arclist.htm 模板中使用的......求高人指点迷境,滴水之恩没齿难忘!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!