| 123 |
{dede:channel type=‘son‘ row=‘8‘ currentstyle="<li><ahref=‘~typelink~‘class=‘thisclass‘>~typename~</a> </li>"} <li><ahref=‘[field:typelink/]‘>[field:typename/]</a> </li> {/dede:channel} |
This invocation method Currentstyle valid
But:
| 123 |
{dede:channel type=‘son‘ row=‘8‘ typeid=1 currentstyle="<li><ahref=‘~typelink~‘class=‘thisclass‘>~typename~</a> </li>"} <li><ahref=‘[field:typelink/]‘>[field:typename/]</a> </li> {/dede:channel} |
This method of invocation is not currentstyle.
Some people in the forum said it was nonsense to change typeid=xxx to channelid=1.
Perfect solution:
Modify include/taglib/channel.lib.php
| 1 |
if (( [ ' id ' ]== $typeid | | ( $topid == $ Row [ ' id ' ] & & $type == ' top ' $currentstyle != " ) |
/table>
Change into
| 1 |
if( ( $row[‘id‘]== $refObj->TypeLink->TypeInfos[‘id‘] || ($topid==$row[‘id‘] && $type==‘top‘) ) && $currentstyle!=‘‘) |
DEDECMS Channel label Currentstyle Invalid fix when specifying typeID