I'm trying to set up something like a gallery for press articles.
Everything is fine except one problem I can't solve yet.
I have two image-Fields in my MIGX-Formtabs (Input TV type > image).
One for the logo of the newspaper, one for the article itself.
As there will be a lot of articles in future, I'd like to have two different folders: logos and articles.
I created them and set them up as mediasources; they work in the mediamanager.
How can I assign the logos-medaisource to the logo-image-field and analogical for the articles?
I tried on tab Mediasources "Source from: config" and added my mediasource below - without success.
Here I'm not sure if the Source ID ist the Number of the mediasource or the name...
Do I have a fundamental fault in my way or did I just miss a small thing?
Thanks for helping...
Source from: config
should work here
It is the mediasource-id, not the name.
Try to add a configuration for both contexts 'mgr' and 'web'
-
☆ A M B ☆
- 24,524 Posts
There are two ways you can do this. You can use a TV instead of a TV Type
{"field":"image1","caption":"Image 1","inputTV":"image1TV"},
{"field":"image2","caption":"Image 2","inputTV":"image2TV"}
Create the two image TVs and assign them to their Media source. Do not assign them to a template.
You can use the configuration to specify if the source is from MIGx (a Media Source assigned to the MIGx TV itself) or config, then specify in the configuration JSON what media source to use.
{"field":"image2","caption":"Image","inputTVtype":"image","sourceFrom":"config","sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"3\"},{\"MIGX_id\":\"2\",\"context\":\"de\",\"sourceid\":\"3\"}]"},
https://forums.modx.com/thread/84501/migx-media-source