Example of modifying dedecms image upload path naming rules

Source: Internet
Author: User

    1. System > System Basic Parameters > Accessory settings, there is a setting item "Attachment save form (by data function date parameter)", the default value is: Ymd is the meaning of the month and day, change him to Y is to save the attachment by year.

    1. When you use download remote pictures, the method is stored by year. The file dede/inc/inc_archives_functions.php needs to be modified. where $imgUrl = $cfg _uploaddir. ' /‘. MyDate ("Ymd", Time ()), modified to $imgurl = $cfg _uploaddir. ' /‘. MyDate ("Y", Time ());

  1. The method of remote resource localization and annual storage when collecting resources. The file include/dedecollection.class.php needs to be modified. where $timedir = "C". MyDate ("Ymd", Time ()), modified to $timedir= "C". MyDate ("Y", Time ());

Example of modifying dedecms image upload path naming rules

Related Article

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.