Home CMS Tutorial DEDECMS How does Dreamweaver CMS call the Q&A column articles to the homepage?

How does Dreamweaver CMS call the Q&A column articles to the homepage?

Nov 19, 2019 pm 02:06 PM
cms dedecms dream weaving

How does Dreamweaver CMS call the Q&A column articles to the homepage?

How to use Dreamweaver CMS to call the Q&A column article to the homepage:

Site using Dreamweaver DEDECMS Q&A module It is quite long. The high-scoring bounty questions of the DreamWeaver Q&A system, unsolved questions, newly solved questions, recommended questions, etc. need to be called in the website. For example, to call the homepage, you can call it through the following code:

Basic syntax description:

The code is as follows:

{dede:ask row='6' qtype='new' tid='0' titlelen='24'}  
<dd>  
<span>[<a href=&#39;[field:typeurl/]&#39;>[field:tidname/]</a>]</span>  
<span><a href="[field:url/]">[field:title/]</a></span>  
</dd>  
{/dede:ask}
Copy after login

Parameter description:

row='6' Call bar Number

qtype='new' Sorting type command recommended, ok means solved problem, high high score question, new latest question

tid= '0' Column id, the default is all

titlelen='24' Title length

Underlying template field:

tid,tidname,title,url,typeurl
Copy after login

The internal calls of the Dreamweaver Q&A page are as follows:

1. Calls for problems to be solved

The code is as follows:

{dede:ask row=&#39;8&#39; titlelen=&#39;40&#39; sort=&#39;notok&#39;}  
<dd> <span>[{dede:field.typedata /}]</span> <span><a href="
question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd>  
{/dede:ask}
Copy after login

2. Calls for new problems solved

The code is as follows:

{dede:ask row=&#39;8&#39; titlelen=&#39;40&#39; sort=&#39;ok&#39;}  
<dd> <span>[{dede:field.typedata /}]</span> <span><a href="
question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd>  
{/dede:ask}
Copy after login

3. Recommended question calling

The code is as follows:

{dede:ask row=&#39;8&#39; titlelen=&#39;40&#39; sort=&#39;expiredtime&#39;}  
<dd> <span>[{dede:field.typedata /}]</span> <span><a href="
question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd>  
{/dede:ask}
Copy after login

4. High bounty question calling

The code is as follows:

{dede:ask row=&#39;8&#39; titlelen=&#39;40&#39; sort=&#39;reward&#39;}  
<dd> <span>[{dede:field.typedata /}]</span> <span><a href="
question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd>  
{/dede:ask}
Copy after login

Recommended learning: dedecms tutorial

The above is the detailed content of How does Dreamweaver CMS call the Q&A column articles to the homepage?. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP framework and CMS integration: unlimited possibilities for technology integration PHP framework and CMS integration: unlimited possibilities for technology integration Jun 01, 2024 pm 05:16 PM

The benefits brought by the integration of PHP framework and CMS are: 1. Improve development efficiency; 2. Enhance security; 3. Simplify content management; 4. Flexibility. In a practical case, the Laravel framework was integrated with WordPressCMS to create a blog website with customized functions. The integration steps include creating a Laravel application, installing WordPress, configuring WordPress, creating a controller, defining routing, obtaining WordPress data, and in the Laravel view Display Data.

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

Practical tips for integrating PHPcms with other systems Practical tips for integrating PHPcms with other systems Mar 15, 2024 am 08:18 AM

Practical tips for integrating PHPcms with other systems With the continuous development of Internet technology, the field of website development has become more diverse and complex. In actual projects, we often face situations where different systems need to be integrated, which requires us to have certain skills and experience to solve these problems. This article will introduce some practical tips and specific code examples for the integration of the PHPcms system with other systems to help developers better cope with challenges. 1. Basic Principles of Integration When performing system integration, it is first necessary to

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

Template replacement can be implemented in Dedecms through the following steps: modify the global.cfg file and set the required language pack. Modify the taglib.inc.php hook file and add support for language suffix template files. Create a new template file with a language suffix and modify the required content. Clear Dedecms cache.

What website can dedecms do? What website can dedecms do? Apr 16, 2024 pm 12:24 PM

Dedecms is an open source CMS that can be used to create various types of websites, including: news websites, blogs, e-commerce websites, forums and community websites, educational websites, portals, other types of websites (such as corporate websites, personal websites, photo album websites, video sharing website)

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos using Dedecms? Prepare the video file in a format that is supported by Dedecms. Log in to the Dedecms management backend and create a new video category. Upload video files on the video management page, fill in the relevant information and select the video category. To embed a video while editing an article, enter the file name of the uploaded video and adjust its dimensions.

How to use dedecms How to use dedecms Apr 16, 2024 pm 12:15 PM

Dedecms is an open source Chinese CMS system that provides content management, template system and security protection. The specific usage includes the following steps: 1. Install Dedecms. 2. Configure the database. 3. Log in to the management interface. 4. Create content. 5. Set up the template. 6. Manage users. 7. Maintain the system.

Build a PHP cloud transcoding CMS system to implement video transcoding services Build a PHP cloud transcoding CMS system to implement video transcoding services Mar 16, 2024 am 08:30 AM

Build a PHP cloud transcoding CMS system to implement video transcoding services. With the rapid development of online videos, video transcoding services have become more and more important. In order to meet users' needs for video transcoding, building a PHP cloud transcoding CMS system is a good choice. In this article, we will introduce how to build a simple PHP cloud transcoding CMS system and provide specific code examples. First, we need to prepare a basic PHP development environment. Make sure you have PHP and MySQL installed and have a web server such as Apa

See all articles