Before destoon implements Information information, call the classification method _ php instance

Source: Internet
Author: User
This article mainly introduces how to call the classification method of destoon before implementing information, which is very practical in template creation, if you need a friend, you can refer to it. Sometimes we need to add his/her category before some information to show it. Although some of the methods described in this article are not universal, however, the Code is as follows for your reference:

 {Loop $ tags $ I $ t}
  • [{$ T [catname]}] {$ t [title]}
  • {/If} {/loop}

    Note:

    1. The catid IN (263,264,249,327, 11,598,599, 12,238,237,265,285,328,567,570) IN the Code is the category of all information.
    (This id range is relatively fixed and is not universal. You need to enter the id of the category under your own information)

    2. Write "showcat = 1 ".

    3. {$ t [catname]} This is the category name

    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.