Dream weaving CMS calls the method of question and answer column articles to the home page
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!