Step 1: Add the following code to the external php page: lt ;? Require_oncedirname _ FILE _ includecommonincphp; contains the configuration FILE metadata; includes the partiew class tempfilenewshtm; defines the template path pvnewPartView; the initialization class pvgt; SetTemplettempfile; settings
Step 1: Add the following code to the external php page: lt ;? Require_oncedirname _ FILE _ includecommonincphp; contains the configuration FILE metadata; includes the partiew class tempfile = newshtm; defines the template path pv = newPartView; the initialization class pvgt; SetTemplettempfile; settings
Step 1: Add the following code to the external php page:
Lt ;?
Require_oncedirname _ FILE _ includecommonincphp; contains the configuration FILE
Require_oncedeincarcpartviewclassphp; contains the partiew class.
Tempfile = newshtm; Define the template path
Pv = newPartView; Initialization class
Pvgt; SetTemplettempfile; set the template file path
Pvgt; Display; displays the page
? Gt;
Nbsp;
Step 2: Create a template file (newshtm) and add the dedecms tag Code. For example, the following code calls the title and link of the first 10 articles in the website column id =:
{Dede: arclistorderby = idorderway = desctypeid = limit =}
Lt; ligt; lt; ahref = [field: arcurl] gt; [field: title] lt; agt; lt; ligt;
{Dede: arclist}
Nbsp;
The above two steps enable the external php page to call the target data through the dedecms tag code.
Original article address: dedecms label code example on the external php page. Thank you for sharing it.