sharepoint - Custom actions for a content type but not one of its childen -



sharepoint - Custom actions for a content type but not one of its childen -

i creating item in dropdown go application page created. alternative in dropdown added context menu items spesified content types. however, seam have nail little snag.

<customaction id="userinterfacecustomactions.documentmigratetolocation" registrationtype="contenttype" registrationid="0x0101" location="editcontrolblock" sequence="500" title="migrate document location"> <urlaction url="~sitecollection/_layouts/contentmigrationtool.aspx?listid={listid}&amp;itemid={itemid}"/>

this added alternative menu document content types (0x0101 + children). perfect, because need alternative on word documents. unfortunatly don't want alternative on lets image content type (0x010102).

how can have alternative available word documents (0x0101) , not on of children content types (ex.: 0x010102)?

thank in advance, edouard

i'm thinking have couple options, given aren't given much flexibility when it's ecb customaction:

explicitly define customaction all document & descendant content types except pictures.

some kind of craziness involving creating customaction, time controlassembly/class, checks content type of spcontext.current.list, , emits javascript hide links containing above href if it's image library.

other i'm afraid i'm drawing blanks

sharepoint sharepoint-2007

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -