Dede automatically generates RSS and website map

There are two types The method can be established, here I will only talk about the simplest one:
Core->Channel Model->Single-page document management: add a page

1. RSS

page title: rss
Template file name: {style}/rss.htm
File name: rss.xml
rss.htm file must be placed in the template folder:



RSS_{dede:global.cfg_webname/}
< link>{dede:global.cfg_basehost/}
{dede:global.cfg_description/}
{dede:arclist row=’60’ col=’1′ titlelen=’100′ orderby=’pubdate’}

<![CDATA[[field:title function='html2text(@me)'/]]]>
[field:arcurl/]
‘html2text(@me)’/] …
]]>

[field:pubdate function=’strftime( “%a, %d %b %Y %H:%M:%S”,@me)’/]

{/dede:arclist}




two, Site map
page title: site map< /span>
Template file name: {style}/google_sitemap .htm
File name: sitemap.xml


< /span>


http://domain name/index. html
daily
1.0

{dede:channelartlist}

{dede:field name=”typeurl”/}
daily
0.9

{dede:channel type=”son”}

[field:typeurl/]
daily
0.8

{/dede:channel}
{dede:artlist row=”20″}< /span>

[field:arcurl/]

{/dede:artlist}
{/dede:channelartlist}


Three, update all pages namely Yes

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 350 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.