You can create customAssociation.ftl and change
itemType: "${field.endpointType}"
to itemType: "my:nameType"
where "my:nameType" is the type of nodes you want to select. In that way they become selectable.
Tahir gave you a good explanation, but maybe this is another way to solve that issue.
Custom picker in Alfresco Share
-
19-09-2022 - |
Question
I'm using Alfresco Share 4.2c and I have an aspect with a property of type d:text.
On the Edit Metadata page I would like to create a custom picker for that property.
The closest thing to a file picker I've seen is the association.ftl control. However, if I use it, it doesn't let me select my items, I don't have the symbol "+" beside.
I don't use associations, but maybe I can extend association.ftl to choose my items? Or there is another way to solve my problem?
Thanks in advance,
Jana
Solution 3
OTHER TIPS
The thing is you'll also need the add a custom object-finder.js
In the client site JS file it does a specific call to Alfresco.constants.PROXY_URI + "api/forms/picker/" + this.options.itemFamily;
So you'll need to define a custom repo webscript which will return your aspect node so you can pick that one.
So in short:
- Custom association.ftl & picker.inc.ftl to initialize your custom object-finder
- Custom (new name) object-finder.js
- Change the form.get.head (probably changed in 4.2) and include your new js
- Custom repo webscript which returns in the same matter as the default webscript your aspect nodes
---- UPDATE ----
After seeing your comment to start in a specific location take a look at the wiki. There is a startLocation param you can fill & the displayMode can be set to list to do a multi-select.
You can find detailed instructions on how to extend object finder to meet your requirements.
With custom association.ftl, picker.inc.ftl and object-finder.js .
http://alfrescoblog.com/2014/05/28/alfresco-share-custom-object-finder-js/