Home > CMS Tutorial > DEDECMS > body text

How does dede call the entire content of the article page on the homepage?

藏色散人
Release: 2019-12-23 10:53:01
Original
2424 people have browsed it

How does dede call the entire content of the article page on the homepage?

dedeHow to call the entire content of the article page on the homepage?

dede method of calling all the content of the article page on the homepage, friends who need it can refer to it

Recommended learning: 梦Weavercms

Generally, there are no tags that can be obtained directly when displayed on the homepage. SQL is used directly. If you are willing, you can use sql directly.

The code is as follows

{dede:sql sql="SELECT body FROM `dede_addonarticle` where aid = 2"}
[field:body/]
{/dede:sql}
Copy after login

This is mainly It is the aid in the sql statement. This is your article id. When you add the article in the background, there is a number in front of it. That is aid. Which article do you want to display on the homepage? Just add it directly. 2. Change it to that ID and it will be ok

The above is the detailed content of How does dede call the entire content of the article page on the homepage?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!