Tag: dede
Today, I will share a tip on how to add a topic in DedeCMS. Add a topic as the directory name in simple spelling, and use the folder name as the first letter in Pinyin. By default, DedeCMS adds a topic as the folder name in full spelling, the backend does not provide the public but can be implemented by modifying the source code.
Because DedeCMS in obtaining the column directory name, is the use of a string assistant GetPinyin method, the specific method can be seen in: http://www.heliweb.net/PHPDOC/DedeCMS-Helpers/_include---helpers---string.helper.php.html#functionGetPinyin, through instructions I can know, in the call, set the second parameter to 1 to get the simple spelling.
The following is a specific method: open/dede/catalog_add.php and search GetPinyin. Four search results will be found in the first row, respectively, set the second parameter of the four methods in the four places to true or 1. After the modification, the parameters are as follows:
$ Toptypedir = GetPinyin (stripslashes ($ toptypename), true );
$ Typedir = $ toptypedir. '/'. GetPinyin (stripslashes ($ v), true );
$ Typedir = GetPinyin (stripslashes ($ typename), true );
$ Typedir = GetPinyin (stripslashes ($ typename), true );
Dedecms5.7 when adding a column, the folder name should be simplified as the directory name with the first letter of the alphabet as the folder name