In dedecms, set the line color to apply to the group

Source: Internet
Author: User
Open: inc_channel_unit_functions.php and add it to the following section // zouql // $ f total list // $ t number of lists in each group functionMyList ($ f, $ t, $ meid, $ con) {if ($ meid % $ t0 $ meid $ f) return $ con;} example: ul {dede: arclistrow20titlele open: inc_channel_unit_functions.php
Add the following section
// Zouql
// $ F total number of lists
// $ T number of lists per group
Function MyList ($ f, $ t, $ meid, $ con)
{
If ($ meid % $ t = 0 & $ meid <$ f)
Return $ con;
}
Example:

    {Dede: arclist row = 20 titlelen = 80 orderby = pubdate}
  • [Field: textlink/]

  • [Field: global name = autoindex function = 'mylist ("20", "5", @ me ," ") '/]
    {/Dede: arclist}

The preceding example contains two usage methods:
[Field: global name = autoindexfunction = 'mylist ("20", "2", @ me, "class = \" color \ "") '/]
And
[Field: global name = autoindex function = 'mylist ("20", "5", @ me ," ") '/] The first one. if you define the relevant css, it is the color of the line.
Second, if you define the relevant css, it is to add a horizontal line to every five rows, 20 lists plus 3 lines not 4, and the last one is not added
Remove & amp; $ meid & amp; $ f.

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.