Creating a fixed-dimension popup window via CMSB

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 2, 2014   (RSS)

Does anyone know how to create a fixed-size pop up window from a link that's specified in CMSB? They would create a new page, then link to it from another page on the same site. When the site's visitor clicks on that link, the new page would appear in a fixed-size window without any browser tools (perhaps just a scrollbar).

Please see my client's visual for an explanation of how this would work on the live page.

Attachments:

Sample-of-pop-up.jpg 158K

Thanks, Damon. I'll give this a try.

By CommonSenseDesign - May 2, 2014 - edited: May 2, 2014

Hi, Damon. I hope the following makes sense.

1. My site has a multi-recordĀ  section called Clients; e.g. http://www.amgltd.biz/clientsDetail.php?Asia-Reps-30. I need to have a link that appears on each page in this section if there is a client sub-brand.

2. I've created a new section editor called Clients: Sub-brand Popup. This is where I'm adding the content that will appear in the relevant popup window. The following code is generated when listing all the records in this section:

<?php foreach ($clients_popup_windowRecords as $record): ?>
Record Number: <?php echo htmlencode($record['num']) ?><br/>
Title: <?php echo htmlencode($record['title']) ?><br/>
Content: <?php echo $record['content']; ?><br/>
_link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>
<?php endforeach ?>

3. When I'm in the CMS for Clients, I can choose a page created inĀ Clients: Sub-brand Popup that I want to link to from a drop down menu (see attachment). How do I create a link on a live page (like http://www.amgltd.biz/clientsDetail.php?Asia-Reps-30) that goes to the Sub-brand page that is selected from the drop down menu in the CMS? In my example page, the orange words "Vivada Cruises" should be a link to the page that I chose from the menu.