We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7131
    • 83 Posts
    How can I allow or disable comments (replix of usercomment) using a TV radio button?

    Thanks!
      at the edge of dawn,
      you ask yourself if your shadow did follow you down
      all night long
      • 7923
      • 4,213 Posts
      You mean that you wan’t to have a TV when creating your documents where you can select if commenting is used or not in that document?

      If so, then create a TV as follows:

      Variable name: replix
      Caption: Use commenting in this page?
      Input Type: Radio options
      Input Option Values: Yes==[!Replix!]||No==  (put the used parameters to replix call)
      Default Value:  
      Select your template in the Template Access section.

      Then go and edit that/those templates and add [*replix*] to the HTML code where you want the snippet output to appear. Then when you create a new document using these templates, you should see the TV in the Template Variables section and if you select Yes in the radio buttons, you should see the comments snippet running on that document after save.



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 18397
        • 3,250 Posts
        You can use TV conditional for this. I explained how to set this up somewhere in the forums a while ago for Zi.
          • 7131
          • 83 Posts
          Pretty simple indeed! Thanks.
            at the edge of dawn,
            you ask yourself if your shadow did follow you down
            all night long