is it possible to get default values in the json without touching the dialog
Hi Team,
Hope you all are doing good.
I need a help on one requirement.
We have one component and it's dialog contains two tabs, (tab1, tab2 respectively).
We are using this component on experience fragement to get headless cms.
With the current implementation, there is sling model exporter defined already for this component
json output is in below format,
"tab1":{
"id" :
}
"tab2":{
"firstname":
"lastname":
}
For achieving tab2 in above json format i have written another sling model and used it as @ChildResource in sling model exporter defined.
I tried both ways by using @1497330(values=" ") and also tried with value="" in content.xml of dialog.
Both options need to tick on the dialog then default data is visible in the json format.
Could you please give any idea/ solution to achieve the requuirement without touching the tick of the dialog.
Thanks in advance.
Regards,
Pavan
#HeadlessCMS, #Experiencefragment