Reputation: 51
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
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