Dedecms tag code example on the external php page

Source: Internet
Author: User
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.

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.