We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37567
    • 13 Posts
    hey,

    The json was always valid. Looking through your example I noticed that I was calling getImageList uncached but my snippet cached.

    Sometimes a ! makes all the difference.

    Thanks for your quick response!
      • 25803 ☆ A M B ☆
      • 721 Posts
      So i updated with the Repo version to MIGX-2.0.0-beta1 but still get the Smarty Error when trying to edit any rows. I resaved my MIGX template variables just by going in to them, making sure that "migx" was selected for Input Type.

      I also cleared the cache both in the Manager and manually by deleting the contents of the core/cache folder.
        • 4172
        • 5,888 Posts
        'Unable to load template file 'element/tv/renders/input/richtext.tpl'

        seems there is something wrong with your richtext-tv. smarty can't find the richtext.tpl - file.
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 25803 ☆ A M B ☆
          • 721 Posts
          Yes. It's there. I've tried everything save blowing away everything and building from scratch. That's next.

          If I remove MIGX entirely, I can no longer even edit any resources that use it. I'll roll back to 2.2rc2 and go from there.
            • 25803 ☆ A M B ☆
            • 721 Posts
            Rolled back to 2.1.5. Installed 2.2.1 Dev and the new MIGX. Everything is working again.
              • 38473
              • 4 Posts
              Hi,

              I'm having a problem with MIGx only displaying 16 items on the front end when I have 18 in the back end.

              If I duplicate one in the back end, it replaces a different one in the front. I'm not using limit, and I've tried setting it to 300 to see if that made any difference but it didn't.

              Here's my code:

              Snippet Call:

              <ul class="PortfolioList">[[getImageList? &tvname=`Portfolio` &tpl=`PortfolioListItem` ]]</ul>


              Chunk

              <li>
              <a rel="facebox" href="[[~14? &tm=`[[MinusOne? &num=`[[+idx]]`]]`]]" title="[[+TitleText]]">
              <img src="[[+AfterImage:phpthumbof=`w=640&h=300&zc=1`]]" alt="[[+AltText]]" />
              </a>
              </li>


              MIGx TV
              [
              {"caption":"Text", "fields": [ 
              {"field":"Featured","caption":"Featured","inputTV":"Checkbox"},
              {"field":"Title","caption":"Title"},   {"field":"Testimonial","caption":"Text","inputTV":"Richtext"}
              ]},
              {"caption":"Images", "fields": [
                  {"field":"BeforeImage","caption":"Before Image","inputTV":"PortfolioImage"},
                  {"field":"AfterImage","caption":"After Image","inputTV":"PortfolioImage"},
                  {"field":"AltText","caption":"AltText"},
                  {"field":"TitleText","caption":"TitleText"} 
              ]}
              ]


              Thanks,
              Adam
                • 4172
                • 5,888 Posts
                Do you get all items (in Form of an array) with:

                [[getImageList? &tvname=`Portfolio` ]]


                and what do you get with:

                [[*Portfolio]]
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 38473
                  • 4 Posts
                  Hi,

                  Thanks for getting back to me.

                  The PHP array only returns 16, the JSON returned with [[*Portfolio]] shows all 18 items:

                  [{"MIGX_id":"3","Featured":"Yes","Title":"Panache","Testimonial":"<p>A typical fashion retouch for Panache Lingerie. The main focus being on the product and making it look fitted and comfortable, colour corrected to match the products real appearance. The model has had a cleanup and her skin smoothed.</p>","BeforeImage":"assets/images/img02_before.jpg","AfterImage":"assets/images/img02_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"7","Featured":"Yes","Title":"Panache","Testimonial":"<p>A interesting fashion retouch for Panache Lingerie. The main focus being on the product and making it look fitted and comfortable, colour corrected to match the products real appearance. The model has had a cleanup and her skin smoothed and due to health and safety the fire place was shot separately and then super imposed in post-production.</p>","BeforeImage":"assets/images/img05_before.jpg","AfterImage":"assets/images/img05_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"8","Featured":"Yes","Title":"Fruit of the Loom","Testimonial":"<p>This retouch for Fruit of the Loom involved the removal of the models hat in Post-Production. The product (shirt) has received a tidy up and a colour correction to match the products real appearance.</p>","BeforeImage":"assets/images/img07_before.jpg","AfterImage":"assets/images/img07_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"9","Featured":"Yes","Title":"Fruit of the Loom","Testimonial":"<p>Another retouch for Fruit of the Loom which involved removing the poolside female model and adding her to the foreground. The mail model in the background was also removed and the building work cleaned up. Again the product (green top) has been cleaned up and colour corrected to match the products real appearance.</p>","BeforeImage":"assets/images/img09_before.jpg","AfterImage":"assets/images/img09_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"12","Featured":"Yes","Title":"Photo Restoration","Testimonial":"<p>This photo restoration brought the client to tears after seeing the final result. The image speaks for itself and does not really need anymore explanation.</p>","BeforeImage":"assets/images/img19_before.jpg","AfterImage":"assets/images/img19_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"13","Featured":"Yes","Title":"Child","Testimonial":"<p>A gentle clean up, skin smooth of this cute little thing was all it needed, having said that I could not help myself and in the end I brought out the colour of her eyes and adding faint sparkles into them.</p>","BeforeImage":"assets/images/baby_before.jpg","AfterImage":"assets/images/baby_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"14","Featured":"Yes","Title":"Columbus International Bike Tours","Testimonial":"<p>This bike image required a new background for its appearance on the clients website to show of these fabulous bikes for there tour business. In addition to this the bikes require some shadow work to ground them. This client is based in France and if I could legally ride a bike I would defiantly offer to produce these images in exchange for a south of France bike tour!</p>","BeforeImage":"assets/images/bike_before.jpg","AfterImage":"assets/images/bike_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"15","Featured":"Yes","Title":"IS Photographic","Testimonial":"<p>IS Photographic required a cleanup of this models rather scary makeup effects.</p>","BeforeImage":"assets/images/image_01_before.jpg","AfterImage":"assets/images/image_01_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"16","Featured":"Yes","Title":"Bahlsen","Testimonial":"<p>This image for Bahlsen required the cleanup and colour correction of all the elements and then placing them onto a reflective surface. Its not clear from the image but the reflections are all from a different shot so needed to be spliced together to produce the final result.</p>","BeforeImage":"assets/images/leibniz_before.jpg","AfterImage":"assets/images/leibniz_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"17","Featured":"Yes","Title":"MaxFactor","Testimonial":"<p>This MaxFactor unit was adjusted in post-production to maximise its presentation value to the POPAI award. The main change being perspective adjustment and overall colour. The promotional graphic was swapped out after it had be caught by a reflection and a general cleanup of the units production hangovers complete this image.</p>","BeforeImage":"assets/images/maxfactor_01_before.jpg","AfterImage":"assets/images/maxfactor_01_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"18","Featured":"Yes","Title":"Chanel","Testimonial":"<p>This image for Chanel has received a perspective adjustment and general cleanup for its entrance to the POPAI awards.</p>","BeforeImage":"assets/images/maxfactor_02_before.jpg","AfterImage":"assets/images/maxfactor_02_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"19","Featured":"Yes","Title":"Panache","Testimonial":"<p>This image illustrates the power of post-production in showing the product in its best light by making it fit the model perfectly. The product has had its creases removed and colour adjusted to match the products appearance. The fine details such as the lace has been repaired and tiny bows replaced with elements from another shot.</p>","BeforeImage":"assets/images/panache_before.jpg","AfterImage":"assets/images/panache_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"20","Featured":"Yes","Title":"SeaCo","Testimonial":"<p>This image was real fun! The client required the old corporate logo removing and replacing with the new identity. The huge transport containers are of course corrugated and therefor the logo needs to fit this corrugation perfectly! This image was to be used over a 48 sheet advert so the image needed to be spot on!</p>","BeforeImage":"assets/images/seaco_before.jpg","AfterImage":"assets/images/seaco_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"21","Featured":"Yes","Title":"Panache","Testimonial":"<p>An interesting shoot for this Panache image. The studio deliberately left untouched so to speak and all the attention given to the product and the model wearing it. Another example of post-production helping the product shine by removing creases and wrinkles and making sure the colour is representative of the final product. The models legs suffered a lack of lighting and therefor needed bringing out and smoothing down.</p>","BeforeImage":"assets/images/tango_before.jpg","AfterImage":"assets/images/tango_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"10","Featured":"Yes","Title":"Heathrow Express City","Testimonial":"<p>Heathrow Express required two images in a Planetoid style showing London and its major landmarks. This image of the 'City' is the first of those two shots. I liaised with the contracted photographer and we talked through what I would required to complete rather complicated post-production. I received hundreds of images and identifying the best image for each landmark I then proceeded to splice them together to produce a panoramic image. The client then signed off on this stage before I then turned it into the Planetoid and then started the second stage of the post-production and colour adjusted the whole image and added objects (not to mention remove all the tourists caught in the original photography). The sky and clouds where then added for the final effect.</p>","BeforeImage":"assets/images/city_01_before.jpg","AfterImage":"assets/images/city_01_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"11","Featured":"Yes","Title":"Heathrow Express Trafalgar","Testimonial":"<p>Heathrow Express required two images in a Planetoid style showing London and its major landmarks. This image of 'Trafalgar Square' is the second of those two shots. I liaised with the contracted photographer and we talked through what I would required to complete this rather complicated post-production. I received hundreds of images and identifying the best image for each landmark I then proceeded to splice them together to produce a panoramic image. The client then signed off on this stage before I then turned it into the Planetoid and then started the second stage of the post-production and colour adjusted the whole image and added objects (not to mention remove all the tourists caught in the original photography and the pigeons). The sky and clouds where then added for the final effect.</p>","BeforeImage":"assets/images/city_02_before.jpg","AfterImage":"assets/images/city_02_after.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"12","Featured":"Yes","Title":"CDA","Testimonial":"<p>This retouch for CDA Kitchens required me to effectively turn on the heater element inside the frier. The chrome finish has been colour adjusted and the perspective corrected.</p>","BeforeImage":"assets/images/img12_before.jpg","AfterImage":"assets/images/img12_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"},
                  {"MIGX_id":"13","Featured":"Yes","Title":"Plantation Rug Co.","Testimonial":"<p>A rather simple example of a retouch for the Plantation Rug Company. Removing image clutter in the form of wall plugs and floor joins. The product (rug!) has been cleaned up and colour corrected to match the product</p>","BeforeImage":"assets/images/img10_before.jpg","AfterImage":"assets/images/img10_ret.jpg","AltText":"Alt Text","TitleText":"Title Text"}]


                  Thanks,
                  Adam
                    • 4172
                    • 5,888 Posts
                    I see there are some items with same MIGX_id.
                    may be there is a bug with generating this value.

                    try to use &placeholdersKeyField=`idx`
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 38473
                      • 4 Posts
                      I think it may because I reordered the list in the back end - I moved the one with MIGX_id 10 to the bottom and it has auto incremented off this instead as opposed to counting the total number of records and incrementing from that?

                      I saw the same ID's and just changed them in the DB instead.

                      Thanks

                      This discussion is closed to further replies. Keep calm and carry on.