Kill lui lei Dog---CMS---22-dedecms (example of the movie Network 16-column page showing mainland movies)

Source: Internet
Author: User

A Chinese movie is displayed on the section page.

Condition:dede_addonmovie.diqu=' continent '

Idea: To modify the source code of the {dede:arclist} tag file, the final goal is to add the condition to the SQL statement.

We first open the \include\taglib folder under the arclist.lib.php to see inside the source code, I le go or so many codes ...

First find him an output place for a breakpoint test under,,,

There's obviously no data we need,,, so we're going to look around and see what else,,,

Found a thing that was the same as when we were walking through the label (channelid= "17"), whatever he was, printed him out to see what the bird thing was.

Result return value really is 17,,,, as if this thing for us is not a bird,,, no way,,,

A, what's this thing he's assigned to, alas, whatever, print to test and see what it is,

Return value add.diqu= ' Continent ' This indicates that there is a SQL statement in execution, followed by a search: (found on Baidu, said Getatt () is the function to get the value of the Tag property)

Alas, too much code,,, or we are now let him search by condition, so I searched the editor on the inside of a search where to see if you can find the data you want to say,

Finally found a similar, and then double-click on him, has been walking up the road to find here with this.

There is a large number of the above, and there is another definition of the orwhre= "", here is not a head? Alas, no matter, try to say, anyway, we have tested the value can be passed in, then I am here to receive the small effect how to say .....

Is this always OK???

My darling,,, finally came out ...

Then write the template page again:

Update Ere page, and see what's out there

The final effect is as follows:

Thinking expansion: To take out the area is RTHK, The era is the film, how to set conditions.

{dede:arclist mywhere= "addf.diqu= ' and addf.niandai= ' 2013 '"}

Kill lui lei Dog---CMS---22-dedecms (example of the movie Network 16-column page showing mainland movies)

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.