Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dream weaving CMS calls the method of question and answer column articles to the home page

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of weaving dream CMS to call the question and answer column article to the front page, the article is very detailed, has a certain reference value, interested friends must read it!

Dream weaving CMS calls the question and answer column article to the front page:

There are still many webmasters who use the Weaving Dream DEDECMS question and answer module. The Weaving Dream question and answer system offers a reward for high scores. Problems to be solved, newly solved problems and recommended questions 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} above is all the contents of the method of Weaving Dream CMS calling the Q & A column to the home page. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report