How does the Imperial CMS invoke the article with the specified ID to the homepage?

Source: Internet
Author: User

The little beauty with the Imperial CMS built a station, now home page to call the designated ID 12 as a recommendation, with the article summary, she wants to use the form of code directly dropped, and later convenient to modify. So how does the Imperial CMS invoke the article with the specified ID? Specifies the information ID, not the article that invokes the specified column ID. You can use the loop tag to:

[e:loop={' select * FROM [!db.pre!] Ecms_news where id=12 ', 1,24,0}]<a href= "<?= $bqsr [titleurl]?>" target= "_blank" ><?= $bqr [ Title]?></a> <br>
<?=esub ($BQR [smalltext],118]?>
[/e:loop]

Then, what if you want to call 12, 132? You can use or

[e:loop={' select * FROM [!db.pre!] Ecms_news where id=12 or id=13 ', 1,24,0}]

More points to specify the ID of the article call it? can be used in

[e:loop={' select * FROM [!db.pre!] Ecms_news where ID in (12,13,15,17) ', 1,24,0}]

Article reference from the Netizen answer

How does the Imperial CMS invoke the article with the specified ID to the homepage?

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.