First find \ include \ taglib \ channelartlist. lib. php, and back up this file for security reasons. Open channelartlist. lib. php to find $ attlist
Set
$ Attlist = 'typeid | 0, row | 20, cacheid | ';
To:
$ Attlist = 'typeid | 0, row | 20, cacheid |, notypeid | 0'; // A parameter-notypeid to be excluded is added here
Search again:
$ Dsql-> SetQuery ("Select id, typename, typedir, isdefault, ispart, defaultname, namerule2, moresite, siteurl, sitepath from '##__ arctype' where $ tpsql order by sortrank asc limit $ totalnum ");
Add it before it (note that it is added before it ):
// Deny the specified ID if ($ notypeid! = 0) {$ tpsql = $ tpsql. "and not (id in ($ notypeid ))";}
After saving the file, when the template is called again:
{Dede: channelartlist typeid = '7' notypeid = '8 '}
Specifically, the subitem "8" in notypeid = '8 & prime; is effective.