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!