cancel
Showing results for 
Search instead for 
Did you mean: 

How to show edit meta-data popup related action in ftl

mitpatoliya
Star Collaborator
Star Collaborator
Hi All,
I have a requirement where User should be able to edit associated item's properties from document details page of main parent item.
For Instance I have one content A which has two child content associated with it B and C
Now normally we can show link of those contents which redirect users to detail page of that child content but what I want is it should open edit meta-data pop up of those child item and User should be able to edit properties there. Please give a pointer.
3 REPLIES 3

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Hi,

That associated content on document details page is shown with form control "association.ftl".

Either you can customize OR create own custom form to render on document details and then custom form control similar to association.ftl.

And you can provide edit metadata link to those content from javascript control file which is called from above ftl file, "object-finder.js".

And you can open popup similar to edit metadata document library action.

Let me know if you need more details.

Hope this helps.

mitpatoliya
Star Collaborator
Star Collaborator
Hi Adit, Thank You for your response.
I am taking that approach. Only thing is I have requirement where I need to go one step further and render grand childrens as well on that view page.

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Yes, for that you will have to customize loadSelctedItems() method of your custom object-finder.js file.

You will have to call webscripts for all the children / OR else you can write your own custom webscript to fetch grand children at one go and this can be called from above custom js file.

If you write custom webscript, make sure you generate same response as OOTB webscript which is used to fetch associated children.

Hope this helps.