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
-
☆ A M B ☆
- 24,524 Posts
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.
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?
-
☆ A M B ☆
- 24,524 Posts
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.
Quote from: sottwell at Jul 28, 2009, 12: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 M B ☆
- 24,524 Posts
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).