Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/aem-assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This app lets editors browse, select, sort, and remove AEM DAM assets from a Con
| IMS Client ID | Yes | Client ID from Adobe IMS. Must be requested from Adobe support — not the standard Adobe Developer Console. |
| IMS Organization | Yes | The Adobe Identity Management System (IMS) ID provided by Adobe when provisioning Adobe AEM CS for your organization. |
| Repository ID | No | Restricts the asset selector to a single repository. [The AEM Tier and Environment values are ignored if a Repository value is provided.] |
| Search path | No | Restricts the asset selector to a specific folder in the repository. [Only used if a Repository value is provided.] |
| AEM Tier | No | Restricts the asset selector to repositories in the selected tier(s). [Only used if a Repository value is not provided.] |
| Environment | No | Restricts the asset selector to repositories in the selected environment. [Only used if a Repository value is not provided.] |
| Assets URL Root | No | Specifies the root domain and path for constructing assets' URLs. [Used for generating tier or environment specific URLs] |
Expand Down
11 changes: 11 additions & 0 deletions apps/aem-assets/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ async function renderDialog(sdk) {
imsClientId,
imsOrg,
repositoryId,
path,
aemTierType,
env,
hideUploadButton,
Expand Down Expand Up @@ -283,6 +284,7 @@ async function renderDialog(sdk) {
};

if (repositoryId) contentAdvisorProps.repositoryId = repositoryId;
if (repositoryId && path) contentAdvisorProps.rootPath = path;
if (!repositoryId && aemTierType && aemTierType !== 'both')
contentAdvisorProps.aemTierType = [aemTierType];
if (!repositoryId && env === 'stage') contentAdvisorProps.env = 'stage';
Expand Down Expand Up @@ -391,6 +393,15 @@ setup({
[The AEM Tier and Environment values are ignored if a Repository value is provided.]`,
required: false,
},
{
id: 'path',
name: 'Search path',
type: 'Symbol',
default: '/content/dam',
description:
'Restricts the asset selector to a specific folder in the repository. [Only used if a Repository value is provided.]',
required: false,
},
{
id: 'aemTierType',
name: 'AEM Tier',
Expand Down
Loading