Page 1 of 1

Creating popup content

Posted: Wed Jul 05, 2006 12:37 am
by iano
I have a need to define content that can be displayed in its own window via links from several other pages.  For example, a page that references some data or a chart, and the user can popup that chart while continuing to navigate the site in the main window.  Is there a way to define this within CMS?

Re: Creating popup content

Posted: Wed Jul 05, 2006 6:50 pm
by iano
Never mind, I figured it out.  First I created a template for the reference pages that simply displays the content:




{title}
{metadata}
{stylesheet}


 
{content}




My reference page then uses this template.

Next, in the page where I want the popup link, I define an external link of type URL, and specify http://www.mysite.com/index.php?page=page_alias
where page_alias is the alias of the reference page.

On the Target tab, I can use either New Window or popup options.

Pretty simple!

Re: Creating popup content

Posted: Thu Jul 06, 2006 5:12 am
by cyberman
Thanks for your solution  :) ...