From 30505d59a46101cfea18fbdb8ae33fd9e391a342 Mon Sep 17 00:00:00 2001 From: Michael Reynolds Date: Fri, 4 Sep 2026 16:56:30 -0400 Subject: [PATCH 1/2] adds new configurable parameter for setting search path --- apps/aem-assets/README.md | 1 + apps/aem-assets/src/index.jsx | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/apps/aem-assets/README.md b/apps/aem-assets/README.md index b883415b26..a030398ef6 100644 --- a/apps/aem-assets/README.md +++ b/apps/aem-assets/README.md @@ -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] | diff --git a/apps/aem-assets/src/index.jsx b/apps/aem-assets/src/index.jsx index 645462aff8..4f819353d2 100644 --- a/apps/aem-assets/src/index.jsx +++ b/apps/aem-assets/src/index.jsx @@ -191,6 +191,7 @@ async function renderDialog(sdk) { imsClientId, imsOrg, repositoryId, + path, aemTierType, env, hideUploadButton, @@ -283,6 +284,7 @@ async function renderDialog(sdk) { }; if (repositoryId) contentAdvisorProps.repositoryId = repositoryId; + if (repositoryId && path) contentAdvisorProps.path = path; if (!repositoryId && aemTierType && aemTierType !== 'both') contentAdvisorProps.aemTierType = [aemTierType]; if (!repositoryId && env === 'stage') contentAdvisorProps.env = 'stage'; @@ -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', From 61c89a2fd2ce6615d75f4da89a5398ebd0deb0c3 Mon Sep 17 00:00:00 2001 From: Michael Reynolds Date: Tue, 8 Sep 2026 11:57:57 -0400 Subject: [PATCH 2/2] update content advisor to restrict path access vs auto selecting path --- apps/aem-assets/src/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/aem-assets/src/index.jsx b/apps/aem-assets/src/index.jsx index 4f819353d2..d15e9731ce 100644 --- a/apps/aem-assets/src/index.jsx +++ b/apps/aem-assets/src/index.jsx @@ -284,7 +284,7 @@ async function renderDialog(sdk) { }; if (repositoryId) contentAdvisorProps.repositoryId = repositoryId; - if (repositoryId && path) contentAdvisorProps.path = path; + if (repositoryId && path) contentAdvisorProps.rootPath = path; if (!repositoryId && aemTierType && aemTierType !== 'both') contentAdvisorProps.aemTierType = [aemTierType]; if (!repositoryId && env === 'stage') contentAdvisorProps.env = 'stage';