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!