In the {dede: listsqlsql} tag of Zhimeng {dede: listsqlsql}, how does one pass the column ID value to the condition in the SQL statement?

Source: Internet
Author: User
In the {dede: listsqlsql} tag of Zhimeng {dede: listsqlsql}, how does one pass in the column ID value for the conditions in the SQL statement? why do you need to call the article content and video content under this topic on a list page, you also need to paging the corresponding data separately. after racking the milk, you will find {dede: listsql SQL = "SELECT * FROM 'dede _ archives ', 'dede _ addonarticle' where dede_archives.typeid = dede_addonarticle.typeid and dede_archives.typeid = ~ Typeid ~ "Pagesize = '10'}. when you pass a fixed value to the typeid, you can call the data. now I need to dynamically obtain the value of the column ID for query, remember to use the tag {dede: SQL = ""} before ~ Typeid ~ The typeid value cannot be obtained in the {dede: listsql} label dynamically. I do not know how the predecessor dynamically obtains the value of typeid in this label, this label is used in the list_arclist.htm template ...... please give us some advice and never forget the grace of dripping water!


Reply to discussion (solution)

The reason for getting up early is to look at the high-end reply ....

No one gave me some advice on how to call data on the same page. The new problem is how to use two {dede in the same page: the pagelist1 listsize = '2'/} tag is used to retrieve the relative page. if you have not changed anything, use the two tags on the list page, the pages are the same ....

Baidu searched all over. please!

Dear user, how did you solve this problem? I encountered the same problem and asked for a solution ..

No one gave me some advice on how to call data on the same page. The new problem is how to use two {dede in the same page: the pagelist1 listsize = '2'/} tag is used to retrieve the relative page. if you have not changed anything, use the two tags on the list page, the pages are the same ....



Could you tell me how the landlord solved the problem ....

Did the landlord solve the problem later ???

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.