Dedecms Hide hidden columns in advanced search methods

Source: Internet
Author: User

found today, forbidden to search hidden column content, found that there are still hidden columns in the advanced search, tested to find a solution as follows:
One, locate and open the heightsearch.htm template (templates\plus\), in line 34th, find$typeOptions = $tl->getoptionarray (0,0,0), change it to$typeOptions = $tl->getoptionarray (0,0,1);
This is explained as follows: The third parameter indicates the column type (that is, the article set), instead 1 for the article set category, 0 for all channels
second, find and open include\typelink.class.php, in line No. 223 $row = $this->dsql->getone ("Select Id,typename,ispart, Channeltype from Dede_arctype WHERE id= ' $hid ' "); instead:
$row = $this->dsql->getone ("Select Id,typename,ispart,channeltype from Dede_arctype WHERE id= ' $hid ' and ishidden= ' 0 ' ");
Line No. 234 Else $ctsql = "and channeltype= ' $channeltype '";
Else $ctsql = "and channeltype= ' $channeltype ' and ishidden= ' 0 '";
that is, two rows are addedand ishidden= ' 0 '
ishidden= ' 0 ' denotes non-column.
complete the above two steps, the Advanced Search column, there will be no hidden columns,
about how to prohibit the list navigation column call hidden column method and the method of disabling Search hidden column content, talk about it later.
the test version is 5.7.

Original address: http://www.genban.org/news/dedecms-6951.html


Dedecms Hide hidden columns in advanced search methods

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.