Plug-in name: DedeCms label static plug-in
Plug-in official website: http://www.00isp.com/webdesign/dedecms-plugins/tag-html-plug.html
Main function: Generate static files from tags in the DedeCms system. DedeCms default tags are displayed through dynamic pages. In order to meet everyone's different needs, a tag static plug-in is provided here, which can generate tags into static html files. The plug-in supports customizing the static file storage directory, file type, and naming rules.
Practical version: DedeCms 5.5 GBK version
Plug-in purchase: Please contact QQ: (649951267) to purchase plug-in.
Plug-in price standard:
80 yuan (plug-in fee, no technical support provided)
150 yuan (including installation and debugging)
Plug-in modification, upgrade, and personalized function design start from 300 yuan, and the specific price is negotiable.
Plug-in author: Zero Degree Technology - Dark Spirit design and production contact QQ: (649951267), the copyright belongs to Zero Degree Technology
Plug-in installation method: After purchasing the plug-in, we will provide you with the installation file. You only need to directly import it in the DedeCms background and install it. The installation method is very simple. For specific methods, please refer to: DedeCms 5.5 label static plug-in installation method
How to use the plug-in: After installing the plug-in, we can find a "tag static" in "Module" and click to use it.
Introduction to the use of the plug-in: There is a "Generation Method" option in the static operation page. You can choose "Forced Update Mode" or "Monitoring Update Mode". This plug-in records the last update time of the label. Using "Forced Update Mode" will not It will be updated if there is any new content after the last update of the tag. Using the "monitoring update mode" will judge whether there is new content on the tag after the last update. If there is new content, the update operation will be performed. If there is no new content, it will not be updated. Perform updates. For websites with relatively large amounts of data, it is recommended that you use the "monitoring update mode" for execution.
Plug-in configuration: After the plug-in is installed successfully, you can find a file named "makehtml_tag_config.php" in the backend directory. The following content can be configured at the top of the file.
$TC_tag_filetype = '.html'; // Tag file type
$TC_tagindex_dir = 'Y'; // Tag homepage directory, [Y] is stored in the $TC_tag_dir directory, other values are located in the installation directory
$TC_tagindex_name = ''; // Tag homepage file name, leave blank for index Note: The file name does not specify a suffix
$TC_tag_dir = '/tag'; // Tag directory, under the website root directory
$TC_tagdir_rule = '{dir}/{py}/{aid}_{page}.html'; // Directory naming rules
$TC_tagtpl_index = 'tag.htm'; // Home page template
$TC_tagtpl_list = 'taglist.htm'; // List page template
Here I will only explain the configuration method of $TC_tagdir_rule, because everything else is very simple. $TC_tagdir_rule is the naming rule for tag files.
{dir} represents the tag storage directory, which is stored in the directory specified by $TC_tag_dir and cannot be modified.
{py} represents the pinyin of the label (all letters)
{s} represents the name of the label. If no modification is made, the Chinese characters will be retained.
{aid} represents the ID of the tag. It is recommended to keep this item to prevent tags with the same pinyin from interfering with each other.
{page} represents the page serial number and must be retained
Naming example description: For example, we have a tag "Zero Degree Technology" with the tag ID "1". We use the default naming rules. The generated static path should be "/tag/lingdukeji/1_1.html". If we use "{ dir}/{s}/{aid}_{page}.html" such a naming rule, the generated static path should be "/tag/ Zero Degree Technology/1_1.html", if we use "{dir}/{ py}_{aid}_{page}.html'" Such a naming rule, the generated static path should be "/tag/lingdukeji_1_1.html" Through these examples, I believe everyone should know how to use naming rules.
How to use template files: Note that we do not have a built-in template file in the plug-in. The method of making a template file is very simple. You only need to copy the default tag template page of DedeCms to use it. The tag.htm tag homepage template needs to be modified in only one place. , change the default {dede:tag and {/dede:tag} to {dede:tags and {dede:tags} to update normally. taglist.htm list page template, you need to modify the TAG homepage link at the current location, and change the link to "{dede:global.cfg_cmspath/}{dede:php}echo GetTagIndexLink();{/dede:php}" to use it normally .
Tip: The file name of the tag template can be modified, as long as the $TC_tagtpl_index and $TC_tagtpl_list in the plug-in are configured correctly.
If you are using other languages of DEDECMS, you can generally modify the file encoding directly. If you have not yet debugged, you need to debug it yourself.
The personal space of the author Zero Degree Technology. This article only represents the author's views and has nothing to do with the position of Webmaster.com.