Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.x - Add request parameters to MODX Browser page #16464

Closed
wants to merge 2 commits into from

Conversation

matdave
Copy link
Contributor

@matdave matdave commented Aug 11, 2023

What does it do?

Adds the ability to pass a source ID and/or directory to the media browser page.

Why is it needed?

Currently when you open the media browser page it just opens the default source at the root level. This change allows people to create menu links that open to a specific source and/or directory.

How to test

Create a secondary media source and then specify it with the source parameter: /manager/?a=media/browser&source=2

Specify a folder in your system with the openTo parameter: /manager/?a=media/browser&openTo=assets

Specify both: /manager/?a=media/browser&source=2&openTo=assets

Related issue(s)/PR(s)

Client request

@smg6511 smg6511 added the feature Request about implementing a brand new function or possibility. label Sep 13, 2023
@rthrash rthrash added this to the v3.1.0 milestone Sep 21, 2023
@Mark-H
Copy link
Collaborator

Mark-H commented Feb 10, 2024

This was implemented as part of #16394 which has been merged today, so I'm closing this as already done.

Paths now take the form of: /manager/?a=media/browser&source=1&dir=assets/components/

@Mark-H Mark-H closed this Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request about implementing a brand new function or possibility.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants