-
☆ A M B ☆
- 24,524 Posts
Instead of using "inputTVtype":"image" you need to create an image TV with the Media Source you want, and use "inputTV":"yourImageTV".
or you can do all the configurations for your MIGX-TV with the MIGX-CMP.
Then you can add mediasources to inputTVtypes.
Its also possible with the json-configuration, but thats a bit a complicated json-string then
Ok thanks guys. Is there a good video/tutorial on Migx CMP? My brain gets a bit baffled with it.
So if I have ten departments using the same template that would suggest I'd need 10 Migx TVs applied to the same template with their image fields using the corresponding media sources. Doesn't it? Ideally I'm looking for the view in the modx file browser to adjust according to logged in user. I can do it with the dashboard files tree but the modx browser files tree is problematic.
Thanks!
[ed. note: howster last edited this post 12 years, 4 months ago.]
-
☆ A M B ☆
- 24,524 Posts
Hm. Yes, that's a different story. However, I do know that a media source's path and URL can be set dynamically according to the user. Now if I can just remember where that is...
-
☆ A M B ☆
- 24,524 Posts
That's probably what I was thinking of. Looks like the {id} is the resource ID, available to MODX as part of the Manager. I'm not sure if a snippet would work, something like assets/resourceimages/[[usergroup]]/, where the usergroup snippet would get the current user's primary group.
Quote from: sottwell at Jun 07, 2014, 08:44 AMThat's probably what I was thinking of. Looks like the {id} is the resource ID, available to MODX as part of the Manager. I'm not sure if a snippet would work, something like assets/resourceimages/[[usergroup]]/, where the usergroup snippet would get the current user's primary group.
snippets are working in the media-source - url and path - settings.
So, this should work.
the directories should be created automatically, of course.
what happens, when you remove the resourceimages - directory and create it again, not via ftp, but via the MODX-filemanager (755)