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

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.