We often use the channel labels to tune columns when making websites using the dream system. However, many friends will encounter this situation when using the channel label to tune the column, the designation "Type=son typeid=x" found Currentstyle invalid. Today I would like to share with you the solution.
1, solve the channel label Currentstyle style Invalid error method does not work
The code is as follows:
1{dede:type= ' son ' typeid= ' current~typename~ ' >~typename~</a> </Li>"} 2 <Li><atitle= "[field:typename/]"href= "[field:typelink/]">[field:typename/]</a></Li> 3{/dede:channel}
Solution: The typeid= ' 12 ' is changed to channel= ' 1 ' (article model ID), except the first page, other pages do not need to specify TYPEID=X, will automatically determine the current location. The workaround is as follows: {dede:type= ' son ' channel= ' 1 ' current~typename~ ' >~typename~</a> </li> '} <li><a Title= "[field:typename/]" href= "[field:typelink/]" >[field:typename/]</a></li> {/dede:channel} I have tested this method of call Currentstyle is not valid at all, is simply nonsense.
2, solve the channel label Currentstyle style Invalid does not work the correct way to modify include/taglib/channel.lib.php
1 if($row[' id ']==$typeid | | ($topid= =$row[' id '] && $type= = ' top ') && $currentstyle! = ")
Change into
1 if $row $refObj->typelink->typeinfos[' id '] | | ($topid= =$row$type$currentstyle
The author has tested this method of call Currentstyle effective, can solve the problem that the channel label Currentstyle style Invalid does not work.
Weave Dream Channel label Currentstyle style Invalid does not work