Upgrading
Upgrading a site from SharePoint, Google Drive, or XWalk is a low complexity task. Despite being low in complexity, there are differences to know about and features to enable on the DA side.
High level things to know
-
Protecting authoring - By default, your content is public. You will be prompted to secure your sandbox.
-
Protecting publishing - By default, previewing and publishing is public. You can use tools.aem.live to turn on authentication for previewing and publishing.
-
Live Preview - There is a small code snippet to add to
scripts.jsto enable DA's live preview. -
Live Preview - If you have an older project, your 404.html file may need a small change for live preview.
-
Sidekick - If coming from XWalk, you may need to remove any legacy "edit" parameters in your Sidekick config.
-
Assets - Turning on AEM Assets requires an AEMaaCS instance.
-
Delivery HTML - DA & XWalk will have an extra paragraph tag when a list is nested inside another list. You can reach out to the Edge Delivery team to get this behavior changed using a feature flag.
-
Delivery - There are several differences in media publishing support. You can see these on aem.live filed under limits.
-
Query index / Sitemap - You no longer need to maintain a sheet for query indexes and sitemaps. These are now kept internal to Helix. You turn on your query indexes using a
helix-query.yamlfile (or in config bus yaml) YAML index docs.- Note: Indexes that are not sheet based (ie. DA / XWalk / etc.) will be strongly typed. If you have code that expects strings for things like arrays, do know this difference.
-
Configurations - DA has configs (settings icon in breadcrumb) and Edge Delivery has configs (config bus or
.helix/config). They both have different use cases.- DA Config - Used for DA permissions and DA feature flagging (UE, AEM Assets, etc.)
- Edge Delivery Config - Used for CDN info, preview and publish permissions, api keys, etc.
-
Spreadsheets - DA's sheet editor is not meant to be an Excel replacement. It's good for about 5,000 rows (your mileage may vary). If you believe your project has complex sheet needs: conditional formatting, formulas, a lot of data, please use Edge Delivery's content overlay feature. More on this below.
-
Spreadsheets - Helix cannot accept a named single sheet from DA. If you use named single sheets, we recommend adding another empty sheet or adjusting your code.
-
Dot folders are hidden - Folders like
/.helix,/.trashor/.daare hidden from the list view. You must enter these paths in using your browser's url bar. This is to reduce accidental changes to important configuration files.
Additional resources
- We have an end to end upgrade guide for business practitioners here: https://da.live/docs/administration/upgrade
- We have a guide on how to import content: https://github.com/adobe/da-live/wiki/Restore-from-aem
- We have a guide on setting up permissions: https://da.live/docs/administration/permissions
Live preview
Enable
The following code should be put at the bottom of your scripts.js file:
- scripts.js (JavaScript)
(async function loadDa() {
if (!new URL(window.location.href).searchParams.get('dapreview')) return;
// eslint-disable-next-line import/no-unresolved
import('https://da.live/scripts/dapreview.js').then(({ default: daPreview }) => daPreview(loadPage));
}());
This is an immediately-invoked function expression (IIFE) that will load dapreview.js if the dapreview query param is present.
Notes:
- It does not impact performance.
- It will load a CSS file to create a consistent experience (disable links).
- It creates bi-directional communication with DA.
- It will add a
da-previewclass to the body element in case you want to do live preview specific styling.
404.html
If you have an older project, you may need to adjust your 404.html file in your codebase to enable live preview.
Find
- 404.html (markup)
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
Replace
- 404.html (markup)
<script src="/scripts/scripts.js" type="module"></script>
This is a legacy value that prevents external scripts from loading.
Identity
Protecting authored content
DA uses IMS top to bottom for identity. If you are a part of an organization, you are encouraged to use your org and groups to protect your content. If you do not have an organization, or prefer to use email addresses, you can also do so. The full docs are here: https://docs.da.live/administrators/guides/permissions
Content overlay
Below is the Config Bus content object you can use to overlay SharePoint / Google Drive with DA. This will allow you to seamlessly blend Excel sheets with your DA data.
- Fstab (JSON)
"content": {
"source": {
"url": "https://adobe.sharepoint.com/:f:/r/sites/adobecom/DA%20Docs/da-bacom",
"type": "onedrive"
},
"overlay": {
"type": "markup",
"url": "https://content.da.live/adobecom/da-bacom/"
}
}