The Dede arclist label cannot be called when the cross-section is called.

Source: Internet
Author: User
Tags crosstab
Recently I used a crosstab chart and found that when I manually specified the ID of a crosstab chart, the arclist tag cannot be used to call up related articles. Finally, I found that the arclist tag has a problem. The problem to be modified is: include/taglib/arclist. lib. PHP finds the following: if ($ CTAG-> getatt ('cross ') = '1') is changed to if ($ CTAG-> getatt ('cross ')! = '0'): If ($ arr ['crossid ']! = '') $ Selquery =" select ID, topid from '#@__ arctype 'where ID in (' {$ arr ['crossid ']}') andid <> '{$ typeid}' andtopid <> '{$ typeid}' "; changed to: if ($ arr ['crossid ']! = '') $ Selquery =" select ID, topid from '#@__ arctype 'where ID in ({$ arr ['crossid']}) andid <> '{$ typeid}' andtopid <> '{$ typeid }' ";
Analysis: from the database, we can see that when the column is not cross, the value of cross is 0. When the column is automatically obtained, the value of cross is 1. When the column is manually specified, the value of cross is 2. apparently if ($ CTAG-> getatt ('cross ') = '1') is incorrect. $ crossid is always blank when you manually specify an ID

The Dede arclist label cannot be called when the cross-section is called.

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.