Wss3sdk: use feature

Source: Internet
Author: User
Feature reduces complexity, simplifies website customization, and makes it more suitable for deployment and upgrade. Feature eliminates the need to copy large blocks Code In order to change the simple functions. So that before
Possible problems with version inconsistencies between Web Servers
. Feture makes it easier to start or disable features during the deployment process. The administrator can easily change the template or definition of a website by switching a specific feature in the user interface.
. Feautue provides the following functions:

    • Range semantics determines where the custom code runs
    • Pluggable behavior is used to install and uninstall feature during deployment
    • Pluggable behavior is used to activate and disable feature within a specified range
    • A property package defined in a range is used to store the data required by the feature in this range.
    • Is the basis of the uniform framework for WSS solution distribution and deployment.
Feature implementation

To implement a feature, you can go to the feature installation directory (Local_drive: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ features)
To contain a feature definition. This feature subfolder contains a feature. xml file that defines the basic attributes of feature.
And a list of the elements that support it. A feature folder may contain only one feature. xml file, or a feature. xml file and
It is used to support the element files of the feature, such as xmlfiles, .aspx,.htm,. xsn,. resx,. dll, or other file types.

Note::

When
You can directly use Windows Resource Manager to right-click a folder and click Create. Then, when you click the folder to create a folder under the features directory, the new Folder does not inherit the permission. If
If you deploy feature to this folder, an exception is thrown on some WSS pages, such as website settings or list view pages. You can right-click the new folder, click Properties, click Security, and then click
Advanced. On the permissions tab, delete the non-inherited permissions of the folder to fix this issue. You can also use the MD command under the command line to create a folder to fix this problem.

Create
After the featurefolder is created, you can install and activate the feature through the stsadm.exe command line. You can also activate a feature on the user interface. Security
Feature is installed to make its definition and elements known throughout the server farm, and activation of feature is to make it available within a specific range
(Available ). Feature Element

The feature element defines a feature in the feature. xml file and its related components, files, and attributes. A feature contains
Feature. xml file and any number of files that describe specific elements. Another feature element from different architectures is used in an ONet. xml file. Used to determine
Specifies that a feature is activated.

Items originally included in a large site definition file are split into different feature values. Element is in Feature
Atomic level unit. A feature. xml file usually points to one or more XML files. Its top-level <elements> tag contains
Element Definition. WSS
Elements in 3.0 usually correspond to nodes distributed in ONet. xml or schema. XML in previous versions. There are many types of elements-for example, a custom menu item or an event
ProcessingProgram.
For example, a feature containing the "my favorite items" function contains the following elements:

    • A custom list is used to store the list items added to each user's favorites. After the feature is activated, it is created in a hidden list in each workspace.
    • A custom menu item used to add a list item to the favorites folder. It is used to add an attachment to all lists and is named "add to Favorites.
    • A webpart user. The top 10 favorite links of the user are displayed.

It may not be very useful for a single element in feature. However, when you enable the feature on your website, all these elements will be combined into a complete solution.

Note::

When naming the feature folder, wss only supports low-price ASCII characters and does not have spaces.

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.