Setting up a remote control toggle

Permalink Browser Info Environment
First, set up a basic toggle, as per
http://www.concrete5.org/marketplace/addons/magic-toggle/forums/set...

Once you have this basic hover behaviour working (as above), you can now do a couple of small changes to make it work with a remote.

Edit each Magic Toggle block to have a remote label 'your_choice_of_remote_label_name' and the first Magic Toggle block to have the custom template 'on_remote_control_click'.

Then, elsewhere on the page, you add a 'Magic Toggle Remote' block, with the same 'your_choice_of_remote_label_name'. The link this displays, when clicked, will trigger the toggle from (A) to (B) and back.

The Magic Toggle Remote control block is just a link that triggers an event that the Magic Toggle blocks respond to. The common 'your_choice_of_remote_label_name' is a means of associating between them.

You can see exactly this behaviour working on my c5magic site at
http://www.c5magic.co.uk/add-ons/...

Click the Show/Hide developer information to see the remainder of the content toggle.

Type: Discussion
Status: Archived
JohntheFish
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.