We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    do you have an example what you mean with default-value?
    some items filled by default or a default value for some of the fields?
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 16702 ☆ A M B ☆
      • 536 Posts
      Quote from: Bruno17 at Jun 09, 2011, 03:41 PM

      do you have an example what you mean with default-value?
      some items filled by default or a default value for some of the fields?

      I mean that some pictures (4 pictures) I want to appear on every page where use a MIGX - TV and nivo chunk, but for this to happen must in all my pages to indicate/put manual the pictures ... anything by default for all pages
      maybe i mean "...or a default value for some of the fields"
        palma non sine pulvere
        • 4172
        • 5,888 Posts
        I didn’t try it but you should be able to put the resulting json-string of a filled MIGX tv-value to the default-value.
        you can get this string by switching the filled MIGX-TV to textarea.

        Another way for same records on different pages is:

        Create a new Resource and fill out the MIGX-TV.
        Say this Resource has an id of 999

        then use it this way on all pages:

        [[getImageList? &docid=`999`&tvname=`myMIGXtv`&tpl=`myMIGXtpl`]]
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 16702 ☆ A M B ☆
          • 536 Posts
          Quote from: Bruno17 at Jun 09, 2011, 04:02 PM

          I didn’t try it but you should be able to put the resulting json-string of a filled MIGX tv-value to the default-value.
          you can get this string by switching the filled MIGX-TV to textarea.
          ....

          how can i find the resulting json-string smiley)) maybe question is stupid, sorry smiley
            palma non sine pulvere
            • 4172
            • 5,888 Posts
            there are several ways. I think I will add a import/export - feature.

            for now:
            first method: use firebug to get the value from hidden-field.

            second method:
            fill your MIGX-TV with images as you would normally do.
            then on elements-tab->TVs->rightclick->duplicate TV
            check duplicate values.
            Note: Don’t switch the existing TV to another input-type, because all input-properties will go away! (happend to me right now tongue)
            then edit this duplicated TV switch to input-type textarea.
            go back to your resource and you will see the resulting json-string in this textarea.
            now you can copy that string into the default value of your MIGX-TV

            third method:
            add to your resource with your filled TV: [[*yourMIGXtv]] choose content-type: text and view the resource from frontend.


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

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 16702 ☆ A M B ☆
              • 536 Posts
              Quote from: Bruno17 at Jun 10, 2011, 03:02 AM

              ....

              third method:
              add to your resource with your filled TV: [[*yourMIGXtv]] choose content-type: text and view the resource from frontend.




              great!

              and i get:

              [{"name":"Първа снимка","url":"www.abv.bg","image":"images/lyatna_promocia.jpg","caption":"ляляляляля яквйяквй акдйс аскайд скйд скдй сйкд "},{"name":"Втора снимка","url":"dir.bg","image":"images/pochivni_dni.jpg","caption":"sdsdsdsd sdsd"},{"name":"Трета снимка","url":"dnes.bg","image":"images/ski_bansko.jpg","caption":"sssssssss"},{"name":"Четвърта снимка","url":"danon.bg","image":"images/pochivka.jpg","caption":"fdfdfdfd"}]
              


              and then i put this in Input Options - > Default Value
              now i have this images in every page where i call the MIGX-TV
              Bruno Thanks!

              Regards,
              K.
                palma non sine pulvere
                • 34459
                • 134 Posts
                Dose someone have an idea why images might not work? Everything else, caption/urls work but not images..(using revo 2.1) I did the tutorial at the top. Everything shows apart from images...
                  Check out blackflow.pl
                  • 16702 ☆ A M B ☆
                  • 536 Posts
                  Quote from: Bruno17 at May 20, 2011, 01:13 AM



                  Tabs:

                  [
                  {"caption":"Image", "fields": [
                      {"field":"name","caption":"Name","description":"Name for the image"},
                      {"field":"url","caption":"Url"}, 
                      {"field":"image","caption":"Image","inputTV":"image"}
                  ]}, 
                  {"caption":"Caption", "fields":[
                      {"field":"caption","caption":"Caption","inputTV":"caption"}
                  ]}
                  ] 
                  


                  Columns:

                  [
                  {"header": "Name", "width": "160", "sortable": "true", "dataIndex": "name"}, 
                  {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
                  ]
                  


                  Bruno, hello again smiley
                  I upgrade to 2.1.2 and i have strange problem with nivoSlider...i thing something in MIGX-TV is wrong in 2.1.2.
                  the problem is with CAPTION tv - when i type something in caption in tab i have no result and i have strange input in main TV
                  look at this:
                    palma non sine pulvere
                    • 3109 ☆ A M B ☆
                    • 894 Posts
                    Quote from: Kristalin at Jul 23, 2011, 11:44 AM

                    Quote from: Bruno17 at May 20, 2011, 01:13 AM



                    Tabs:

                    [
                    {"caption":"Image", "fields": [
                        {"field":"name","caption":"Name","description":"Name for the image"},
                        {"field":"url","caption":"Url"}, 
                        {"field":"image","caption":"Image","inputTV":"image"}
                    ]}, 
                    {"caption":"Caption", "fields":[
                        {"field":"caption","caption":"Caption","inputTV":"caption"}
                    ]}
                    ] 
                    


                    Columns:

                    [
                    {"header": "Name", "width": "160", "sortable": "true", "dataIndex": "name"}, 
                    {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
                    ]
                    


                    Bruno, hello again smiley
                    I upgrade to 2.1.2 and i have strange problem with nivoSlider...i thing something in MIGX-TV is wrong in 2.1.2.
                    the problem is with CAPTION tv - when i type something in caption in tab i have no result and i have strange input in main TV
                    look at this:


                    You can also try using NivoGallery, it works without MIGx or without as Bruno has explained on this post.

                    Let me know if you have any issues or questions.
                      Benjamin Marte
                      Interactive Media Developer
                      Follow Me on Twitter | Visit my site | Learn MODX
                      • 4172
                      • 5,888 Posts
                      Quote from: Kristalin at Jul 23, 2011, 11:44 AM

                      Quote from: Bruno17 at May 20, 2011, 01:13 AM



                      Tabs:

                      [
                      {"caption":"Image", "fields": [
                          {"field":"name","caption":"Name","description":"Name for the image"},
                          {"field":"url","caption":"Url"}, 
                          {"field":"image","caption":"Image","inputTV":"image"}
                      ]}, 
                      {"caption":"Caption", "fields":[
                          {"field":"caption","caption":"Caption","inputTV":"caption"}
                      ]}
                      ] 
                      


                      Columns:

                      [
                      {"header": "Name", "width": "160", "sortable": "true", "dataIndex": "name"}, 
                      {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
                      ]
                      


                      Bruno, hello again smiley
                      I upgrade to 2.1.2 and i have strange problem with nivoSlider...i thing something in MIGX-TV is wrong in 2.1.2.
                      the problem is with CAPTION tv - when i type something in caption in tab i have no result and i have strange input in main TV
                      look at this:


                      I’ve no problems at all in 2.1.2 and MIGX. There must be something else wrong.
                      Seems there is another TV in the category nivoslider, which doesn’t work.
                      Which TVs do you have in the category nivoslider?
                      And what type of TV is your caption-TV?
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!