The method of generating XML with DEDE5.7 single-page document
Editor to share with you the method of using DEDE5.7 single-page documents to generate XML. I hope you will gain a lot after reading this article. Let's discuss it together.
How to generate XML with DEDE5.7 single-page documents?
The method of generating XML with DEDE5.7 single-page document
1. Create a new template you want to generate (suffix htm)
Example:
two。 Make a separate page and generate the xml file
Channel management-- > individual page management-- > add a page
Page name: dede generate xml
Template file name: the new htm name created in step 1
File name: xc.xml
(the path here is filled in according to the actual path)
Whether to compile: yes
Page content: novice note: the code should be entered in the source file (code). Do not enter in the editor!
For example, the content of the line you want to cycle through
Then:
{dede:arclist row='8' titlelen='36' imgheight='' type='3'} {/ dede:arclist}
3. Replace the newly created htm template content in step 1.
According to the content of the loop in the second step
Then
{dede:field name='body'/} after reading this article, I believe you have a certain understanding of the method of using DEDE5.7 single-page documents to generate XML. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!