We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16899
    • 284 Posts
    Quote from: signcarver at Apr 22, 2013, 08:51 AM
    <!-- since not all devices will have 7 features, only display the 7th feature if it is there. This avoids taking up blank space at the end of the data --> 
    [[*features-text-07:notempty=`
    <div class="features-caption-2013">[[*features-caption-07]]</div>
    <div class="features-picture-2013"><img src="[[*features-picture-07]]" width="240" height="190" alt="feature for 2013 Yamaha Sport Boat"></div>
    <div class="features-text-2013">[[*features-text-07]]</div>
    `]]


    Not sure if the above will work for your situation.

    It happens the same, i mean when it´s empty not "clean" the html code!!! sad
      • 36996
      • 211 Posts
      I think that the best way to debug this is trying to output the tv in th page.
      One time when it's checked, and a second when it's not.
      Then you can write the right condition. (It should be 0 and 1).
        • 16899
        • 284 Posts
        Quote from: nir-z at Apr 22, 2013, 11:07 AM
        I think that the best way to debug this is trying to output the tv in th page.
        One time when it's checked, and a second when it's not.
        Then you can write the right condition. (It should be 0 and 1).

        I see the idea... but i´m outputing <li>. How can i say if has li ise this if not use empty?
          • 4172
          • 5,888 Posts
          Are you outputting up to 7 features?

          While this should work somehow, but seems it doesn't in your situation,
          may be you could use one MIGX-TV for all features, and all would be good.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 36996
            • 211 Posts
            If I understand you correctly, I suggest you put your output in a chunk.
            Then the checkbox will be used just to determine if the the chunk should be shown on the page.
              • 36624
              • 535 Posts
              in this case it would make more sense to use a radio button input instead of a checkbox input and force a 0 default value.

              then code check if not 0 then..

              this should work i use it all the time.. smiley
                CTRL+SHIFT+U - Clear Cache
                CTRL+SHIFT+H - Hiding Heft Panel
                CTRL+SHIFT+N - Fast Create Resource
                CTRL+ALT+P - Preview Recource (in edit resorce window)
                CTRL+ALT+S - Save
                • 16899
                • 284 Posts
                Quote from: Bruno17 at Apr 22, 2013, 01:17 PM
                Are you outputting up to 7 features?

                While this should work somehow, but seems it doesn't in your situation,
                may be you could use one MIGX-TV for all features, and all would be good.

                hi Bruno

                Yes, i´m using up to 7 features... i´ve got a checkbox TV with 20+ options. Client wants as checkboxes, to select just what he wants!!!! sad
                  • 16899
                  • 284 Posts
                  Quote from: nir-z at Apr 22, 2013, 01:45 PM
                  If I understand you correctly, I suggest you put your output in a chunk.
                  Then the checkbox will be used just to determine if the the chunk should be shown on the page.

                  Ok, i think i have to clarify something.... my checkbox TV has 20 and something checkable options, so i need a way to say... if nothing is checked nothing will be output, if yes, then will output all the values on a LI. [ed. note: legues last edited this post 13 years, 5 months ago.]
                    • 4172
                    • 5,888 Posts
                    what are the input-options of this checkbox?
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 16899
                      • 284 Posts
                      Quote from: Bruno17 at Apr 22, 2013, 11:27 PM
                      what are the input-options of this checkbox?

                      Hello Bruno

                      The input values of my TV
                      [[*property-specification]]
                      are:
                      Air conditioning||Automatic irrigation||BBQ||Borehole||Car port||Double glazing||Drive way||Electric entrance gate||Equipped kitchen||Fenced plot||Fitted wardrobes||Furnished||Heated pool||Heating||Jacuzzi||Landscaped gardens||Living/dining room||Mosquito nets||Open plan living area||Quiet Location||Satellite TV||Security alarm||Solar hot water||Storage / Utility room||Terrace||Underfloor heating||Walking distance to amenities||Water Cistern||Wood burner