Page 1 of 1

Content Toggle question - image to trigger?

Posted: Wed Jan 21, 2015 11:21 pm
by cdndesigns
I have a site using a Content Toggle section to expand and show some content. I have scratched my head and tried a bunch of different ways to use an image as the trigger but no luck.

Right now I have:
- menu image
{toggle_start title=">> Click Here to Open Mini Leaderboard" width="290" }
Code for leaderboard
{toggle_end}

So the text "> Click to open Mini Leaderboard" is the trigger.

Is there any way to update this so that clicking on the menu image would cause the toggle down?? I've tried making the toggle start above the image, and it just hides the image thus leaving you nothing to click on to trigger the expansion.

Anyone have any brilliantly obvious ideas?
TIA

Re: Content Toggle question - image to trigger?

Posted: Thu Jan 22, 2015 4:16 am
by frankmanl
This works for me

Code: Select all

{toggle_start title='<img src="uploads/images/logo1.gif" alt="" width="200" height="40" />'}
You still have to style class .trigger of course, so your image will fit into it nicely and to remove (or set) background color of the class etc.
Frank

Re: Content Toggle question - image to trigger?

Posted: Thu Jan 22, 2015 5:38 am
by cdndesigns
Awesome.. that worked!! I had tried putting <img src="/image.jpg"> in the title before but I had it with double quotation marks, that didn't work. This code with single quotation marks works perfectly!! ;D