We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7391
    • 49 Posts
    I’m creating a site where every page does not need to have Jot. Is there a way that the client can "turn on" jot manualy just like when you want to enable a tv (on the bottom of the edit page)?

    Thanks for the help
    • Put the Jot snippet (and any enclosing HTML container tags) in a chunk. Create a TV with radio option buttons, one pointing to an empty chunk and the other to your Jot snippet chunk. Now your users can choose to add the commenting or not.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 7391
        • 49 Posts
        Thanks alot sottwell.

        I understand how to create the two junks but i dont know how to configure the tv. How should i configure the tv?

        • On chunk named "blank" (empty), the other chunk named "jotform" (with the Jot snippet call).
          The TV has an input type of "Radio options". The Input option values would be
          Comments=={{jotform}}||No Comments=={{empty}}

          That’s one way of dealing with this; you could also use a check box.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 7391
            • 49 Posts
            Works like a charm!

            Thank you so much. It’s because this very active modx community why i love modx so much!!!!


            MODX 4 LIFE!!! grin
              • 32519
              • 94 Posts
              Quote from: sottwell at Jul 28, 2009, 05:07 PM

              Put the Jot snippet (and any enclosing HTML container tags) in a chunk. Create a TV with radio option buttons, one pointing to an empty chunk and the other to your Jot snippet chunk. Now your users can choose to add the commenting or not.


              Is this setup for a client (someone with backend access or front-end editing permissions) or can this work for a regular web-visitor?
                <a href="http://www.themovietimeline.net">The Movie Timeline</a> | <a href="http://www.antstuff.net">The Antfarm Site</a>
              • This is for a manager. To show/hide commening for a user, I would use a bit of javascript to show/hide with a button to activate it.

                Enclose the whole commenting bit in a <div id="commenting">[!Jot...!]</div>, then have a button to click to trigger the javascript to show/hide that whole div (and change the text on the button while it’s at it).
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org