Home>Article>CMS Tutorial> How to adjust keywords in phpcms

How to adjust keywords in phpcms

藏色散人
藏色散人 Original
2020-05-20 11:24:12 2401browse

How to adjust keywords in phpcms

How to adjust keywords in phpcms?

Two calling methods are recommended:

①. Only call the keywords of the current article, that is, the keywords set when publishing the article in the background.

You can also query relatedTags: {loop $keywords$keyword} {$keyword} {/loop}

②, call the keywords set by all articles, such as setting Five keywords or can be made into a tag cloud, both are OK, as long as your css matches properly, it is guaranteed to be perfect!

Tag:{pc:get sql="SELECT keyword FROM `v9_keyword` WHERE length(`keyword`) > 2 ORDER BY `videonum` DESC" num="5" } {loop $data$r} {php $num } {$r[keyword] } {/loop} {/pc}

In the second method, you need to pay attention to whether your data table is consistent with what I wrote. , just write it as your own, mine is the default.

If you find that there is something wrong with the link in the first and second types, it doesn’t matter. The first type is the default link, which is opened dynamically. The second type is that I made my own pseudo-static. You can do it yourself if you need it. Look for related phpcms keyword generation in the forum. I hope this simple sharing will be helpful to those who are new to it.

Recommended: "phpcms tutorial"

The above is the detailed content of How to adjust keywords in phpcms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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