Description of the attributes of the module and file nodes in feature Schema

Source: Internet
Author: User

<Module name = "" Path = "" url = "">
<File name = "" Path = "" url = ""/>
</Module>

Module:
Name: name of the folder where files are stored on the disk.
Path: the path of the folder specified in the "name" attribute on the disk relative to \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ Features \ feature. If the folder is directly placed in the feature directory, the path should be empty.
URL: directory of the site to be copied. The directory path is relative to the root directory of the site. If this directory does not exist in the site, the directory is automatically created.

File:
URL: name of the file in the site
Path: Path of the file on the disk relative to \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ Features \ feature.
Name: Generally, you do not need to specify the value of the name attribute. leave it blank. If it is not empty, the URL attribute value will be overwritten so that the file uses the name specified by name in the site.

Example:
License "this file requires provision:

The module and file must be written as follows:

The definition of leleand fileelement in the current directory. We hope that the readme.txt file will be placed in the newfolderinsite directory of the website by the name of newname.txt. Therefore, after activating this feature, there will be such a directory and file on the site:

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.