We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10713
    • 41 Posts
    gerritvanaaken Reply #71, 13 years ago
    ... and don’t forget to create the plugin and check the correct events to fire that plugin. Add-On won’t work without it.

    @Bruno: You really need a transport package for this!
      • 4172
      • 5,888 Posts
      @gerritvanaaken:

      He talks about the old imagelistTV and multiItemsTV, not about multiItemsGridTV.
      There is no plugin for the old ones.

      transport-package: there are still issues with higher priority.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36711
        • 68 Posts
        hi everyone

        now I am getting closer and closer to install it and configure

        still two more importan issues here, especially asking you Bruno

        1.
        what do you suggest? rather use only the multiitemTV instead of the older imagelist?
        in each zip file I can find the same snippet.getImagelist.php

        2. what should I do with the "multiitems.tpl" file under

        \manager\templates\default\element\tv\renders\input\

        as it doesn’t allow me to upload neither through FTP nor through MODX file upload

        lots of thanx
          sherlockseo
          • 4172
          • 5,888 Posts
          1. this depends on what you want todo with it.

          there are three ones.
          The first one was imagelistTv. With this you can add multiple image/title - pairs.

          The second was multiItems-TV. With this you can add multiple textbox-items. Each item can have one or more (configurable) text-input-fields.

          The third and newest is multiItmesGridTV. With this you can also add multiple Items. Each field can have another TV-type and there is a configurable editor-window which opens when you add/edit items. You can sort them with drag/dropping the grid-rows. It uses the new path-input-properties of image-TVs in revo 2.1.
          There is also included the newest version of getImageList-snippet with more features.

          2. If you cannot upload this file you need to check your permissions on that folder.

          In multiItemsGridTV there are all files now under core/components/multiItemsGridTv. This is the reason, for needing the included plugin.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 36711
            • 68 Posts
            thanx a lot Bruno, you really helped us out smiley

              sherlockseo
              • 21017
              • 3 Posts
              Hello,

              PhpThumbOf is not creating thumbnails. It works great with normal image-TVs but generates empty values within getImageList. There is no error in the modx log. productPics TV Output Type is set to TEXT.
              Do you have any idea?

              [[getImageList? &tvname=`productPics`&tpl=`@CODE:<img src="[[+imageURL:phpthumbof=`w=160&h=160&zc=C&f=jpeg&q=60`]]" alt="[[+imageAlt]]" title="" />`]]
                • 4172
                • 5,888 Posts
                make use of a chunk. phpthumbof doesn’t work with @CODE

                http://modxcms.com/forums/index.php/topic,58511.msg334427.html#msg334427
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 8442
                  • 48 Posts
                  Hey Bruno, is there a definitive way I can get the save button to be clickable after entering details in these fields?

                  Thanks for your hard work on this, awesome feature, use it in all my projects.
                    • 5143
                    • 116 Posts
                    Firstly - to echo most of the other comments - this is a great addition, many thanks.
                    I have the TV set up and working just fine, but I have a question regarding how to reference the TV using getResources.

                    I have a container resource with an id of "122" inside which the client will have a number of resource documents, all using a template that has the imagelistTV assigned to it.
                    The call I use to populate the resource documents is:
                    [[getImageList? &tvname=`projectImagesTV`&tpl=`@CODE:<img src="[[+imageURL]]" class="slide"/>`]]

                    Then, in order to populate a list of links to these resources I’ve used getResources as follows:
                    [[!getResources?
                    &limit=`0`
                    &parents=`122`
                    &showHidden=`1`
                    &includeContent=`1`
                    &includeTVs=`1`
                    &processTVs=`1`
                    &tvPrefix=``
                    &tpl=`galleryTpl`]]

                    And finally, my galleryTpl is structured like this:
                    <li class="galleryItem">
                       <a href="[[~[[+id]]]]" class="galleryLink">
                          <img src="[[+imageURL]]" alt="[[+imageAlt]]" class="albumThumb" />
                          <span class="galName">[[+pagetitle:ellipsis=`30`]]</span><br />
                       </a>
                       [[+projectdate:notempty=`<span class="galYear">[[+projectdate]]</span>`]]
                    </li>


                    ... apologies for the exhaustive scenario...

                    Almost everything is working perfectly, except for the "<img..." part of galleryTpl. What I’m trying to do is generate a specifically sized thumbnail (most likely with phpthumbof) of the first image added to the imagelistTV, but I can’t figure out how it should be done.

                    Can anyone offer some suggestions?
                      • 4172
                      • 5,888 Posts
                      use the snippet from here:
                      https://github.com/Bruno17/multiItemsGridTV/blob/master/core/components/migx/elements/snippets/snippet.getImagelist.php
                      Then you would use something like that in your galleryTpl:

                      <li class="galleryItem">
                         <a href="[[~[[+id]]]]" class="galleryLink">
                            [[!getImageList? &docid=`[[+id]]` &tvname=`projectImagesTV`&tpl=`imageTpl` &limit=`1`]]
                            <span class="galName">[[+pagetitle:ellipsis=`30`]]</span><br />
                         </a>
                         [[+projectdate:notempty=`<span class="galYear">[[+projectdate]]</span>`]]
                      </li>


                      and in imageTpl:
                      <img src="[[+imageURL]]" alt="[[+imageAlt]]" class="albumThumb" />



                      you can also use phpthumbof:

                      [[+imageURL:phpthumbof=`................`]]
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!