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='[field:typeurl/]'>[field:tidname/]</a>]</span> <span><a href="[field:url/]">[field:title/]</a></span> </dd> {/dede:ask}
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
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='8' titlelen='40' sort='notok'} <dd> <span>[{dede:field.typedata /}]</span> <span><a href=" question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd> {/dede:ask}
2. Calls for new problems solved
The code is as follows:
{dede:ask row='8' titlelen='40' sort='ok'} <dd> <span>[{dede:field.typedata /}]</span> <span><a href=" question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd> {/dede:ask}
3. Recommended question calling
The code is as follows:
{dede:ask row='8' titlelen='40' sort='expiredtime'} <dd> <span>[{dede:field.typedata /}]</span> <span><a href=" question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd> {/dede:ask}
4. High bounty question calling
The code is as follows:
{dede:ask row='8' titlelen='40' sort='reward'} <dd> <span>[{dede:field.typedata /}]</span> <span><a href=" question.php?id={dede:field.id /}">{dede:field.title /}</a></span> </dd> {/dede:ask}
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor