How to store the values entered via component's dialog into repository other than /content/../currentPage/par node
Hi,
I have got a requirement where, I need to create a component with dialog, i will add few text fields into it.
On dialog submit, default behavior : the values entered via dialog will be stored under the current page's jcr:content (or under par node if we use parsys)
I want the values entered in dialog to be stored under any other path in repository other /content/../currentPage/par node (may be in /var/audit/ node)
Is there a way to configure the dialog submit behavior and modify according to my requirements?
for ex : I have a component : /apps/myProject/components/sample
And in component's dialog i have 2 text fields : cq:dialog->content->layout.....->items->text1 and text2
Once i drag-drop this component onto a page and enter vaues to text1 & text2 fields and submit the dialog,
The values get stored under : content/somepath/myPage/par/sample -> property_1=text1Value and property_2=text2Value
I want there text1Value and text2Value to be stored under some other path in repository.
Please suggest.
Regards,
Ajay