Home > CMS Tutorial > PHPCMS > body text

How to adjust keywords in phpcms

藏色散人
Release: 2020-05-20 11:24:12
Original
2279 people have browsed it

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 related Tags: {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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!