Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2011 at 19:33 UTC
Updated:
18 Mar 2011 at 13:38 UTC
I'm using the ctools modal ajax functionality for several forms across my site. I'm really digging it.
I would also like to use the modal functionality to display non-ajax(hidden) content on the page. Currently, this is pretty easy to do with thickbox or colorbox but I would prefer to only maintain one modal dialoge theme instead of one for colorbox/thickbox and for ctools.
Any idea on if this is possible?
Comments
Comment #1
merlinofchaos commentedYes, absolutely. You'll need to create your own behavior, but it would look something like this:
You can send a setting string to the show() to pick a settings array, which is normally set from the server. Check out ctools/js/modal.js to see how this is used. It's a little bit opaque, I'm afraid, it won't be completely straightforward but it's not too terrible.
Comment #2
squaretone commentedEasy cheesy. Thanks!