Weave Dream Channel label Currentstyle style Invalid does not work

Source: Internet
Author: User

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

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.