How to install masterpage,pagelayout,CSS,JS and images through Feature

来源:互联网 发布:千本樱动作数据 编辑:程序博客网 时间:2024/05/22 08:17

  First,I should list the hierarchy about this project,PFB.

 

 

 MasterPages/ElementManifest.xml

 

 

 

 PageLayouts/ElementManifest.xml

 

 

 

StyleLibrary/ElementManifest.xml

 

feature.xml

 

 

Then you can build this project and deploy it.

After that you should active this feature following the menus.Because feature scope is site,so you should find  Site Collection Administration,under this section you can find

Site collection features,click it,then you can find the feature which you just install,please active it.Then you can use it.

 

If feature scope is web,you can follow this tab.

Site Administration --Site features