Skip to main content
added 42 characters in body
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

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:

  • titletitle - Text Field
  • contentBodycontentBody - RichText Box
  • footerContentfooterContent - 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"
}

I have a below requirement in my project using Java DXA 1.7. I am new to DXA. Can someone provide me which component template and page template should I use for my requirement?

Also how can I acheive my json output in my custom controller?

Schema Name: Custom Content Fields in Schema:

  • title - Text Field
  • contentBody - RichText Box
  • 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" }

I have below requirement in my project using Java DXA 1.7, I am new to DXA. Can someone provide me which Component Template and Page Template should I use for my requirement?

Also how can I achieve my JSON output in my custom controller?

Schema Name: Custom Content

Fields in Schema:

  • title - Text Field
  • contentBody - RichText Box
  • 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"
}
edited tags
Link
Rick Pannekoek
  • 21.4k
  • 1
  • 18
  • 30
Source Link

JSON output from Tridion Java DXA 1.7

I have a below requirement in my project using Java DXA 1.7. I am new to DXA. Can someone provide me which component template and page template should I use for my requirement?

Also how can I acheive my json output in my custom controller?

Schema Name: Custom Content Fields in Schema:

  • title - Text Field
  • contentBody - RichText Box
  • 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" }