About the channel tag of dede

Source: Internet
Author: User
Channel tag of dede {dede: channeltypetoptyperow6currenthover & gt; & lt; ahref ~ Typelink ~ & Gt ;~ Typename ~ & Lt; a & gt; & lt; li & gt; & quot;} about the channel tag of dede
{Dede: channel type = 'top' typeid = '1, 3,7' row = '6' currentstyle ="
  • ~ Typename ~
  • "}
  • [Field: typename/]

  • {/Dede: channel}

    Why does typeid not work? To solve this problem, I only want the typeid of the top-level topic. I am using 5.6. Thank you !!!

    ------ Solution --------------------
    {Dede: channel type = 'top' typeid = '1, 3,7' row = '6'} currentstyle ="
  • ~ Typename ~
  • "
  • [Field: typename/]

  • {/Dede: channel}
    ------ Solution --------------------
    {Dede: channel type = 'top' typeid = '1, 3,7' row = '6 '}
    There are three IDs in total. you need to get six more !!!!!!
    ------ Solution --------------------
    Directly {dede: channel typeid = '1, 3, 7 '}
  • [Field: typename/]

  • {/Dede: channel}

    ------ Solution --------------------
    [Channel tag]

    Function description: used to obtain the column list
    Applicability: cover templates, list templates, and document templates
    (1) Basic syntax
    {Dede: channel row = ''type = ''}
    Custom style template (InnerText)
    {/Dede: channel}
    (2) attributes
    [1] row = 'number' indicates the number of records to be retrieved (generally used when there are too many columns at a certain level, the default value is 8)
    [2] type = top, sun/son, self
    Type = 'top' indicates top-level columns
    Type = 'son' or 'sun' indicates a subtopic
    Type = 'self 'indicates the same level column
    The last two attributes must be used in the list template.
    (3) underlying Template variables
    ID, typename, typedir, typelink (only the URL of the topic)
    Example:
    {Dede: channel type = 'top '}
    [Field: typename/]
    {/Dede: channel}
    Note: If no typeid is specified, the type tag is related to the template environment. for example, if the template is generated to column 1, type = 'son' indicates all subclasses of column 1.

    Http://www.dedecms.com/archives/templethelp/help/taghelp.htm

    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.