cancel
Showing results for 
Search instead for 
Did you mean: 

Custom picker

pylady
Champ in-the-making
Champ in-the-making
I have to customize picker on the Edit metadata page to pick nodes from a folder in a repository.
I wanted to use the association.ftl control, but I have a problem because I have an aspect with a property of type d:text (not with an association), so it doesn't let me select my items.
I solved my problem by creating customAssociation.ftl and changing 
itemType: "${field.endpointType}"
to
itemType: "my:nameType"
where "my:nameType"
is the type of nodes I want to select. In that way they become selectable.
Is it a right way to do that?
Now, I have a problem to save changes (I pick my item and save change, but on the page Show details I still have an old value), so I'm not sure that I'm on the right track.
Does anyone have any suggestions?

Best regards
1 REPLY 1

ermannorusso
Champ in-the-making
Champ in-the-making
Sorry, I can't understand why you would like to save a node into a text field. Do you want to save just the document name?