Dedecms two times to open the Origin code, please help

Source: Internet
Author: User
Dedecms two times development source code, please help
DEDE Official forum does not allow new registered users to post ...

So, so a bunch of HTML code
{dede:arclist flag= ' h ' limit= ' 0,1 ' infolen= ' 230 '}

[field:title/]


[field:info/] ... [View full text]


{/dede:arclist}
Such a piece of code, corresponding to taglib/arclist.lib.php
I see the solution

[field:title/]


[field:info/] ... [View full text]


The solution to this piece of code, the InnerText of the arclist tag, is this.

arclist.lib.php Line 472-474
$DTP 2 = new Dedetagparse ();
$DTP 2->setnamespace (' field ', ' [', '] ');
$DTP 2->loadstring ($innertext);

This dedetagparse () I can understand that it first sets up Tagstartword and Endword according to Setnamespace, and then uses the for loop for the entire string based on these things, where the Strpos comparison matches the label. And the labels are all stored in the class array CTags.
The Makeonetag method is then called to get tagvalue for those methods that taglib the file that exists below.
The GetResult method is then used to insert the value into the HTML at the location of the parsed Strpos and then return the full string.

This process is well understood, but it is not easy to understand.
$DTP 2->setnamespace (' field ', ' [', '] ');
There is no filed.lib.php in Makeonetag taglib, and there is no parsing of field in Assignsystag.
And, here is not going to Makeonetag, I want to ask is, how does it parse the value? Thank you very much!!!!
------Solution--------------------
$DTP 2->setnamespace (' Field', ' [', ' ]');

Field fields
[Open Arc
] Closed arc

Use the contents of a table field to replace template variables that are enclosed in templates []
  • 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.