Page 1 of 1

Is there a module for this?

Posted: Tue May 26, 2009 1:39 am
by TorontoJoe
I'm fairly new to CMSMS but have been able to put together a pretty good site. I've been able to find all the functionality that I need save one item. I would think it would be a pretty popular item but as of now I can find it....

I use the news module but in addition I need an easy way to add a popup to my default page for announcements and such....Now I did find some instructions for the script for this in the documentation however, it seems that when I touch code, bad things happen.

Is anyone aware of a module that would allow one to add an automatic popup window of specified size to be added to a page?

I need something that is dynamic in that I can change the content of the popup page easily and turn it on and off without too much complication.

Ideas anyone?

J

Re: Is there a module for this?

Posted: Tue May 26, 2009 3:22 am
by replytomk3
I would suggest an internet search for a generic script for this purpose. Other people might not respond if it is not CMSMS specific. If you find one, but need help implementing it in CMSMS, then people will be happy to help.

Re: Is there a module for this?

Posted: Tue May 26, 2009 4:34 am
by RonnyK
J,

Could you paste the logic here, and tell if you put it in the page (wysiwyg) or template? As, when special characters are used, the wysiwyg will escape them, leaving the logic non-working....

Ronny

Re: Is there a module for this?

Posted: Tue May 26, 2009 2:39 pm
by TorontoJoe
So this is what I was able to pull from the documentation but I'm not sure how to use it, or if it's even the correct code. It is taken from: http://wiki.cmsmadesimple.org/index.php ... pt_code.29

Script to popup a window.

echo ""
. $params['linkname'] . "";

----------------

To create a popup from a page just add the following tag:

{popup pagealias="P" linkname="L" width="W" height="H"}

----------------

I don't know where specifically to place the top code?

I'm assuming that the lower tag just goes in to the content area of the page from which the popup appears?

I guess I need to define the width and height which is easy enough

Do I just create a regular html page and link to it or am I supposed to use a CMS pag and link to it?

Can I define it to not be re-sizable and not have a toolbar etc?

I'm not sure what value goes in to "P" pagealias or "L" linkname?

I guess this is why I was hoping there was a standard module for this...I suppose the best way then to turn it on and off will be to add or remove the tag from the page?

Re: Is there a module for this?

Posted: Tue May 26, 2009 6:02 pm
by RonnyK
OK...

the first logic is to be put under Extensions -> User Defined Tags.

In the example the UDT is called "popup".

In the page or template, you then call the UDT, with {popup} and pass the parameters it takes...

Ronny