We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    Hello, i thing that this is not a big deal. but i don.t have any idea about this...

    simple:

    i need a TV EX: [*get-box*]
    with an Input Type: Check Box

    So, wen you go to Edit Resource in some page, there are a check box, if you click on the check box going to appear a button under the content text, that.s all...

    the button code is inside a Chunk called: {{get-box_chunk}}

    so, the TV going to call the chunk and it going to show the button... TA TAAAAAANNNNN!!!!! grin grin grin

    Some ideas???

    thank you!!!
      --
      ysanmiguel.com
      • 36404
      • 307 Posts
      hi,

      according to the chunk and TV syntax i assume you’re using Evo.

      To my mind, it’s not the TV that is going to call the chunk but a snippet that’s check if(isset($theTVvalue)) (because if not checked, a checkbox doesn’t send anything) and if yes show the button.

      Then, i think you need three elements

      - your TV
      - your button chunk
      and
      - the snippet (the one you’ll put in the page source) checking the TV value and, if finding it, returning the button chunk (if not, it just returns... nothing smiley)

      hope it helps

      Have swing
        réfléchir avant d'agir
        • 33238
        • 388 Posts
        That souds good but i.m not good in with php undecided
        may you be more specific please...

        sorry for my ignorance about php !!! grin
          --
          ysanmiguel.com
          • 4172
          • 5,888 Posts
          input-option-values for your tv:

          show button=={{get-box_chunk}}
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 33238
            • 388 Posts
            My Frien, you are amazing... is perfect!!! grin grin grin

            thank you very much!!!

            Great!!
              --
              ysanmiguel.com