Home > CMS Tutorial > PHPCMS > How to modify tags in phpcms

How to modify tags in phpcms

藏色散人
Release: 2020-01-02 10:04:09
Original
2221 people have browsed it

How to modify tags in phpcms

How to modify tags in phpcms?

How to modify the phpcms V9 tag

If you want to modify the PHPCMS V9 tag, just modify the corresponding contents of the two files:

You need to modify the file in:

/phpcms/libs/classes/template_cache.class.php template parsing cache file to find the pc_tag() method

\phpcms\modules\content\classes\content_tag .class.php

For example, tag: num will be parsed and converted into php through the pc_tag() method

$num = isset($num) && intval($num) ? intval ($num): 20;//You can modify it arbitrarily here

After conversion, check the template. After conversion, you will use the corresponding method in content_tag.class.php, and you can watch the corresponding modifications yourself.

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of How to modify tags 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