How does Imperial CMS implement the method of automatically regenerating content pages after submitting comments
This article is about how Empire CMS implements a method to automatically regenerate content pages after submitting comments. Xiao Bian thinks it is quite practical, so share it for everyone to make a reference. Let's follow the editor and have a look.
This article describes how Empire CMS can automatically regenerate content pages after submitting comments as follows:
1. Modify the e/pl/plfun.php file to find:
//Set the last published time
Add this below.
The code is as follows:
$usql=$empire->query("update {$dbtbpre}ecms_".$ class_r[$classid][tbname]. " set havehtml=0 where id='$id'");
2. The return address for posting comments is changed to:
The code is as follows:
In this way, you can call comments with tags on the content page, and the content page will be regenerated after someone has posted a comment
If you don't see comments after submitting, please set your browser's cache check update to check on page visits/every page visit
Thank you for reading! About how to achieve the empire CMS automatically regenerate the content page after submitting comments to share here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge. If you think the article is good, you can share it so that more people can see it!