Content Toggle question - image to trigger?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cdndesigns
Forum Members
Forum Members
Posts: 13
Joined: Wed Oct 15, 2008 9:16 pm

Content Toggle question - image to trigger?

Post 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
Last edited by cdndesigns on Thu Jan 22, 2015 5:39 am, edited 1 time in total.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: Content Toggle question - image to trigger?

Post 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
cdndesigns
Forum Members
Forum Members
Posts: 13
Joined: Wed Oct 15, 2008 9:16 pm

Re: Content Toggle question - image to trigger?

Post 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
Post Reply

Return to “Modules/Add-Ons”