Freely control the number of articles displayed on the MT homepage

Source: Internet
Author: User
In the MTBlog system, the frequently updated Blog homepage usually displays many article entries, and the page will be pulled for a long time; rather than frequently updated blogs, occasionally, when updating a Blog, you will find that only one article is displayed, which is out of proportion to the navigation bar on the side. In fact, you only need to set some parameters in the Index template to freely control the display text SyntaxHighlighter on the homepage. a in the MT Blog system, the frequently updated Blog homepage usually displays many article entries, and the page will be pulled for a long time; rather than the frequently updated Blog, when occasionally updating a Blog, you will find that only one article is displayed, which is out of proportion to the navigation bar on the side, in fact, as long as you set some parameters in the Index template, you can freely control the number of articles displayed on the homepage...

By default, the homepage displays the updated content in the last seven days, which is defined in the MT parameter settings. You can set a parameter in the Index template of MT to adjust the number of articles displayed on the Blog homepage. the procedure is as follows:

Find the context tag that controls the display of the document in the template, and add a lastn = "X" parameter to this tag. "X" indicates the number of articles to be displayed on the homepage, for example, your Blog homepage will always display the latest eight articles, so that your Blog homepage articles will not be pulled too long or too short due to the update frequency.

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.