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.