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}<a href="{APP_PATH}index.php?m=content&c=tag&catid={$catid}&a=lists&tag= {urlencode($keyword)}" target="_blank"> {$keyword}</a> {/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 } <a href="{siteurl($siteid)}/tag/{$r[keyword]}" target="_blank"> {$r[keyword] }</a> {/loop} {/pc} </strong>
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!