Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[Tutorial] Getting Started with the AEM SPA Editor

Avatar

Administrator

SPAEDITOR1.png

Get started with the AEM SPA Editor to create apps that can be authored like a regular site; these are the best resources.

The new WKND Tutorial explains step by step how to build such an app: Getting Started with the AEM SPA Editor - WKND Tutorial

A multi-part tutorial on how to develop for the AEM SPA Editor. Walks through the implementation of a Single Page Application, written using React JS, that can be edited within Adobe Experience Manager. Covers foundation topics like project setup, component mapping, front end development tools, and application routing.

Happy Learning!

8 Replies

Avatar

Level 2

Hello, thanks for the tutorial. It's very good. But I have a problem that it's not working . The AEM version that I'm using is 6.4, I think I should be using 6.4.2, is that correct? If it is, what can I do with 6.4 version, just write components with React?

Best regards,

Ogün Adsay.

Avatar

Employee Advisor

Yes without the ServicePack, the components won't be able to be edited in AEM.  Service Pack 2 is freely available to download and install: https://www.adobeaemcloud.com/content/marketplace/marketplaceProxy.html?packagePath=/content/compani...

Avatar

Level 1

Hi,

In Getting Started with the AEM SPA Editor - Chapter 2 - Header Component, can we have the header authorable in AEM so that the author manager can change the text without code change?

Thanks

Joan

Avatar

Level 1

Hi,

I follow instructions on Getting Started with the AEM SPA Editor - Chapter 1.

When I Navigate to http://localhost:4502/content/wknd-events/react/home.html  on step 9,

the page is blank and there's error in browser console SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data.

I got the same error when I download source code from githup for

I'm using AEM 6.4.

Would you please help?

Thanks

Joan

Avatar

Employee Advisor

Hi jtran15 , do you have AEM 6.4 and ServicePack 2 installed?

What happens when you navigate to http://localhost:4502/content/wknd-events/react.model.json ? Does the JSON render as expected?

Avatar

Level 1

Hi,

Thank you for responding .

Yes, I have AEM6.4 and Service Pack 2 installed. http://localhost:4502/system/console/status-productinfo  shows Adobe Experience Manager (6.4.2.0).

http://localhost:4502/content/wknd-events/react.model.json returns correct json.

{

  • "title": "React App",
  • ":type": "wknd-events/components/structure/app",
  • ":items": { },
  • ":itemsOrder": [ ],
  • ":path": "/content/wknd-events/react",
  • ":hierarchyType": "page",
  • ":children": {
    • "/content/wknd-events/react/home": {
      • "title": "Home",
      • ":type": "wknd-events/components/structure/page",
      • ":items": {
        • "root": {
          • "columnCount": 12,
          • "columnClassNames": {
            • "responsivegrid": "aem-GridColumn aem-GridColumn--default--12"
            },
          • "gridClassNames": "aem-Grid aem-Grid--12 aem-Grid--default--12",
          • ":items": {
            • "responsivegrid": {
              • "columnCount": 12,
              • "columnClassNames": {
                • "image": "aem-GridColumn aem-GridColumn--default--12",
                • "text": "aem-GridColumn aem-GridColumn--default--12"
                },
              • "gridClassNames": "aem-Grid aem-Grid--12 aem-Grid--default--12",
              • ":items": {
                • "text": {
                  • "richText": true,
                  • ":type": "wknd-events/components/content/text"
                  },
                • "image": {
                  • "widths": [ ],
                  • "lazyEnabled": true,
                  • ":type": "wknd-events/components/content/image"
                  }
                },
              • ":itemsOrder": [
                • "text",
                • "image"
                ],
              • ":type": "wcm/foundation/components/responsivegrid"
              }
            },
          • ":itemsOrder": [
            • "responsivegrid"
            ],
          • ":type": "wcm/foundation/components/responsivegrid"
          }
        },
      • ":itemsOrder": [
        • "root"
        ],
      • ":path": "/content/wknd-events/react/home",
      • ":hierarchyType": "page"
      }
    }

}

Avatar

Level 4

Hi  Team,

I tried to follow the same steps that you have mentioned but am getting an like below

I have installed the service pack also

Installed Products

Adobe Experience Manager (6.4.2.0)

error.PNG

Avatar

Level 1

Hi All

I am working on AEM React Integration project. 

I have a requirement where I need to use existing Header and footer component which are the traditional HTL component. All other components would be from react.

However, the content of HTL components is not rendering on the page in the SPA editor project.  Any suggestions?