The method of transforming dream-weaving dedecms rss output into full-text output
This article mainly introduces the method of weaving dream dedecms rss output into full-text output, the article is very detailed, has a certain reference value, interested friends must read it!
Dream weaving dedecms rss output how to change to full-text output?
Today, I would like to share with you how to change the rss output of Weaving Dream into full-text output, so I will share with you the method of modifying Weaving Dream rss output to full-text output.
Recommended study: dream weaving cms
When it comes to php, don't worry, don't come back after learning php. When it comes to dream-weaving tags, we can also consider.
Let's talk about the method.
The modification method is as follows:
1. Find the template templets/plus/rss.htm of rss
Put [field:description/]
Change to
[field:body/]
If you don't change it, you can just add it to another name.
For example:
[field:body/]
two。 Modify the php source code that generates rss. / include/inc_rss_view.php
About 100 lines or search for $query = "Select"
Directly change it to
$query = "Select dede_archives.ID,dede_archives.title,dede_archives.source,dede_archives.writer, dede_archives.typeid,dede_archives.ismake,dede_archives.money,dede_archives.description,dede_archives.pubdate,dede_archives.senddate,dede_archives.arcrank,dede_archives.click,dede_archives.litpic,dede_arctype.typedir,dede_arctype.typename,dede_arctype.isdefault,dede_arctype.defaultname,dede_arctype.namerule,dede_arctype.namerule2,dede_arctype.ispart,dede_arctype.siteurl Dede_addonarticle.body from dede_archives left join dede_arctype on dede_archives.typeid=dede_arctype.ID left join dede_addonarticle on dede_archives.ID=dede_addonarticle.aid where $orwhere $ordersql limit 0, ".$ this- > MaxRow
This is basically OK, if you think too much content is slow to load
You can add the following code, using only the content of the first page as content
Add at the bottom of this paragraph / / handle some special fields
$row ["body"] = substr ($row ["body"], 0, strpos ($row ["body"]. ",")); / / lava
Other filters and other things can also be modified flexibly.
The above is all the contents of the method of weaving dream dedecms rss output into full-text output, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!