상세 컨텐츠

본문 제목

[MOSS] Feature 이해 하기

MOSS

by happynuri 2008. 7. 21. 11:36

본문


C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\Chiwonii 를 만들고

\\Chiwonii\Feature.xml
<?xml version="1.0" encoding="utf-8" ?>
<Feature Title="New Simple Form Toolbar Button"
  Scope="Web"
  Id="72A67618-42FA-4dbb-A6F8-566EF1393F19"
  xmlns="http://schemas.microsoft.com/sharepoint/">
  <ElementManifests>
    <ElementManifest Location="Elements.xml" />
  </ElementManifests>
</Feature>

id의 내용은 guid 이고 자세한 내용은 Elements 에 있다는 내용


\\Chiwonii\Elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Title="Simple"
    Sequence="10"
    RegistrationType="List"
    RegistrationId="104"
    Location="EditFormToolbar"
    Id="Simple Toolbar">
    <UrlAction Url="/_layouts/SampleUrl.aspx" />
  </CustomAction>
</Elements>

Simple이라는 링크가 104번(공지사항)에 생기고 이벤트는 수정 될때 인데 링크를 누르면 만들어 놓은

SampleUrl로 이동이 된다 라는 뜻이다.

아래는 돼굴이님의 블로그에서 퍼왔다.

#. /FrogFeature/frogzzon.xml 파일 내용


 *. RegistrationType:
ContentType,
FileType,
List,
ProgId

 *. Location 옵션:
ViewToolbar,
EditControlBlock(List 화면 Item),
NewFormToolbar(신규작성),
DisplayFormToolbar(조회),
EditFormToolbar(수정)

 *. RegistrationId : 템플릿 번호(리스트 템플릿을 만든거라면 부여된 번호를 주면 됩니다.)
100  Generic list
101  Document library
102  Survey
103  Links list
104  Announcements list
105  Contacts list
106  Events list
107  Tasks list
108  Discussion board
109  Picture library
110  Data sources
111  Site template gallery
113  Web Part gallery
114  List template gallery
115  XML Form library
120  Custom grid for a list
200  Meeting Series list
201  Meeting Agenda list
202  Meeting Attendees list
204  Meeting Decisions list
207  Meeting Objectives list
210  Meeting text box
211  Meeting Things To Bring list
212  Meeting Workspace Pages list
300  Portal Sites list.
1100  Issue tracking
2002  Personal document library
2003  Private document library


 

[출처] 돼굴모드로 개발하기 - Feature 만들기|작성자 돼굴이


* 추가 *

location에 관해서 더 많은 정보를 알고 싶으시면

http://msdn.microsoft.com/en-us/library/bb802730.aspx 를 참조하세요


<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="ABEA644E-0C66-4bfa-9F67-BA106F5D2270"
    Scope="Site"
    Title="GoGoMOSS"
    Description="Go to Microsoft Office SharePoint Server">
    <ElementManifests>
    <ElementManifest Location="Elements.xml" />
    </ElementManifests>
</Feature>

 

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="175B270F-239E-4955-97CB-94227E5DAA17"
    GroupId="SiteActions"
    Location="Microsoft.SharePoint.StandardMenu"
    Sequence="1000"
    Title="GoGoMOSS"
    Description="Go to Microsoft Office SharePoint Server">
    <UrlAction Url="http://링크.aspx" />
    </CustomAction>
</Elements>

이렇게 하면, 사이트 작업 밑으로 추가가 됩니다.





이 링크에도 자세히 설명 되어 있습니다.
http://blog.rafelo.com/2008/06/how-to-add-menu-items-to-sharepoint.html


관련글 더보기

댓글 영역