I have a below requirement in my project using Java DXA 1.7., I am new to DXA. Can someone provide me which component templateComponent Template and page templatePage Template should I use for my requirement?
Also how can I acheiveachieve my jsonJSON output in my custom controller?
Schema Name: Custom Content Fields
Fields in Schema:
- title
title
- Text Field - contentBody
contentBody
- RichText Box - footerContent
footerContent
- Rich Text Box
When I request through http://mydomain.com/CustomController/MyPageName
My Desired Output should be as below JSON format: { "title":"Some Title", "contentBody":"Some RichText Content", "footerContent: "Again Some RichText Content" }
{
"title":"Some Title",
"contentBody":"Some RichText Content",
"footerContent: "Again Some RichText Content"
}