Skip to content

[Element Selector] Support searchPath scoping for image field types - #3993

Draft
cancan101 wants to merge 1 commit into
pimcore:2026.xfrom
cancan101:claude/image-search-path
Draft

[Element Selector] Support searchPath scoping for image field types#3993
cancan101 wants to merge 1 commit into
pimcore:2026.xfrom
cancan101:claude/image-search-path

Conversation

@cancan101

Copy link
Copy Markdown

Adds support for the new "searchPath" class-definition option on the Image, Image Advanced (hotspotimage) and Image Gallery data types (companion to the pimcore/pimcore core change, refs pimcore/pimcore#17157).

When a search path is configured on the field, the asset selector opens with a pre-applied "fullpath" filter seeded from it. The filter is a soft default: it is visible in the selector's Filters sidebar and can be modified or cleared by the user.

  • element selector config: new config.assets.searchPath option
  • GeneralFiltersDecorator: new initialFilters config, passed as initialValues to the applied-filters store (reset still clears to the unseeded defaults)
  • asset selector listing: seeds a fullpath field filter from searchPath
  • image / hotspot-image / image-gallery components: thread searchPath from the field definition into every element-selector call site
  • class editor: "Search Path" folder picker next to "Upload Path" for all three field definition forms

Claude-Session: https://claude.ai/code/session_01Rf6z83yKPGdQKoVS5B2UeT

Changes in this pull request

Resolves pimcore/pimcore#17157

Additional info

Adds support for the new "searchPath" class-definition option on the
Image, Image Advanced (hotspotimage) and Image Gallery data types
(companion to the pimcore/pimcore core change, refs pimcore/pimcore#17157).

When a search path is configured on the field, the asset selector opens
with a pre-applied "fullpath" filter seeded from it. The filter is a
soft default: it is visible in the selector's Filters sidebar and can be
modified or cleared by the user.

- element selector config: new config.assets.searchPath option
- GeneralFiltersDecorator: new initialFilters config, passed as
  initialValues to the applied-filters store (reset still clears to the
  unseeded defaults)
- asset selector listing: seeds a fullpath field filter from searchPath
- image / hotspot-image / image-gallery components: thread searchPath
  from the field definition into every element-selector call site
- class editor: "Search Path" folder picker next to "Upload Path" for
  all three field definition forms

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rf6z83yKPGdQKoVS5B2UeT
Copilot AI balanced review requested due to automatic review settings August 14, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@pimcore-deployments

Copy link
Copy Markdown
Collaborator

🚫 Issue-link guardrail failed — this PR has been converted to draft.

Every PR must reference a tracking issue in pimcore/platform-version so the change stays traceable.

  • Resolves https://github.com/pimcore/pimcore/issues/17157 does not reference pimcore/platform-version.

Add the link with a keyword in the PR description (not in a comment): https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests

When fixed, press Ready for review to re-run the checks.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Option to Limit Search Path for Images

4 participants