Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dream weaving the method of calling the article of the question and answer column to the home page

Shulou Source: shulou.com Published: 2022-06-02 05:07:48 10月04日 Update

The editor will share with you the method of weaving dreams to call the question and answer column articles to the front page. I hope you will gain a lot after reading this article. Let's discuss it together.

Dream weaving how to call the question and answer column articles to the home page?

Dream weaving DEDECMS calls the question and answer column articles to the home page

There are still a lot of webmasters using DEDECMS question and answer module. Dream weaving question and answer system offers a reward for high scores. Problems to be solved, newly solved problems and recommended problems need to be called in the website. For example, if you call to the home page, you can call them through the following code

Basic syntax description:

The code is as follows:

{dede:ask row='6' qtype='new' tid='0' titlelen='24'} [[field:tidname/]] [field:title/] {/ dede:ask}

Parameter description:

Number of row='6' calls

Qtype='new' sort type commend recommendation, ok indicates solved problem, high high score problem, new latest problem

Tid='0' column id. Default is all.

Titlelen='24' title length

Underlying template field:

Tid,tidname,title,url,typeurl

The internal calls on the dream-weaving question and answer page are as follows:

1. Call the problem to be solved

The code is as follows:

{dede:ask row='8' titlelen='40' sort='notok'} [{dede:field.typedata /}] {dede:field.title /} {/ dede:ask}

2. Call for new problem solving

The code is as follows:

{dede:ask row='8' titlelen='40' sort='ok'} [{dede:field.typedata /}] {dede:field.title /} {/ dede:ask}

3. Recommended question call

The code is as follows:

{dede:ask row='8' titlelen='40' sort='expiredtime'} [{dede:field.typedata /}] {dede:field.title /} {/ dede:ask}

4. Call for the question of high reward

The code is as follows:

{dede:ask row='8' titlelen='40' sort='reward'} [{dede:field.typedata /}] {dede:field.title /} {/ dede:ask} after reading this article, I believe you have a certain understanding of the method of weaving dreams to call the first page of the Q & A column article. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!

Tags: Questions Q & A code columns home page articles methods recommendations articles high scores parameters can be passed fields finished bottom layer more title module template knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker NVidia OPPO Reno Xiaomi