Home> CMS Tutorial> DEDECMS> body text

What is the alternative to the invalid currentstyle parameter of the homepage navigation bar of Dedecms?

藏色散人
Release: 2019-12-14 09:34:50
Original
1782 people have browsed it

What is the alternative to the invalid currentstyle parameter of the homepage navigation bar of Dedecms?

What is the alternative to invalid currentstyle parameter of dedecms homepage navigation bar?

This article mainly introduces the alternative method of invalid currentstyle parameter of the navigation bar on the home page of Dedecms. Invalid currentstyle parameter will cause the navigation bar to not be highlighted. This article gives another solution. Friends in need can refer to the following

Recommended learning:DreamWeaver cms

The default homepage of DreamWeaver does not set the highlight attribute, as long as other columns Can. The following code can solve this problem:

The code is as follows:

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

  • ~typename~
  • "}
  • [field:typename/]
  • {/dede:channel}

    Copy after login

    The above code in bold blue is to determine whether the current column is the homepage, and if it is the homepage, add class='hover', otherwise it will not be added to achieve the desired effect.

    The above is the detailed content of What is the alternative to the invalid currentstyle parameter of the homepage navigation bar of Dedecms?. For more information, please follow other related articles on the PHP Chinese website!

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!