Djordje Marjanovic
Djordje Marjanovic

Reputation: 51

Sensenet Content Picker

How can I initialize Content Picker for ReferenceGrid field control to display content from current workspace only?

<sn:ContextInfo runat="server" Selector="CurrentWorkspace" UsePortletContext="true" ID="myContext" />
<sn:ReferenceGrid ID="ReferenceGrid1" runat="server" FieldName="RelatedDocuments" 
TreeRoots='<%# myContext.Path %>'/>

Thanks.

Upvotes: 0

Views: 68

Answers (1)

Aniko Litvanyi
Aniko Litvanyi

Reputation: 2149

There's a property on the Reference Field called SelectionRoot. You can add it and change its value in the CTD xml of your ContentType

Upvotes: 1

Related Questions