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

Add the document ID to resource browser URL #72

Closed
dymitar opened this issue Mar 20, 2018 · 5 comments
Closed

Add the document ID to resource browser URL #72

dymitar opened this issue Mar 20, 2018 · 5 comments

Comments

@dymitar
Copy link

dymitar commented Mar 20, 2018

There is a possibility in MODx for the media source to have resource specific path.
Using for example migxResourceMediaPath which is part of MIGX component.
For the editor and the resource browser to work properly with such a path the ID of the resource should be part of resource browser URL.
There is a small change needed in tinymcerte.js file (line 66)
url: MODx.config['manager_url'] + 'index.php?a=' + MODx.action['browser'] + '&source=' + MODx.config['default_media_source'] + (MODx.ctx ? ('&ctx=' + MODx.ctx) : '') + (MODx.request.id ? ('&id='+MODx.request.id) : '' )

@dymitar dymitar changed the title Add the document ID to browser URL Add the document ID to resource browser URL Mar 20, 2018
@udovichenko
Copy link

+1

@zahod5277
Copy link

+1

@mazyone
Copy link

mazyone commented Sep 10, 2018

+1

@Ibochkarev
Copy link
Collaborator

@dymitar Please send PR.

@Ibochkarev
Copy link
Collaborator

Fix acba295

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

No branches or pull requests

5 participants