cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict File Picker to certain folder(s)

eddiem
Champ in-the-making
Champ in-the-making
Hi,
I'd like to restrict both the file & category picker tool to certain directories - so file picker is restricted to a given folder and the category picker to a certain category + children (I'd also like the person picker to behave similarly in the share interface to how it does in Explorer).

I see in the WCM xForms that this is possible like so:
<control-param name="selectable_types">wcm:somefolder</control-param>

So the code in web-framework-config-custom.xml might look something like below:


<field id="mz:Owner" label="Owner" set="owner">
    <control template="/org/alfresco/components/form/controls/association.ftl" >
    <control-param name="showTargetLink">true</control-param>
     <control-param name="selectable_types">app:/company_home/people</control-param>
    </control>
</field>

Is this possible in Share 3.2 CE?
Thanks,
Eddie
1 REPLY 1

woody
Champ in-the-making
Champ in-the-making
I've done that in this way:

I've create a custom copy of association.ftl control under "Web Framework Commons/config/alfresco/site-webscripts/org/alfresco/components/form/controls"
called association_custom.ftl changing this line

parentNodeRef: "alfresco://company/home",

With my node ref (taken from node explorer) inteteas od the "alfresco://company/home" value, something like

parentNodeRef: "workspace://SpacesStore/4059db5d-6ac2-43c2-b59a-45b05b4c0454",

Then I used the association_custom.ftl intead of the association.ftl in share form config file.

Hope this helps…