On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi,

    MODX 2.2.4
    MIGX 2.1.1

    i've been following tutorials for MIGX and thought i'd grasped it but i cannot figure out why it's not working correctly.
    My aim is to have 6 thumbnail images display in the footer region (so on every page)

    • I have a template 'Footer-images'
    • I have an image TV - 'imageTv' (no template access)
    • I have the MIGX TV - 'footerImagesTv' (template access to 'Footer-images')
    footerImagesTv - Form Tabs:
    [
    {"caption":"Image", "fields":[
        {"field":"image","caption":"Image","inputTV":"imageTv"}
    ]}
    ]

    Grid Columns
    [
    {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
    ]


    I have a Chunk for my images:
    <img src="[[+image:phpthumbof=`w=50&h=40&zc=1``]]" alt=""/>


    In my footer chunk to display the images i have:
    [[getImageList?
      &tvname=`footerImagesTv`
      &tpl=`footerImagesTpl`
      &docid=`[[~30]]`
      &limit=`6`
    ]]


    I can add an image on my resource #30 but on the front-end of the site it's the wrong image (as in it's not the image i've uploaded but another image from that folder) and it's full size. I can't figure out what the issue is so any advice would be gratefully received.

    Thanks

    J


    [ed. note: Bruno17 last edited this post 8 years ago.]
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
    • try:

      <img src="[[+image:phpthumbof=`w=50&h=40&zc=1`]]" alt=""/>


      and

      [[getImageList?
        &tvname=`footerImagesTv`
        &tpl=`footerImagesTpl`
        &docid=`30`
        &limit=`6`
      ]]


        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • Hi Bruno,

        Thanks for your rply.

        I see i left an extra ` in the chunk...however this still hasn't made any difference.
        I delete the existing uploaded image, clear the cache and then upload a different image but still on the front-end the image is not the one i've uploaded and it's displaying at full size. The image displayed front-end is always the same image...and never the one i've actually uploaded, even when i upload more than one image.

        I can't figure it out, do you have any other suggestions?
          www.9thwave.co.uk
             WEB | DESIGN | PRINT
        • is phpthumbof working in general on your installation?

          and can you show us your TV-output which you get with:

          [[*footerImagesTv]]


          (on resource 30) please.

            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
          • maybe phpthumbof is not working.
            However adding
            <img src="[[*footerImagesTv]]" alt=""/>
            generates an empty tag (the thumb does display in the Resource):
            The generated html: <img src alt>

            I've attached the error log which may make some sense of what's happening. this is when the call is as the first post?
            In the error log the reference to Kibale-Forest-National-Park.jpg is not the image i uploaded, this is the image that just keeps displaying regardless of what image i choose to upload.

            Thanks for your help [ed. note: 9thwave last edited this post 8 years ago.]
              www.9thwave.co.uk
                 WEB | DESIGN | PRINT
            • and can you show us your TV-output which you get with:


              [[*footerImagesTv]]



              (on resource 30) please.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!