old blog,

Adding simple popup to Plone frontpage

Izhar Firdaus Izhar Firdaus Follow Support Jun 08, 2009 · 1 min read
Adding simple popup to Plone frontpage
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
Here is a little guide for those who want to add a simple popup to the Plone frontpage for some purpose (eg: announcements, advertisements, etc).

Create a basic html file containing the content you want to appear in the popup. Upload it into $PLONE_SITE/portal_skins/custom (as Page Template) and for the sake of this example, name it popup.html

Afterward, create a Javascript file with your Pop-Up loader script. For example , this script:

function popup(mylink, windowname)
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
window.open(href, windowname, 'width=220,height=400,scrollbars=no');
return false;

popup('popup.html', 'My Popup');

Also upload this file into $PLONE_SITE/portal_skins/custom (as Page Template too). For this example, name it as popup.js

Afterward, in $PLONE_SITE/portal_javascripts , add popup.js as a new script into portal_javascripts and set its condition to :


Save your work, and you are good to go :D

Note: Lots of browsers now block javascript popups quite well.
Written by Izhar Firdaus Follow Support
I'm a system architect, data engineer and developer advocate with passion in Free / Open Source software, entrepreneurship, community building, education and martial art. I take enjoyment in bridging and bringing together different FOSS technologies to help businesses and organizations utilize IT infrastructure to aid and optimize their business and organizational process.

Suzumiya Haruhi No Yuutsu 2nd Season is HERE!!!

キター!キター!キター!!!!!!キターーーーーー(^v^)ーー!!!At last, Suzumiya Haruhi No Yuutsu「涼宮ハルヒの憂鬱」 2nd season has aired!!. More Haruhism!!!.ツンデレ萌え〜!ハルヒさ...

In old blog, May 23, 2009

« Previous Post

Fedora Activity Day Malaysia 2009 - MSC Malaysia Open Source Conference 2009 Event Report

A bit late for an event which happened last week, Here goes..31st May to 3rd June mark the date of the first MSC Malaysia Open Source...

In old blog, Jun 09, 2009

Next Post »