Page 1 of 1

CMSms and ThickBox or GreyBox

Posted: Wed Feb 13, 2008 4:44 am
by hexdj
I have been trying to integrate ThickBox or GreyBox modal popups into CMSms but haven't really gotten very far.
EDIT:
Before anyone asks: I am not trying to make photo albums, I am trying to display actual CMS content pages in a popup.

This was my approach (with ThickBox):
- Create a 'Popup' template for all the pages that I want to show in the modal popup window.
- This template calls my simple UDT which simply adds the ?keepThis=true&TB_iframe=true&height=250&width=400 to the URL
- Associate all my popup pages to this template
- When linking to a popup page, I have to click the chain icon in Tiny and enter the URL manually and set the class to 'thickbox'

This does create a ThickBox popup window for me but fails to show the contents of the popup page plus I see this other issues:
- I would much rather use the CMSSelfLink tag so I don't have to copy/paste (or memorize) the url of the page I want to popup
- I have to set the class to thickbox everytime
- I am not sure if pretty URLs mess things up


Has anyone had tried to implement this into CMSms?

Thanks

Re: CMSms and ThickBox or GreyBox

Posted: Fri Feb 22, 2008 2:51 pm
by vaughnt
I use Thickbox on my site http://www.vaughnsphotoart.com/index.ph ... -additions but only to pop up images, not pages the way you describe. I did test the page popups though and they worked. I don't know if that is encouragement or not, but there it is.

Re: CMSms and ThickBox or GreyBox

Posted: Fri Feb 22, 2008 6:20 pm
by hexdj
Hi,
thanks but yeah, I want to popup pages and want to try to make it simpler for the end user to create such popups, rather than having them edit the HTML directly.

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 5:57 am
by sportman
hexDJ if you looked recently a light box module has been added, maybe something like that can be done with thickbox talk to calguy1000 or take a look at the code

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 7:22 am
by hexdj
hey sportman
I know about cal's lightbox module but it only works for images which is not what I am after :(

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 8:32 am
by sportman
i was saying look at the code for that and we just modify it for thickbox

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 3:07 pm
by vaughnt
Are you wanting to do this only for links placed in pages, or for menu links as well?

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 4:34 pm
by hexdj
vaunght:

both

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 4:56 pm
by calguy1000
I'll take a look at this if I ever get some time.

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 5:05 pm
by vaughnt
Ah. If it was just for within pages, I was going to suggest hacking the TinyMCE CMSMS-link plugin might be your best bet. But for both... don't have an idea.

Re: CMSms and ThickBox or GreyBox

Posted: Wed Feb 27, 2008 11:41 pm
by sportman
couldn't he modify something in the menu template in menu manager?