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 []