We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4892
    • 7 Posts
    I have a site that I'm using Revo 2.4.2 and I've set up the most current extra MIGX for a list of images and details. Everything works great if I'm the admin and I'm using the filesystem as a media source. However, when I change the media source on my imageTV I've assigned to migx to match my client's uploads folder the file path works for the migx back end display but the web view the places the file path of the media source outside the image tag. Example (assets/uploads/<img src="images/C.Reddick.png" alt="Celia Reddick") I can't figure out what I'm doing wrong and cannot find any other posts about this. Here are my fields and grid json
    {"caption":"Student Information", "fields": [
    {"field":"name","caption":"Student Name:","inputTV":"Name"},
    {"field":"type","caption":"Student Type:","inputTV":"student type"},
    {"field":"email","caption":"Email Address:","inputTV":"email"},
    {"field":"image","caption":"upload Student Image:","inputTV":"imageTV"},
    {"field":"richtext","caption":"Content:","inputTV":"Content"}
    ]}
    ]

    [
    {"header": "Student Name", "width": "90", "sortable": "true", "dataIndex": "name"},
    {"header": "Student Degree", "width": "50", "sortable": "true", "dataIndex": "type"},
    {"header": "email Address", "width": "50", "sortable": "true", "dataIndex": "email"},
    {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
    ]


    and here's my front-end code and chunk
    [[getImageList?
    &tvname=`Mowana_migx`
    &tpl=`MowanaTpl`
    ]]

    Chunk: MowanaTpl
    </br></br>
    [[+image]]<strong>[[+name]]</strong></br>
    [[+type]]</br>
    [[+email]]</br>
    [[+richtext]]</br></br>

    <hr>

    I've set the media source on the imageTV and not the migx TV. This is not a complicated layout but it seems crazy I can't figure this out. I do have some form customization for my client's credentials but I doubt that might be causing the issue. Any help would be appreciate. Thanks Chris
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Don't use an external image TV. Or if you do, definitely don't give it an output option, just "default". The output of the TV will be the formatted TV value, which you don't want in this case, you just want the raw TV value.

      Is there a particular reason why you want to use an external TV, rather than the MIGX internal image TV? If it's because of using a media source, that's easy to do
      To specify a Media Source for the image, add another key "sourceFrom":"migx" and assign the MIGx TV to a media source using the TV's Media Sources tab

       {"field":"image","caption":"upload Student Image:","inputTVType":"image","sourceFrom":"migx"},

        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4892
        • 7 Posts
        Quote from: sottwell at Feb 28, 2016, 12:00 AM
        Don't use an external image TV. Or if you do, definitely don't give it an output option, just "default". The output of the TV will be the formatted TV value, which you don't want in this case, you just want the raw TV value.

        Is there a particular reason why you want to use an external TV, rather than the MIGX internal image TV? If it's because of using a media source, that's easy to do
        To specify a Media Source for the image, add another key "sourceFrom":"migx" and assign the MIGx TV to a media source using the TV's Media Sources tab

         {"field":"image","caption":"upload Student Image:","inputTVType":"image","sourceFrom":"migx"},


        Thank you!!! Both solutions worked but using the internal Migx only rendered a field box that the user would need to enter the the full path in. With the external TV the file chooser was created so the user could choose an image from the assigned folder.
          • 4172
          • 5,888 Posts
          it is
          inputTVtype

          not
          inputTVType


          that's the reason, why you didn't get the image-TV-type, but a textbox(the default)
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Sorry about that. My eyes keep getting worse, and I keep making more stupid typos like that.

            https://rtfm.modx.com/extras/revo/migx/migx.backend-usage#MIGX.Backend-Usage-Step2.1FormTabs
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Sorry about that. My eyes keep getting worse, and I keep making more stupid typos like that.

              https://rtfm.modx.com/extras/revo/migx/migx.backend-usage#MIGX.Backend-Usage-Step2.1FormTabs
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org