Dedecms Tutorial Good Dedecms Edit Practical highlights 1th/2 page

Source: Internet
Author: User
Collect and remove links

Copy the Code code as follows:


{Dede:trim}] *) > ([^<]*) {/dede:trim}


————————————————————————————————
Let Field:title title break through 30 This length, modify the Code method
Find the./include/inc_arcpart_view.php
Line 291:
if ($titlelen = = "") $titlelen = 30;
Revision changed to
if ($titlelen = = "") $titlelen = 60;
Then, you can call the
{dede:channelartlist typeid= ' 0 ' col=1 tablewidth= ' 100% '}
{dede:arclist row= "10"}
[Field:title function= "Cn_substr ([email=] ' @me ', 38[/email])"/]


{/dede:arclist}
{/dede:channelartlist}
Extend this for a moment: about inc_arcpart_view.php
function Getarclist ($typeid =0, $row =10, $col =1, $titlelen =30, $infolen = 160,
$imgwidth =120, $imgheight =90, $listtype = "All", $orderby = "Default", $keyword = "",
$innertext = "", $tablewidth = "", $arcid =0, $idlist = "")
The parameters here can change the size of the template element you actually need.
The method of removing the link-preserving text from the collection.
The method of Cypress boss is {dede:trim}]*) > ([^<]*) {/dede:trim}
Doing so will remove the characters from between! So the whole article is missing part of the character, incomplete!
I tested it many times and finally found the right way to use it! as follows:
{Dede:trim}] *) >{/dede:trim}
{Dede:trim} {/dede:trim}
Make two collection rules on it!
It seems to be used in practice ([^<]*) ([^>]*] two)!

Current 1/2 Page 12 next page

The above describes the Dedecms tutorial Good dedecms revision Practical collection 1th/2 pages, including the Dedecms tutorial aspects, I hope to be interested in PHP tutorial friends helpful.

  • 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.