Describes how to replace the invalid currentstyle parameter in the navigation bar of the dededecms homepage.

Source: Internet
Author: User
This article describes how to replace the currentstyle parameter in the homepage navigation bar of dededecms. if the currentstyle parameter is invalid, the navigation bar cannot be highlighted. This article provides another solution, for more information, see the next article. This article describes how to use the currentstyle parameter in the navigation bar of the dededecms homepage. if the currentstyle parameter is invalid, the navigation bar cannot be highlighted, this article provides another solution. For more information, see

By default, the highlight attribute is not set on the home page of the woven dream, as long as other topics are available. The following code solves the problem:

The code is as follows:

Homepage {dede: channel type = 'top' row = '10' currentstyle ="

  • ~ Typename ~
  • "}
  • [Field: typename/]
  • {/Dede: channel}

    Dedecms Template: www.php1.cn/xiazai/code/dedecms

    The above blue bold code is to determine whether the current topic is a homepage. if it is a homepage, add class = 'hover '. Otherwise, it is not added to achieve the desired effect.

    The above is a detailed description of the invalid currentstyle parameter substitution method in the homepage navigation bar of dedecms. For more information, see other related articles in the first PHP community!

    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.