2009-08-24 5 views
3

나는 RegistrationType = "ContentType을"과에서 CustomAction 정의가 :CustomAction 메뉴 항목이 하위 콘텐츠 형식에 적용됩니까?

<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
    <CustomAction 
     Id="Sample.DuplicateListItem" 
     Location="EditControlBlock" 
     Title="Copy Item..." 
     RegistrationType="ContentType" 
     RegistrationId="0x01010012"> 
     <UrlAction Url="~site/_layouts/TheKidListActions/CopyListItem.aspx?List={ListId}&amp;ID={ItemId}"/> 
    </CustomAction> 
</Elements> 

이 상황에 맞는 항목 메뉴가 표시됩니다이 콘텐츠 형식을 사용하는 모든 문서 라이브러리.

제 질문은 콘텐츠 유형이 0x010100120013 (0x01010012에서 상속) 인 목록에 대해이 컨텍스트 항목 메뉴가 표시됩니까?

답변

2

시도해 보지 않았지만 네가 맞춤 콘텐츠를 상위 콘텐츠에 연결하면 하위 페이지에도 푸시됩니다. 에 연결된이에서 CustomAction을 얻을 것이다 무엇의 식별자 -

은 내가 Link

RegistrationId에서이 정보를 얻었다. 콘텐츠 유형별로 연결하기로하고 RegistrationId는 0x01이므로이 CustomAction을 항목 콘텐츠 유형과 그로부터 상속 한 모든 항목에 첨부합니다.

관련 문제